# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) PYTHON_REQ_USE="ipv6(+),sqlite,ssl" inherit toolchain-funcs python-single-r1 qmake-utils verify-sig xdg-utils DESCRIPTION="Ebook management application" HOMEPAGE="https://calibre-ebook.com/" SRC_URI=" https://download.calibre-ebook.com/${PV}/${P}.tar.xz verify-sig? ( https://calibre-ebook.com/signatures/${P}.tar.xz.sig ) " VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/kovidgoyal.gpg" LICENSE=" GPL-3+ GPL-3 GPL-2+ GPL-2 GPL-1+ LGPL-3+ LGPL-2.1+ LGPL-2.1 BSD MIT Old-MIT Apache-2.0 public-domain || ( Artistic GPL-1+ ) CC-BY-3.0 OFL-1.1 PSF-2 " KEYWORDS="amd64" SLOT="0" IUSE="ios speech test +udisks" RESTRICT="!test? ( test )" REQUIRED_USE="${PYTHON_REQUIRED_USE}" # Qt slotted dependencies are used because the libheadless.so plugin links to # QT_*_PRIVATE_ABI. It only uses core/gui/dbus. COMMON_DEPEND="${PYTHON_DEPS} >=app-text/hunspell-1.7:= >=app-text/podofo-0.9.6_pre20171027:= =dev-libs/icu-57.1:= dev-libs/openssl:= dev-libs/snowball-stemmer:= $(python_gen_cond_dep ' >=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}] dev-python/beautifulsoup4[${PYTHON_USEDEP}] dev-python/cchardet[${PYTHON_USEDEP}] >=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}] dev-python/dnspython[${PYTHON_USEDEP}] >=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}] >=dev-python/html2text-2019.8.11[${PYTHON_USEDEP}] >=dev-python/html5-parser-0.4.9[${PYTHON_USEDEP}] dev-python/jeepney[${PYTHON_USEDEP}] >=dev-python/lxml-3.8.0[${PYTHON_USEDEP}] >=dev-python/markdown-3.0.1[${PYTHON_USEDEP}] >=dev-python/mechanize-0.3.5[${PYTHON_USEDEP}] >=dev-python/msgpack-0.6.2[${PYTHON_USEDEP}] >=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}] >=dev-python/pillow-3.2.0[jpeg,truetype,webp,zlib,${PYTHON_USEDEP}] >=dev-python/psutil-4.3.0[${PYTHON_USEDEP}] >=dev-python/pychm-0.8.6[${PYTHON_USEDEP}] >=dev-python/pygments-2.3.1[${PYTHON_USEDEP}] >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] dev-python/zeroconf[${PYTHON_USEDEP}] >=dev-python/PyQt5-5.15.5_pre2107091435[gui,widgets,network,printsupport,svg,${PYTHON_USEDEP}] >=dev-python/PyQtWebEngine-5.15.5_pre2108100905[${PYTHON_USEDEP}] dev-python/regex[${PYTHON_USEDEP}] ') dev-qt/qtimageformats:5 dev-qt/qtcore:5= dev-qt/qtdbus:5= dev-qt/qtgui:5=[jpeg,png] dev-qt/qtwidgets:5 dev-util/desktop-file-utils dev-util/gtk-update-icon-cache media-fonts/liberation-fonts media-libs/fontconfig:= >=media-libs/freetype-2:= >=media-libs/libmtp-1.1.11:= >=media-gfx/optipng-0.7.6 virtual/libusb:1= x11-misc/shared-mime-info >=x11-misc/xdg-utils-1.0.2-r2 ios? ( >=app-pda/usbmuxd-1.0.8 >=app-pda/libimobiledevice-1.2.0 ) speech? ( $(python_gen_cond_dep 'app-accessibility/speech-dispatcher[python,${PYTHON_USEDEP}]') ) udisks? ( virtual/libudev )" RDEPEND="${COMMON_DEPEND} udisks? ( sys-fs/udisks:2 )" DEPEND="${COMMON_DEPEND} test? ( $(python_gen_cond_dep '>=dev-python/chardet-3.0.3[${PYTHON_USEDEP}]') ) " BDEPEND="$(python_gen_cond_dep ' >=dev-python/PyQt-builder-1.10.3[${PYTHON_USEDEP}] >=dev-python/sip-5[${PYTHON_USEDEP}] ') >=virtual/podofo-build-0.9.6_pre20171027