diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-02-10 21:05:55 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-02-10 21:05:55 +0000 |
commit | 71deace00d1a2b091313fe137ab7092418c6f87c (patch) | |
tree | 9f1f0dee23e13658e52f49437befe78427148c51 /app-text/calibre | |
parent | 29aabba0ea759c6a2864ff5631735b67ee38e5e0 (diff) |
gentoo resync : 10.02.2020
Diffstat (limited to 'app-text/calibre')
-rw-r--r-- | app-text/calibre/Manifest | 8 | ||||
-rw-r--r-- | app-text/calibre/calibre-3.48.0-r2.ebuild (renamed from app-text/calibre/calibre-3.48.0-r1.ebuild) | 48 | ||||
-rw-r--r-- | app-text/calibre/calibre-4.10.1-r2.ebuild (renamed from app-text/calibre/calibre-4.9.1-r1.ebuild) | 55 | ||||
-rw-r--r-- | app-text/calibre/calibre-4.9.1-r2.ebuild (renamed from app-text/calibre/calibre-4.9.1.ebuild) | 62 | ||||
-rw-r--r-- | app-text/calibre/files/calibre-4.9.1-py3-Ignore-TypeError-sorting-collections-kobo.patch | 63 |
5 files changed, 159 insertions, 77 deletions
diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest index 76c53aa9c993..fc53985f3908 100644 --- a/app-text/calibre/Manifest +++ b/app-text/calibre/Manifest @@ -1,10 +1,12 @@ AUX calibre-2.9.0-no_updates_dialog.patch 1661 BLAKE2B c75fc49a621e8dbd16ee1bad748110399cf09a404b4a905d3f723bac1827787e4749f464ba026700b6e5b3cc0ee646a92de00f1f58d10cf12dc9bc91195ee8b6 SHA512 9663b95ed64bdc2bc40692922384d1c6073177eee58a49c412883c4d2ae098e4e0b4ea51b80443108b7c0c3e4f3fda60c00fc3be4d0b62a5d79d982697927235 +AUX calibre-4.9.1-py3-Ignore-TypeError-sorting-collections-kobo.patch 2717 BLAKE2B 208686717ad91d2b59b1772352a6ffbe5e564c2243e87e956038a6c019e091e5b9b8fe91a1c51895bec352f61eae96a45831e866da86909fa09c9a8a294b7439 SHA512 9741f59bce3aad80c09aab91fd669bd4da3b05f0db560f4c769556e25e0ff092b7d184f198904d1ed9d86aa6314c4277cdc5e26ad2aeb2eaf063c84cedf13c48 AUX calibre-disable_plugins.patch 1042 BLAKE2B 92a56016c2c54f1b156bc91031420594445545b98b701f7cce99cf4bb86847eebad1ccebdc20a0d1b67f9fa88a9250fc4926d7c04cb36405323388b3171cf502 SHA512 c152ddd92728a89db10c75a4d00a968bf119bef68da8b9116c76827e3cdc8f8a7e5c45fbb973f6ca8db1f79e461518351ce2d47e5e059c282f36d2df499d1629 AUX calibre-server-3.conf 541 BLAKE2B 06593633721e6adf2cf2077dffa83953eea46ccdcdc857ad468a9b74788326e9424f6ab9058be344dbbac8e49d343f5a1e53ddb486f2018b77319a7f8f713cf4 SHA512 12ef793a5b6ffd4413f780a13cad63927a95f15d17d85d4229eb5005ead68e51779abb822f9898ab5ae8c2094affeec1f9e85c34f109499739e6726b7641542a AUX calibre-server-3.init 1796 BLAKE2B f87d785d6f6fc10fa648d40944ec8538027854bb872d9a3be6b5b35b0abf3cda1e4e93874a9422914da5eb4287f193459733956e3f1e25e61bec0c214c552c99 SHA512 88110ded1b9c6cf8d3bfc3d5889654f77578f9d299e88daea9023767b930082e00fbddbb92a6e43c46d900248f3684232d93396ec1d0e784c7ec14b44783f98a DIST calibre-3.48.0.tar.xz 38777408 BLAKE2B 9a7fae20487ae93120cfdc06a312a42d54d68935fdd2bc18dc41be5f8d359c79eae24e0409ba8e7f4df85e2f073f80ce6bab56cba0638cead6693600fa93cb41 SHA512 6cee28fb560e2e00b8ac2f32756f094146c6fe744cfc343d68f1fb54b3f8b0ca16129a5b35018af54a103790faa2eb03ac186c01003f21c874d2ed5218441220 +DIST calibre-4.10.1.tar.xz 37012272 BLAKE2B e5d9421ed986da8ec7d814f364702fe04bcbb76b5e08dedfadd7164c81943cdfe6f012042e82a4715e3ccda284efdf44340af0bde9d03cbc7c22cbcf10136a55 SHA512 eb6f4fd458da3e3e1121ff72da0dfb2bdc38cec98bdaf538e6761563aa176aae2439e4949424795c239a8fa8ebde507564452495ef71f3f7f19b25435e10a41a DIST calibre-4.9.1.tar.xz 37529656 BLAKE2B 5d703ca0c398b43cc26a54e0628d0fe938c6a5027a4fd0c9cac83944e5143eb08439bf79b2098182be7727eaa042748f17866788b02c7744178dce131f6b1d1e SHA512 bf06aa3cbc8d255934f3f7f3ce20b4798edf107ed9f822943d2b4ae7d95473842928ed79f8ba7571f7e0ebdc267c441916d543d5b7630aae5cb151bcc3184b71 -EBUILD calibre-3.48.0-r1.ebuild 8007 BLAKE2B 882d263a21ace1a51754426534139d9cf43148e1346cfeb08eacb86fbcb584adb4588ee2c6c483caf0cd76deb6ac4b7cb8d659eef7d89adacada9770226101ed SHA512 337368328e48337f68b0e8f315bc8159ac198ca4f85e2d886fffc31c4c8d7ece07290a0036ee327dbbc1e36d96399e8104f8970e0fd394d251a06a2ca134656e -EBUILD calibre-4.9.1-r1.ebuild 8287 BLAKE2B b101adb4af4b9afa4b65acb34c131a1cb41d5d6079e5457ba3402ead5d3e7c5fd0caac101ae75367e4b658702f534d1aa8672e632c97950cbcde8e504cc7c54c SHA512 fa945bf73f846dc8b72e0e76a818289502745bfac6dc7ce42e31e5f58a04b3ee2bfc6c6b4e39bdb1b773cc9a61d455eb652c317e73ee542e9bcfeae573030a96 -EBUILD calibre-4.9.1.ebuild 8179 BLAKE2B 402c3e4adb13c25d68e1f0e914919b46618c75b6f74b6b936155eaec7120f6312b2408f9473c5e1a974d60d1cc6a50b6cdbef08611e1e2fa44669b5b148b6e5e SHA512 c346d84a029f66bc55b6d681236858f4648b75ae84c409ed1f5e47df51f5e4e91f242f8a6bcb73bc6b424a3851908a1a092078399ba7dd6d15e859bc8345e14e +EBUILD calibre-3.48.0-r2.ebuild 8219 BLAKE2B e600ca6c64bf1a3330558d68c95b3281e07e3c31b02ec22615469ccaea97ea5786d70e93df93bfd12e1f16cd99e149c161813b03652888b97617cdd0dd19897a SHA512 9eb1c4d66f024c101a4d400b39251d93af0bf57e06e64ac267c6a8a4b3041fde641a538b2490fa452c1a8a769f2c484eabe960bb4a29c9e3caf90bf064103042 +EBUILD calibre-4.10.1-r2.ebuild 8595 BLAKE2B e1d22201ff20f2f97de5506f1ec67fd24e5d0508aca8e7a4a3935a36e1112ae5bc0c1ef3f579ff21560766e07d1f2d46a241f84174980a2fddef437b0400960f SHA512 1580aa62d48e2a212ac571fd11b61ee821d6c5f94473828104ed0537fb84d2c1addc69700854015db7801bcc79fe281b012b3893a990bcfa8113ea5d8beafd2b +EBUILD calibre-4.9.1-r2.ebuild 8594 BLAKE2B 0b1db0bbf9124ec3a1c8491d13d2d91ca4a6c30b78f945d9cb60c399220b7cbc3afa0c6614c14c1150e44b1193e7f799c6fc4cc9d74c437c275b14b0a8a5f3bd SHA512 e9c92d66fa0d6e28d264413da4d73b8a0e3f3d43922e3b507aecfcaa8509bbe86ede8b3aace9850e45d128626577b9336a58f72989133b2284789bcba9c6c7ba MISC metadata.xml 382 BLAKE2B 87fa7e63a6ed7a4ea55247b362288b43f7edd312cc3085bb8c1b947402ae4aa0df01fac4f6646d260653ff8af7fe28d3dabb8a213dbf3e206181b69835b33d5f SHA512 8503e0a4a48d93682c386eb1d6507b4b26585afc9d62b7cd52bc00b457a887bd17422a03669ff404570ff7f5ff6f0bba14ee935979f8b54722870d6620097de5 diff --git a/app-text/calibre/calibre-3.48.0-r1.ebuild b/app-text/calibre/calibre-3.48.0-r2.ebuild index 750bc132087d..4aac7817f183 100644 --- a/app-text/calibre/calibre-3.48.0-r1.ebuild +++ b/app-text/calibre/calibre-3.48.0-r2.ebuild @@ -44,28 +44,30 @@ COMMON_DEPEND="${PYTHON_DEPS} dev-libs/glib:2= >=dev-libs/icu-57.1:= dev-libs/libinput:= - >=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}] - dev-python/beautifulsoup:4[${PYTHON_USEDEP}] - >=dev-python/chardet-3.0.3[${PYTHON_USEDEP}] - >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}] - >=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}] - >=dev-python/dbus-python-1.2.4[${PYTHON_USEDEP}] >=dev-libs/dbus-glib-0.106 >=sys-apps/dbus-1.10.8 - dev-python/dnspython[${PYTHON_USEDEP}] - >=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}] - >=dev-python/html5-parser-0.4.9[${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.5.6[${PYTHON_USEDEP}] - >=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}] - >=dev-python/pillow-3.2.0[${PYTHON_USEDEP}] - >=dev-python/psutil-4.3.0[${PYTHON_USEDEP}] - >=dev-python/pygments-2.3.1[${PYTHON_USEDEP}] - >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] - >=dev-python/PyQt5-5.8[gui,svg,webkit,widgets,network,printsupport,${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/apsw-3.25.2_p1[${PYTHON_MULTI_USEDEP}] + dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}] + >=dev-python/chardet-3.0.3[${PYTHON_MULTI_USEDEP}] + >=dev-python/cssselect-0.7.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/css-parser-1.0.4[${PYTHON_MULTI_USEDEP}] + >=dev-python/dbus-python-1.2.4[${PYTHON_MULTI_USEDEP}] + dev-python/dnspython[${PYTHON_MULTI_USEDEP}] + >=dev-python/feedparser-5.2.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/html5-parser-0.4.9[${PYTHON_MULTI_USEDEP}] + >=dev-python/lxml-3.8.0[${PYTHON_MULTI_USEDEP}] + >=dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/mechanize-0.3.5[${PYTHON_MULTI_USEDEP}] + >=dev-python/msgpack-0.5.6[${PYTHON_MULTI_USEDEP}] + >=dev-python/netifaces-0.10.5[${PYTHON_MULTI_USEDEP}] + >=dev-python/pillow-3.2.0[${PYTHON_MULTI_USEDEP}] + >=dev-python/psutil-4.3.0[${PYTHON_MULTI_USEDEP}] + >=dev-python/pygments-2.3.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/python-dateutil-2.5.3[${PYTHON_MULTI_USEDEP}] + >=dev-python/PyQt5-5.8[gui,svg,webkit,widgets,network,printsupport,${PYTHON_MULTI_USEDEP}] + dev-python/regex[${PYTHON_MULTI_USEDEP}] + ') dev-qt/qtcore:5= dev-qt/qtdbus:5= dev-qt/qtgui:5= @@ -94,8 +96,10 @@ COMMON_DEPEND="${PYTHON_DEPS} RDEPEND="${COMMON_DEPEND} udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" DEPEND="${COMMON_DEPEND} - >=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}] - dev-python/sip[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/setuptools-23.1.0[${PYTHON_MULTI_USEDEP}] + dev-python/sip[${PYTHON_MULTI_USEDEP}] + ') >=virtual/podofo-build-0.9.6_pre20171027 virtual/pkgconfig" diff --git a/app-text/calibre/calibre-4.9.1-r1.ebuild b/app-text/calibre/calibre-4.10.1-r2.ebuild index 96f088d77812..2004b89741dd 100644 --- a/app-text/calibre/calibre-4.9.1-r1.ebuild +++ b/app-text/calibre/calibre-4.10.1-r2.ebuild @@ -46,30 +46,32 @@ COMMON_DEPEND="${PYTHON_DEPS} dev-libs/hyphen:= >=dev-libs/icu-57.1:= dev-libs/libinput:= - >=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}] - dev-python/beautifulsoup:4[${PYTHON_USEDEP}] - >=dev-python/chardet-3.0.3[${PYTHON_USEDEP}] - >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}] - >=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}] - >=dev-python/dbus-python-1.2.4[${PYTHON_USEDEP}] >=dev-libs/dbus-glib-0.106 >=sys-apps/dbus-1.10.8 - 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/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.5.6[${PYTHON_USEDEP}] - >=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}] - >=dev-python/pillow-3.2.0[${PYTHON_USEDEP}] - >=dev-python/psutil-4.3.0[${PYTHON_USEDEP}] - >=dev-python/pygments-2.3.1[${PYTHON_USEDEP}] - >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] - >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_USEDEP}] - >=dev-python/PyQtWebEngine-5.12[${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/apsw-3.25.2_p1[${PYTHON_MULTI_USEDEP}] + dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}] + >=dev-python/chardet-3.0.3[${PYTHON_MULTI_USEDEP}] + >=dev-python/cssselect-0.7.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/css-parser-1.0.4[${PYTHON_MULTI_USEDEP}] + >=dev-python/dbus-python-1.2.4[${PYTHON_MULTI_USEDEP}] + dev-python/dnspython[${PYTHON_MULTI_USEDEP}] + >=dev-python/feedparser-5.2.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/html2text-2019.8.11[${PYTHON_MULTI_USEDEP}] + >=dev-python/html5-parser-0.4.9[${PYTHON_MULTI_USEDEP}] + >=dev-python/lxml-3.8.0[${PYTHON_MULTI_USEDEP}] + >=dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/mechanize-0.3.5[${PYTHON_MULTI_USEDEP}] + >=dev-python/msgpack-0.5.6[${PYTHON_MULTI_USEDEP}] + >=dev-python/netifaces-0.10.5[${PYTHON_MULTI_USEDEP}] + >=dev-python/pillow-3.2.0[${PYTHON_MULTI_USEDEP}] + >=dev-python/psutil-4.3.0[${PYTHON_MULTI_USEDEP}] + >=dev-python/pygments-2.3.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/python-dateutil-2.5.3[${PYTHON_MULTI_USEDEP}] + >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_MULTI_USEDEP}] + >=dev-python/PyQtWebEngine-5.12[${PYTHON_MULTI_USEDEP}] + dev-python/regex[${PYTHON_MULTI_USEDEP}] + ') dev-qt/qtcore:5= dev-qt/qtdbus:5= dev-qt/qtgui:5= @@ -99,8 +101,10 @@ COMMON_DEPEND="${PYTHON_DEPS} RDEPEND="${COMMON_DEPEND} udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" DEPEND="${COMMON_DEPEND} - >=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}] - dev-python/sip[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/setuptools-23.1.0[${PYTHON_MULTI_USEDEP}] + dev-python/sip[${PYTHON_MULTI_USEDEP}] + ') >=virtual/podofo-build-0.9.6_pre20171027 virtual/pkgconfig" @@ -117,7 +121,8 @@ src_prepare() { # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface eapply \ "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ - "${FILESDIR}/${PN}-disable_plugins.patch" + "${FILESDIR}/${PN}-disable_plugins.patch" \ + "${FILESDIR}/${PN}-4.9.1-py3-Ignore-TypeError-sorting-collections-kobo.patch" eapply_user diff --git a/app-text/calibre/calibre-4.9.1.ebuild b/app-text/calibre/calibre-4.9.1-r2.ebuild index 1b5faed75d37..3718b23741e9 100644 --- a/app-text/calibre/calibre-4.9.1.ebuild +++ b/app-text/calibre/calibre-4.9.1-r2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python2_7 ) +PYTHON_COMPAT=( python2_7 python3_{6,7} ) PYTHON_REQ_USE="sqlite,ssl" inherit bash-completion-r1 desktop toolchain-funcs python-single-r1 xdg-utils @@ -31,7 +31,7 @@ LICENSE=" OFL-1.1 PSF-2 " -KEYWORDS="~amd64 ~arm ~x86" +KEYWORDS="amd64 ~arm ~x86" SLOT="0" IUSE="ios +udisks" @@ -46,30 +46,32 @@ COMMON_DEPEND="${PYTHON_DEPS} dev-libs/hyphen:= >=dev-libs/icu-57.1:= dev-libs/libinput:= - >=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}] - dev-python/beautifulsoup:4[${PYTHON_USEDEP}] - >=dev-python/chardet-3.0.3[${PYTHON_USEDEP}] - >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}] - >=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}] - >=dev-python/dbus-python-1.2.4[${PYTHON_USEDEP}] >=dev-libs/dbus-glib-0.106 >=sys-apps/dbus-1.10.8 - 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/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.5.6[${PYTHON_USEDEP}] - >=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}] - >=dev-python/pillow-3.2.0[${PYTHON_USEDEP}] - >=dev-python/psutil-4.3.0[${PYTHON_USEDEP}] - >=dev-python/pygments-2.3.1[${PYTHON_USEDEP}] - >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] - >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_USEDEP}] - >=dev-python/PyQtWebEngine-5.12[${PYTHON_USEDEP}] - dev-python/regex[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/apsw-3.25.2_p1[${PYTHON_MULTI_USEDEP}] + dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}] + >=dev-python/chardet-3.0.3[${PYTHON_MULTI_USEDEP}] + >=dev-python/cssselect-0.7.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/css-parser-1.0.4[${PYTHON_MULTI_USEDEP}] + >=dev-python/dbus-python-1.2.4[${PYTHON_MULTI_USEDEP}] + dev-python/dnspython[${PYTHON_MULTI_USEDEP}] + >=dev-python/feedparser-5.2.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/html2text-2019.8.11[${PYTHON_MULTI_USEDEP}] + >=dev-python/html5-parser-0.4.9[${PYTHON_MULTI_USEDEP}] + >=dev-python/lxml-3.8.0[${PYTHON_MULTI_USEDEP}] + >=dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/mechanize-0.3.5[${PYTHON_MULTI_USEDEP}] + >=dev-python/msgpack-0.5.6[${PYTHON_MULTI_USEDEP}] + >=dev-python/netifaces-0.10.5[${PYTHON_MULTI_USEDEP}] + >=dev-python/pillow-3.2.0[${PYTHON_MULTI_USEDEP}] + >=dev-python/psutil-4.3.0[${PYTHON_MULTI_USEDEP}] + >=dev-python/pygments-2.3.1[${PYTHON_MULTI_USEDEP}] + >=dev-python/python-dateutil-2.5.3[${PYTHON_MULTI_USEDEP}] + >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_MULTI_USEDEP}] + >=dev-python/PyQtWebEngine-5.12[${PYTHON_MULTI_USEDEP}] + dev-python/regex[${PYTHON_MULTI_USEDEP}] + ') dev-qt/qtcore:5= dev-qt/qtdbus:5= dev-qt/qtgui:5= @@ -99,8 +101,10 @@ COMMON_DEPEND="${PYTHON_DEPS} RDEPEND="${COMMON_DEPEND} udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" DEPEND="${COMMON_DEPEND} - >=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}] - dev-python/sip[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/setuptools-23.1.0[${PYTHON_MULTI_USEDEP}] + dev-python/sip[${PYTHON_MULTI_USEDEP}] + ') >=virtual/podofo-build-0.9.6_pre20171027 virtual/pkgconfig" @@ -117,7 +121,8 @@ src_prepare() { # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface eapply \ "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ - "${FILESDIR}/${PN}-disable_plugins.patch" + "${FILESDIR}/${PN}-disable_plugins.patch" \ + "${FILESDIR}/${PN}-4.9.1-py3-Ignore-TypeError-sorting-collections-kobo.patch" eapply_user @@ -152,6 +157,9 @@ src_prepare() { } src_install() { + # calibre works with python 3, so remove the python 2 constraint + export CALIBRE_PY3_PORT=1 + # Bypass kbuildsycoca and update-mime-database in order to # avoid sandbox violations if xdg-mime tries to call them. cat - > "${T}/kbuildsycoca" <<-EOF diff --git a/app-text/calibre/files/calibre-4.9.1-py3-Ignore-TypeError-sorting-collections-kobo.patch b/app-text/calibre/files/calibre-4.9.1-py3-Ignore-TypeError-sorting-collections-kobo.patch new file mode 100644 index 000000000000..fb55e0025b7d --- /dev/null +++ b/app-text/calibre/files/calibre-4.9.1-py3-Ignore-TypeError-sorting-collections-kobo.patch @@ -0,0 +1,63 @@ +From 6f947d88d323bb08bb6e076d442662aa281fe197 Mon Sep 17 00:00:00 2001 +From: Zac Medico <zmedico@gentoo.org> +Date: Sun, 9 Feb 2020 12:16:04 -0800 +Subject: [PATCH] py3: Ignore TypeError when sorting device collections for + kobo driver + +https://github.com/kovidgoyal/calibre/pull/1098 + +Use the same approach as the usbms driver when cmp raises a +TypeError (see a8deb4b1f8dfb768a32b95b1540be32d5d6e871e). + +This should suppress the following error which was reported for +python3 and not python2: + +Traceback (most recent call last): + File "/usr/lib64/calibre/calibre/gui2/device.py", line 90, in run + self.result = self.func(*self.args, **self.kwargs) + File "/usr/lib64/calibre/calibre/gui2/device.py", line 543, in _sync_booklists + self.device.sync_booklists(booklists, end_session=False) + File "/usr/lib64/calibre/calibre/devices/kobo/driver.py", line 970, in sync_booklists + self.update_device_database_collections(blist, collections, oncard) + File "/usr/lib64/calibre/calibre/devices/kobo/driver.py", line 2398, in update_device_database_collections + collections = booklists.get_collections(collections_attributes) if bookshelf_attribute else None + File "/usr/lib64/calibre/calibre/devices/kobo/books.py", line 314, in get_collections + books = sorted(itervalues(lpaths), key=cmp_to_key(none_cmp)) + File "/usr/lib64/calibre/calibre/devices/kobo/books.py", line 307, in none_cmp + c = cmp(x, y) + File "/usr/lib64/calibre/polyglot/builtins.py", line 106, in cmp + return (a > b) - (a < b) +TypeError: '>' not supported between instances of 'float' and 'str' + +See: https://bugs.gentoo.org/708742 +--- + src/calibre/devices/kobo/books.py | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +diff --git a/src/calibre/devices/kobo/books.py b/src/calibre/devices/kobo/books.py +index f725751d00..fc1dee6b7e 100644 +--- a/src/calibre/devices/kobo/books.py ++++ b/src/calibre/devices/kobo/books.py +@@ -304,11 +304,17 @@ class KTCollectionsBookList(CollectionsBookList): + return -1 + if isinstance(x, string_or_bytes) and isinstance(y, string_or_bytes): + x, y = sort_key(force_unicode(x)), sort_key(force_unicode(y)) +- c = cmp(x, y) ++ try: ++ c = cmp(x, y) ++ except TypeError: ++ c = 0 + if c != 0: + return c + # same as above -- no sort_key needed here +- return cmp(xx[2], yy[2]) ++ try: ++ return cmp(xx[2], yy[2]) ++ except TypeError: ++ return 0 + + for category, lpaths in iteritems(collections): + books = sorted(itervalues(lpaths), key=cmp_to_key(none_cmp)) +-- +2.24.1 + |