summaryrefslogtreecommitdiff
path: root/app-text/calibre
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/calibre')
-rw-r--r--app-text/calibre/Manifest23
-rw-r--r--app-text/calibre/calibre-5.44.0-r3.ebuild6
-rw-r--r--app-text/calibre/calibre-5.44.0-r5.ebuild (renamed from app-text/calibre/calibre-7.11.0.ebuild)52
-rw-r--r--app-text/calibre/calibre-7.12.0.ebuild243
-rw-r--r--app-text/calibre/calibre-7.13.0.ebuild2
-rw-r--r--app-text/calibre/calibre-7.14.0.ebuild243
-rw-r--r--app-text/calibre/calibre-7.16.0.ebuild (renamed from app-text/calibre/calibre-7.10.0.ebuild)0
-rw-r--r--app-text/calibre/files/calibre-5.44.0-icu75.patch28
-rw-r--r--app-text/calibre/files/calibre-5.44.0-xss-backport.patch33
-rw-r--r--app-text/calibre/files/e9cc00560a28f56a303cca97630ab58e519dd9c8.patch35
10 files changed, 148 insertions, 517 deletions
diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest
index aefe12396be3..9ca23a6239b0 100644
--- a/app-text/calibre/Manifest
+++ b/app-text/calibre/Manifest
@@ -2,25 +2,20 @@ AUX 0001-HTML-Input-Dont-add-resources-that-exist-outside-the.patch 2420 BLAKE2B
AUX calibre-2.9.0-no_updates_dialog.patch 1661 BLAKE2B c75fc49a621e8dbd16ee1bad748110399cf09a404b4a905d3f723bac1827787e4749f464ba026700b6e5b3cc0ee646a92de00f1f58d10cf12dc9bc91195ee8b6 SHA512 9663b95ed64bdc2bc40692922384d1c6073177eee58a49c412883c4d2ae098e4e0b4ea51b80443108b7c0c3e4f3fda60c00fc3be4d0b62a5d79d982697927235
AUX calibre-5.35.0-jxr-test.patch 827 BLAKE2B 0a94ac5b12ee2ec732d3ff68979c2060b0b218eee27409b3c351a9cc0b6bccce2260b8b387b442ae10f31483b20bd6d672f7d5424f7d9a8297a1bd14af2f7793 SHA512 259a3b4882bf0fbb01cb22974e219a621a2b337d6f638234a806148b11142fdbf9ac36ae38e71fcb7e18bd61362b34cf3c221ba1df317ec6ea8668591ad2d3ff
AUX calibre-5.44.0-Fix-compatibility-with-zeroconf-0.73.patch 1065 BLAKE2B 7a74b7d7788340f96b326619f5e2bd916ff21644f0554b2507fcea439eec8217b8b002a2da3b99021fa576a6d3a6fd15d82222f005b8a4fbf37ab5016f33bdb9 SHA512 13f6fc949cc8c5c66013c772cd40429a679fa067d7828cc02e416ecbd556eafb56bebc80bc85a8b442feb3e6b94518450252e701e6426f5a2cde9d102312cf87
+AUX calibre-5.44.0-icu75.patch 1294 BLAKE2B 1f05f84e5653a7c3d9162fc1dc7d91fc73b3346323e05d3c379227deece394e0754a6c2d72223ef2453abf5b062ba3ad3b4705b110bd333e643fa0a35d0a0ad4 SHA512 3eecadbd27cb178f630b80b789d3e3a437d95e883b429473414fd08d9a412a9c32201b7b859d28446523426caff292580c244a86a1b7bb117fa2b7281fd15b5f
+AUX calibre-5.44.0-xss-backport.patch 1272 BLAKE2B 65be0f6b97b387b37faa86f79d84e150f0a2801a8f2bde95497ebf4f292f95a56bf9c49613d727446dfa9afdef6a4f108a28e1c02cb4343bbc717834ae544896 SHA512 d8ae8fbe64c40169efd4a2f090c194d5a032b2d7072b6f7763932597b227fb12f88712290fd902cf639d40fff48a8806226037d6bb89e8bb4d1a7a79d4bdc21f
AUX calibre-7.0.0-jxr-test.patch 935 BLAKE2B bc38ea2f2d10ec4859ee03ab5d18048df4cf0af5ce4076efc013013bc975966390d618c43ce621675e3b8ee8f929bfaebaa72cf6bb7d8dea544bca77d9772b60 SHA512 db8da42fdcf5b5d5dfad35c128e394cf8f51e57dda6cd1a482803429738515fc1a8b338c711679a11acb93678f35f10883e1bf282e1443ccaafe2eb470fbbfee
AUX calibre-server-3.conf 541 BLAKE2B 06593633721e6adf2cf2077dffa83953eea46ccdcdc857ad468a9b74788326e9424f6ab9058be344dbbac8e49d343f5a1e53ddb486f2018b77319a7f8f713cf4 SHA512 12ef793a5b6ffd4413f780a13cad63927a95f15d17d85d4229eb5005ead68e51779abb822f9898ab5ae8c2094affeec1f9e85c34f109499739e6726b7641542a
AUX calibre-server-3.init 1796 BLAKE2B f87d785d6f6fc10fa648d40944ec8538027854bb872d9a3be6b5b35b0abf3cda1e4e93874a9422914da5eb4287f193459733956e3f1e25e61bec0c214c552c99 SHA512 88110ded1b9c6cf8d3bfc3d5889654f77578f9d299e88daea9023767b930082e00fbddbb92a6e43c46d900248f3684232d93396ec1d0e784c7ec14b44783f98a
+AUX e9cc00560a28f56a303cca97630ab58e519dd9c8.patch 1335 BLAKE2B eb71cb5510d2259bbc7a4fe7b54652bb543aa3d26816654da7e22a6effb0c81770a91eccccecff5fe711d0495ff5b1ab378231e3cb10dd18f3faeb301acab1ba SHA512 211ea8c0fab1de5bd076eb965eda51ee1330a69e54251fc6a16e5aa0d6ef7721aea14a57a27eb75a99c8e37418aa15bd311e6f4d03f1f05d80cd87d2f00fb995
DIST calibre-5.44.0.tar.xz 41015696 BLAKE2B c7053e728da20fccfa981ed4f56e24a4d5b382b7687c92ecb039b078fd4828de0529380093e4ab33f77d78aa54a59758c1620cf8f918937a9a64f13decdf77ee SHA512 3d79e76d820cd1a41605dfd4c1d992599a6e4a759e57a8383d42d86982177e4539313f59e647758ab1896ce5874cb2a93c7678bf962e332c44171651aabf0230
DIST calibre-5.44.0.tar.xz.sig 566 BLAKE2B 413b95855d79bdb5b17ca5d760f834006797b4d3e413604f27d351a3392e16d647e772dc063306bf973e1156c34f68cb38152a66164bca849ebed5484e7f6065 SHA512 59957bf35a73f218241bf76cc86994d5af87cea11d3b0800e83f157bf0b2cfcaf4b6c1314562e74a1141d0c167fdb1619cb9a90e93b67f55dd55ceed77045059
-DIST calibre-7.10.0.tar.xz 44201168 BLAKE2B 9d851ae6cbf0efd16790351720e1e86efb3dc6efc9d7c29b4e471aa99c7ff46969d594e97a2aca13ca096e77e2ae399f6e888c6846da84f7e093493ad32487a6 SHA512 f01d4c57af7f8390c17231ebc6f2fee4b331a8f143337a128119b8585b6e269b5d531a5245c6f418a8ec51ee440f99ce978b0d102f28cc955a2d31911db3b107
-DIST calibre-7.10.0.tar.xz.sig 566 BLAKE2B ef5aceae5e181e1f1e22e4ef90248e54a77bc35a9da51a152408d11833c35a1e1f131d68c8dbb39303446a6a695694b4aa3b84c16eddd273f79f84bae3a7f073 SHA512 23aa5d044524d23f3bb0cab8cbee1a12f3f147cf1a557703f36eec59e651b63cd6185484515accb4456c3dc3adfb9918eb6b88cd9d205a016232347f1db0ebd1
-DIST calibre-7.11.0.tar.xz 44329708 BLAKE2B 0c5a1ccafb9c192b7f25998174f2b9ea3571d63a6aeca274d72e7e8e8ed27b433a209d805fd35079f01a72201cb01e741f95d8c83265ea39d3c191bf41dab93f SHA512 93216323d23919ce37f3983304f0d5e88847833c52a00a8a780db1c95860d814298358347848a439ff006827742a7c19171ed4d3e3569cd03296a682200e8160
-DIST calibre-7.11.0.tar.xz.sig 566 BLAKE2B 2b035fd2a31f5954de229c932c4aca58c0850a3fdfa793932ef81bd84c4612e65ad12138684932714a85e7be68d21cd808f4008d096121d047ae9bf053b893ca SHA512 ffca64e38e5e402c8fc146dff850a67e0644dcf665c5b0d36f9c9ade6702a980f11dcdf73147412c6ee384110fa8a27168fe5c759ba4754005647f8f656a543b
-DIST calibre-7.12.0.tar.xz 44341928 BLAKE2B 18d3178b9daafaa674949b29528d055dea4e13aad937b8b75e22ac7ec9f9df1aa5c6bd5ca76b151347461077d2e2fc7888a9b46d1c727059db97ea49cb396b1f SHA512 ee654260d7047f0579a659b8907439a407fb561affcef84141126840452e7b98d10bb5e0a69e0cc809d9ba68729570900a0e7251f18b2056a94b0213880f1363
-DIST calibre-7.12.0.tar.xz.sig 566 BLAKE2B 3fb90d638b00e1a9bf481b16e947cf855e89f4c13f5614ef2003fb0447c1131dc4d1a6101dde7e413bc1b9b5ca3812d3f090f00a0f4e14e8029f5b2896286b23 SHA512 12c78975b175f08208a4e7d2b9734b2f886d0cd3804b1d2f32f87190b648a79bf4eac6b0650b74c0e93682ff60f74be74d86a5c02d7e5bd1615c0799b9f6020a
DIST calibre-7.13.0.tar.xz 44331860 BLAKE2B d5d9d04740dff52e59af0efff30e1044d52d188d58a91a9c8191084e021218feffca15cbde27f12a742e38d6db49168c6c6b64b1df9de5384c1b361ef66ba10b SHA512 b64bba8b6982e2f41b6e1e1d9392a07f15307781a1da3b2f2daca464f1d1303a7ff44af398c0c0edc84dda8090cd47461bf1570daa8ba12496661eae2f3c3bca
DIST calibre-7.13.0.tar.xz.sig 566 BLAKE2B 40ee9d53eb658623f0047601ddf26bde232b9f4575309faa09ab2ea74b70d8c43fa82a7dc80bb322fca908923661ed8ec33050917196c0f22ff490f9348b266f SHA512 6943ea01c30c8c2ed49f115873cbe1d75484a79deedf734d77ba2326b6f2a2d35994b0219d8e81789e46e8a56d01a19efe8f124c8ebb546b86fa287d8449bf6e
-DIST calibre-7.14.0.tar.xz 44318744 BLAKE2B 3ade17216f3e79440cb113754c54295c3b0c2d09186300475c73d06d5cd592fa3962250ccafb9a26adb63d248f182e8da7c83415e38c506e36e327697aa5bc60 SHA512 718e83f9c11fd9e6a75cb2cee7172bf434ed642fc1e0db23ac6a7a1c7b01264fcd7f8840c12cb5f8184cc31c25c79f0d87255d8e1441b4cffaa9c88e90d4a663
-DIST calibre-7.14.0.tar.xz.sig 566 BLAKE2B 79dad9f35bbd1bc6d06aa8e5cd1a9f9f4ab40f4044795bf285e81b0db02f36e6a1583726ae573c8d43a51577c6e55c96b9a59a0a94d223f4bb7e4d382dfb95d5 SHA512 25ea452efbef8f47498e75ed0485489bd5c97dfbcb6246ec19d5e7ec3b78aa5fad6f8ffac873fdc36f650c755e8011779a3cc326f719e88ad96697d19a7f2cc0
-EBUILD calibre-5.44.0-r3.ebuild 8840 BLAKE2B 7c52f8b0295e74684f14576a9162251738a485b2e8ff2e0628209aa899d6fcd6e163a19ba56d95b174b77937bd4245f7a9fd4db03d09fccd3d1f7fb79f0e58da SHA512 75271d1150dd0cc0f5b5f54e6d9a01d856efd99279d15444b3c93d6c9e88c2260554b135e913f8c16862cb111f8718a4289cb0c276f7c76f867ec4d183e4e88f
-EBUILD calibre-7.10.0.ebuild 7987 BLAKE2B 15c5678554e68f5187d228175e6f65548a1ea9807bf06b7020c8e11b41a7a3e6fd03100d86ca32abc296c300309df7d9165364539cbaec15ca56c1dce03278e9 SHA512 af7c748f66e8a76338d96d20fa7d91d9d09b1bc00d8d187c9b44f952e827fbca63a3eb3d9d81302ce8b84ba911fe4ef711cba9df5b8d4a2dd9ed6d06f3b04c2d
-EBUILD calibre-7.11.0.ebuild 7987 BLAKE2B 15c5678554e68f5187d228175e6f65548a1ea9807bf06b7020c8e11b41a7a3e6fd03100d86ca32abc296c300309df7d9165364539cbaec15ca56c1dce03278e9 SHA512 af7c748f66e8a76338d96d20fa7d91d9d09b1bc00d8d187c9b44f952e827fbca63a3eb3d9d81302ce8b84ba911fe4ef711cba9df5b8d4a2dd9ed6d06f3b04c2d
-EBUILD calibre-7.12.0.ebuild 7987 BLAKE2B 15c5678554e68f5187d228175e6f65548a1ea9807bf06b7020c8e11b41a7a3e6fd03100d86ca32abc296c300309df7d9165364539cbaec15ca56c1dce03278e9 SHA512 af7c748f66e8a76338d96d20fa7d91d9d09b1bc00d8d187c9b44f952e827fbca63a3eb3d9d81302ce8b84ba911fe4ef711cba9df5b8d4a2dd9ed6d06f3b04c2d
-EBUILD calibre-7.13.0.ebuild 7988 BLAKE2B 5776c54bb55d812bd5e70d3f5a21ccd539bb1c64de9187bbe6c8c637ff359d7956cacfcefcc08a6dd41b0bb5df5ed703b54b474c6c5b36d81c3e9a143d45b42a SHA512 cb6518a1d2cd9a71c2b41c47bda28c4ca404578b86b424f0db91bf1a70a8665aa260de79633c64e98e46b18ae74f6f9aa9fddbf33aac19b691bc56899518c390
-EBUILD calibre-7.14.0.ebuild 7988 BLAKE2B 5776c54bb55d812bd5e70d3f5a21ccd539bb1c64de9187bbe6c8c637ff359d7956cacfcefcc08a6dd41b0bb5df5ed703b54b474c6c5b36d81c3e9a143d45b42a SHA512 cb6518a1d2cd9a71c2b41c47bda28c4ca404578b86b424f0db91bf1a70a8665aa260de79633c64e98e46b18ae74f6f9aa9fddbf33aac19b691bc56899518c390
+DIST calibre-7.16.0.tar.xz 44833684 BLAKE2B 2b609a0d014d43998f693a69c10f6d8b0165bf97f8c9d388cf4e1e398e7254b300d53b26e5ec24af651e03bb625bb088331dc77aa2ed6edea13de2beb0e75339 SHA512 5ea11badd972422299ce143e2aa33f58f7abcfd2837acba47d2a7aa6f0997a711245273205ed043c783e5e82bbaaf7cab44e5c03c00e274a03a4ba29be53a708
+DIST calibre-7.16.0.tar.xz.sig 566 BLAKE2B 1d09e8dd49ad53c88632dc23573fa9cd5403d45a308598ac4ed7d4f2dd5a84cc3ae6812ac652ff4a98fc5d67589ad1584411f7746b6b98468bf03a35a0585de6 SHA512 91f3897d95d234a8d673006273974d32cb6c5aa4953d247700d6d89d511c9b1450dc8e222eabf5d1e4d82de206e425ee440defaff38d1ca83efdbf4bcada7c7c
+EBUILD calibre-5.44.0-r3.ebuild 8986 BLAKE2B 3055654a1132d06eb936157d827a147a32be85a0a181ef04b9937375413bfdf7fcf5595c0e60b19a813ef167e40bc5e2f3ab115cfb9c167621ba6b68b9eacfe8 SHA512 486f7b728ecc6fdf2834fdbffc5d46c0dd27a83f73af65aab435f083486726f00b321f6bd2c350dd0bb0676596e0a3602c11a2c65700c89e121e88edbe706e25
+EBUILD calibre-5.44.0-r5.ebuild 8978 BLAKE2B aefccace3b939a72817f8c9cf36f4687d492af4ea84f8b588199dab1134989ebf030ddcf7609c834f4ea3b313dfb403e50af8c5e007309f0b3aa6e036128706b SHA512 63cadd04ff3ffb9b2d27fde04caf7caf43f981dd012cacd36569efc305db15aca09ddaf1875308368a8001e6b047cf44f55ff6a513d9d03428963fb171d4c45b
+EBUILD calibre-7.13.0.ebuild 7987 BLAKE2B 15c5678554e68f5187d228175e6f65548a1ea9807bf06b7020c8e11b41a7a3e6fd03100d86ca32abc296c300309df7d9165364539cbaec15ca56c1dce03278e9 SHA512 af7c748f66e8a76338d96d20fa7d91d9d09b1bc00d8d187c9b44f952e827fbca63a3eb3d9d81302ce8b84ba911fe4ef711cba9df5b8d4a2dd9ed6d06f3b04c2d
+EBUILD calibre-7.16.0.ebuild 7987 BLAKE2B 15c5678554e68f5187d228175e6f65548a1ea9807bf06b7020c8e11b41a7a3e6fd03100d86ca32abc296c300309df7d9165364539cbaec15ca56c1dce03278e9 SHA512 af7c748f66e8a76338d96d20fa7d91d9d09b1bc00d8d187c9b44f952e827fbca63a3eb3d9d81302ce8b84ba911fe4ef711cba9df5b8d4a2dd9ed6d06f3b04c2d
MISC metadata.xml 745 BLAKE2B 2e1e831d9e6a1f32596b4544a7237c020e2c027a3e872fc517e2557bd8b1be6d0ddb0335f5266159c0e0fbb8776e8d048916e716b77cd011da14bbd51779922d SHA512 3d0ef51069731cac8f751af461367d74151df517cab48c0fd66f1c3a2fab1d3a92f9a06118c700dd782fddbe0055bd379bd79f81f2dbb1adcc5b2a22a443e94d
diff --git a/app-text/calibre/calibre-5.44.0-r3.ebuild b/app-text/calibre/calibre-5.44.0-r3.ebuild
index 34e4e197b419..1ca560b39c37 100644
--- a/app-text/calibre/calibre-5.44.0-r3.ebuild
+++ b/app-text/calibre/calibre-5.44.0-r3.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-PYTHON_COMPAT=( python3_{10..11} )
+PYTHON_COMPAT=( python3_{10..12} )
PYTHON_REQ_USE="ipv6(+),sqlite,ssl"
inherit toolchain-funcs python-single-r1 qmake-utils verify-sig xdg-utils
@@ -130,6 +130,10 @@ PATCHES=(
# Security backport for CVE-2023-46303
"${FILESDIR}"/0001-HTML-Input-Dont-add-resources-that-exist-outside-the.patch
+ # bug #936270
+ "${FILESDIR}"/${P}-icu75.patch
+ # backport test-only fix for lxml 5
+ "${FILESDIR}"/e9cc00560a28f56a303cca97630ab58e519dd9c8.patch
)
src_prepare() {
diff --git a/app-text/calibre/calibre-7.11.0.ebuild b/app-text/calibre/calibre-5.44.0-r5.ebuild
index 27ed594b785c..73941b1a26cd 100644
--- a/app-text/calibre/calibre-7.11.0.ebuild
+++ b/app-text/calibre/calibre-5.44.0-r5.ebuild
@@ -36,8 +36,8 @@ LICENSE="
PSF-2
"
SLOT="0"
-KEYWORDS="amd64 ~arm64"
-IUSE="+font-subsetting ios speech +system-mathjax test +udisks unrar"
+KEYWORDS="amd64"
+IUSE="ios speech +system-mathjax test +udisks unrar"
RESTRICT="!test? ( test )"
@@ -46,9 +46,9 @@ 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-i18n/uchardet
>=app-text/hunspell-1.7:=
- >=app-text/podofo-0.10.0:=
+ >=app-text/podofo-0.9.6_pre20171027:=
+ <app-text/podofo-0.10:=
app-text/poppler[utils]
dev-libs/hyphen:=
>=dev-libs/icu-57.1:=
@@ -57,6 +57,7 @@ COMMON_DEPEND="${PYTHON_DEPS}
$(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}]
@@ -74,14 +75,16 @@ COMMON_DEPEND="${PYTHON_DEPS}
>=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/PyQt6[gui,network,opengl,printsupport,quick,svg,widgets,${PYTHON_USEDEP}]
- dev-python/PyQt6-WebEngine[widgets,${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-python/xxhash[${PYTHON_USEDEP}]
- >=dev-python/zeroconf-0.75.0[${PYTHON_USEDEP}]
+ dev-python/zeroconf[${PYTHON_USEDEP}]
')
- dev-qt/qtbase:6=[gui,widgets]
- dev-qt/qtimageformats:6
+ 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
@@ -92,7 +95,6 @@ COMMON_DEPEND="${PYTHON_DEPS}
virtual/libusb:1=
x11-misc/shared-mime-info
>=x11-misc/xdg-utils-1.0.2-r2
- font-subsetting? ( $(python_gen_cond_dep 'dev-python/fonttools[${PYTHON_USEDEP}]') )
ios? (
>=app-pda/usbmuxd-1.0.8
>=app-pda/libimobiledevice-1.2.0
@@ -111,6 +113,8 @@ 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
+ <virtual/podofo-build-0.10
virtual/pkgconfig
system-mathjax? ( dev-lang/rapydscript-ng )
verify-sig? ( sec-keys/openpgp-keys-kovidgoyal )
@@ -120,7 +124,19 @@ PATCHES=(
# Skip calling a binary (JxrDecApp) from libjxr which is used for tests
# We don't (yet?) package libjxr and it seems to be dead upstream
# (last commit in 2017)
- "${FILESDIR}/${PN}-7.0.0-jxr-test.patch"
+ "${FILESDIR}/${PN}-5.35.0-jxr-test.patch"
+
+ # fix compatibility with recent versions of zeroconf
+ "${FILESDIR}"/${PN}-5.44.0-Fix-compatibility-with-zeroconf-0.73.patch
+
+ # Security backport for CVE-2023-46303
+ "${FILESDIR}"/0001-HTML-Input-Dont-add-resources-that-exist-outside-the.patch
+ # bug #936270
+ "${FILESDIR}"/${P}-icu75.patch
+ # backport test-only fix for lxml 5
+ "${FILESDIR}"/e9cc00560a28f56a303cca97630ab58e519dd9c8.patch
+ # Security backport for CVE-2024-7008
+ "${FILESDIR}"/${P}-xss-backport.patch
)
src_prepare() {
@@ -139,6 +155,14 @@ src_prepare() {
# Disable unnecessary privilege dropping for bug #287067.
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
-i setup/install.py || die "sed failed to patch install.py"
+ sed -e "/^ os.chdir(os.path.join(src_dir, 'build'))$/a\
+\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
+'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
+'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
+'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
+'-i', os.path.join(os.path.basename(src_dir), 'Makefile')])" \
+ -e "s|open(self.j(bdir, '.qmake.conf'), 'wb').close()|open(self.j(bdir, '.qmake.conf'), 'wb').write(b'QMAKE_LFLAGS += ${LDFLAGS}')|" \
+ -i setup/build.py || die "sed failed to patch build.py"
# This is only ever used at build time. It contains a small embedded copy
# of the rapydscript-ng compiler usable inside of qtwebengine, if you don't
@@ -162,7 +186,7 @@ src_compile() {
# bug 821871
local MY_LIBDIR="${ESYSROOT}/usr/$(get_libdir)"
export FT_LIB_DIR="${MY_LIBDIR}" HUNSPELL_LIB_DIR="${MY_LIBDIR}" PODOFO_LIB_DIR="${MY_LIBDIR}"
- export QMAKE="$(qt6_get_bindir)/qmake"
+ export QMAKE="$(qt5_get_bindir)/qmake"
edo ${EPYTHON} setup.py build
edo ${EPYTHON} setup.py gui
@@ -186,8 +210,6 @@ src_test() {
local _test_excludes=(
# unpackaged Python dependency: py7zr
7z
- # unpackaged Python dependency: pyzstd
- test_zstd
# tests if a completely unused module is bundled
pycryptodome
diff --git a/app-text/calibre/calibre-7.12.0.ebuild b/app-text/calibre/calibre-7.12.0.ebuild
deleted file mode 100644
index 27ed594b785c..000000000000
--- a/app-text/calibre/calibre-7.12.0.ebuild
+++ /dev/null
@@ -1,243 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-PYTHON_REQ_USE="sqlite,ssl"
-
-inherit edo toolchain-funcs python-single-r1 qmake-utils verify-sig xdg
-
-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
-"
-SLOT="0"
-KEYWORDS="amd64 ~arm64"
-IUSE="+font-subsetting ios speech +system-mathjax test +udisks unrar"
-
-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-i18n/uchardet
- >=app-text/hunspell-1.7:=
- >=app-text/podofo-0.10.0:=
- app-text/poppler[utils]
- dev-libs/hyphen:=
- >=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/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/lxml-html-clean[${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/PyQt6[gui,network,opengl,printsupport,quick,svg,widgets,${PYTHON_USEDEP}]
- dev-python/PyQt6-WebEngine[widgets,${PYTHON_USEDEP}]
- dev-python/regex[${PYTHON_USEDEP}]
- dev-python/xxhash[${PYTHON_USEDEP}]
- >=dev-python/zeroconf-0.75.0[${PYTHON_USEDEP}]
- ')
- dev-qt/qtbase:6=[gui,widgets]
- dev-qt/qtimageformats:6
- 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
- font-subsetting? ( $(python_gen_cond_dep 'dev-python/fonttools[${PYTHON_USEDEP}]') )
- 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}]') )
- system-mathjax? ( >=dev-libs/mathjax-3:= )
- udisks? ( virtual/libudev )
- unrar? ( dev-python/unrardll )
-"
-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/pkgconfig
- system-mathjax? ( dev-lang/rapydscript-ng )
- verify-sig? ( sec-keys/openpgp-keys-kovidgoyal )
-"
-
-PATCHES=(
- # Skip calling a binary (JxrDecApp) from libjxr which is used for tests
- # We don't (yet?) package libjxr and it seems to be dead upstream
- # (last commit in 2017)
- "${FILESDIR}/${PN}-7.0.0-jxr-test.patch"
-)
-
-src_prepare() {
- default
-
- # Warning:
- #
- # While it might be rather tempting to add yet another sed here,
- # please don't. There have been several bugs in Gentoo's packaging
- # of calibre from seds-which-become-stale. Please consider
- # creating a patch instead, but in any case, run the test suite
- # and ensure it passes.
- #
- # If in doubt about a problem, checking Fedora's packaging is recommended.
-
- # Disable unnecessary privilege dropping for bug #287067.
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
- -i setup/install.py || die "sed failed to patch install.py"
-
- # This is only ever used at build time. It contains a small embedded copy
- # of the rapydscript-ng compiler usable inside of qtwebengine, if you don't
- # have rapydscript-ng (a nodejs package) itself installed. Its only purpose
- # is to build some resources that come bundled in dist tarballs already...
- # and which we may also need to regenerate e.g. to use system-mathjax.
- #
- # However, running qtwebengine violates the portage sandbox (among other
- # things, it tries to create directories in /usr! amazing) so this is a
- # wash anyway. The only real solution here is to package rapydscript-ng.
- #
- # We do not need it at build time, and *no one* needs it at install time.
- # Delete the cruft.
- rm -r resources/rapydscript/ || die
-}
-
-src_compile() {
- # TODO: get qmake called by setup.py to respect CC and CXX too
- tc-export CC CXX
-
- # bug 821871
- local MY_LIBDIR="${ESYSROOT}/usr/$(get_libdir)"
- export FT_LIB_DIR="${MY_LIBDIR}" HUNSPELL_LIB_DIR="${MY_LIBDIR}" PODOFO_LIB_DIR="${MY_LIBDIR}"
- export QMAKE="$(qt6_get_bindir)/qmake"
-
- edo ${EPYTHON} setup.py build
- edo ${EPYTHON} setup.py gui
-
- # A few different resources are bundled in the distfile by default, because
- # not all systems necessarily have them. We un-vendor them, using the
- # upstream integrated approach if possible. See setup/revendor.py and
- # consider migrating other resources to this if they do not use it, in
- # *preference* over manual rm'ing.
- edo ${EPYTHON} setup.py liberation_fonts \
- --path-to-liberation_fonts "${EPREFIX}"/usr/share/fonts/liberation-fonts \
- --system-liberation_fonts
- if use system-mathjax; then
- edo ${EPYTHON} setup.py mathjax --path-to-mathjax "${EPREFIX}"/usr/share/mathjax --system-mathjax
- edo ${EPYTHON} setup.py rapydscript
- fi
-}
-
-src_test() {
- # Skipped tests:
- local _test_excludes=(
- # unpackaged Python dependency: py7zr
- 7z
- # unpackaged Python dependency: pyzstd
- test_zstd
- # tests if a completely unused module is bundled
- pycryptodome
-
- $(usev !speech speech_dispatcher)
- $(usev !unrar test_unrar)
-
- # undocumented reasons
- test_mem_leaks
- test_searching
- )
-
- edo ${PYTHON} setup.py test "${_test_excludes[@]/#/--exclude-test-name=}"
-}
-
-src_install() {
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
- # return _parse_localename(localename)
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
- # raise ValueError, 'unknown locale: %s' % localename
- #ValueError: unknown locale: 46
- export -n LANG LANGUAGE ${!LC_*}
- export LC_ALL=C.utf8 # bug #709682
-
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing
- # variables to point to our fake temporary $HOME.
- export HOME="${T}/fake_homedir"
- export CALIBRE_CONFIG_DIRECTORY="${HOME}/.config/calibre"
- mkdir -p "${CALIBRE_CONFIG_DIRECTORY}" || die
-
- addpredict /dev/dri #665310
-
- # If this directory doesn't exist, zsh completion won't install
- dodir /usr/share/zsh/site-functions
-
- edo "${PYTHON}" setup.py install \
- --staging-root="${ED}/usr" \
- --prefix="${EPREFIX}/usr" \
- --libdir="${EPREFIX}/usr/$(get_libdir)" \
- --staging-libdir="${ED}/usr/$(get_libdir)" \
- --system-plugins-location="${EPREFIX}/usr/share/calibre/system-plugins"
-
- cp -r man-pages/ "${ED}"/usr/share/man || die
-
- find "${ED}"/usr/share -type d -empty -delete || die
-
- python_fix_shebang "${ED}/usr/bin"
-
- python_optimize "${ED}"/usr/$(get_libdir)/calibre "${D}/$(python_get_sitedir)"
-
- newinitd "${FILESDIR}"/calibre-server-3.init calibre-server
- newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server
-}
diff --git a/app-text/calibre/calibre-7.13.0.ebuild b/app-text/calibre/calibre-7.13.0.ebuild
index e42daca289d1..27ed594b785c 100644
--- a/app-text/calibre/calibre-7.13.0.ebuild
+++ b/app-text/calibre/calibre-7.13.0.ebuild
@@ -36,7 +36,7 @@ LICENSE="
PSF-2
"
SLOT="0"
-KEYWORDS="~amd64 ~arm64"
+KEYWORDS="amd64 ~arm64"
IUSE="+font-subsetting ios speech +system-mathjax test +udisks unrar"
RESTRICT="!test? ( test )"
diff --git a/app-text/calibre/calibre-7.14.0.ebuild b/app-text/calibre/calibre-7.14.0.ebuild
deleted file mode 100644
index e42daca289d1..000000000000
--- a/app-text/calibre/calibre-7.14.0.ebuild
+++ /dev/null
@@ -1,243 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{10..12} )
-PYTHON_REQ_USE="sqlite,ssl"
-
-inherit edo toolchain-funcs python-single-r1 qmake-utils verify-sig xdg
-
-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
-"
-SLOT="0"
-KEYWORDS="~amd64 ~arm64"
-IUSE="+font-subsetting ios speech +system-mathjax test +udisks unrar"
-
-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-i18n/uchardet
- >=app-text/hunspell-1.7:=
- >=app-text/podofo-0.10.0:=
- app-text/poppler[utils]
- dev-libs/hyphen:=
- >=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/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/lxml-html-clean[${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/PyQt6[gui,network,opengl,printsupport,quick,svg,widgets,${PYTHON_USEDEP}]
- dev-python/PyQt6-WebEngine[widgets,${PYTHON_USEDEP}]
- dev-python/regex[${PYTHON_USEDEP}]
- dev-python/xxhash[${PYTHON_USEDEP}]
- >=dev-python/zeroconf-0.75.0[${PYTHON_USEDEP}]
- ')
- dev-qt/qtbase:6=[gui,widgets]
- dev-qt/qtimageformats:6
- 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
- font-subsetting? ( $(python_gen_cond_dep 'dev-python/fonttools[${PYTHON_USEDEP}]') )
- 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}]') )
- system-mathjax? ( >=dev-libs/mathjax-3:= )
- udisks? ( virtual/libudev )
- unrar? ( dev-python/unrardll )
-"
-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/pkgconfig
- system-mathjax? ( dev-lang/rapydscript-ng )
- verify-sig? ( sec-keys/openpgp-keys-kovidgoyal )
-"
-
-PATCHES=(
- # Skip calling a binary (JxrDecApp) from libjxr which is used for tests
- # We don't (yet?) package libjxr and it seems to be dead upstream
- # (last commit in 2017)
- "${FILESDIR}/${PN}-7.0.0-jxr-test.patch"
-)
-
-src_prepare() {
- default
-
- # Warning:
- #
- # While it might be rather tempting to add yet another sed here,
- # please don't. There have been several bugs in Gentoo's packaging
- # of calibre from seds-which-become-stale. Please consider
- # creating a patch instead, but in any case, run the test suite
- # and ensure it passes.
- #
- # If in doubt about a problem, checking Fedora's packaging is recommended.
-
- # Disable unnecessary privilege dropping for bug #287067.
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
- -i setup/install.py || die "sed failed to patch install.py"
-
- # This is only ever used at build time. It contains a small embedded copy
- # of the rapydscript-ng compiler usable inside of qtwebengine, if you don't
- # have rapydscript-ng (a nodejs package) itself installed. Its only purpose
- # is to build some resources that come bundled in dist tarballs already...
- # and which we may also need to regenerate e.g. to use system-mathjax.
- #
- # However, running qtwebengine violates the portage sandbox (among other
- # things, it tries to create directories in /usr! amazing) so this is a
- # wash anyway. The only real solution here is to package rapydscript-ng.
- #
- # We do not need it at build time, and *no one* needs it at install time.
- # Delete the cruft.
- rm -r resources/rapydscript/ || die
-}
-
-src_compile() {
- # TODO: get qmake called by setup.py to respect CC and CXX too
- tc-export CC CXX
-
- # bug 821871
- local MY_LIBDIR="${ESYSROOT}/usr/$(get_libdir)"
- export FT_LIB_DIR="${MY_LIBDIR}" HUNSPELL_LIB_DIR="${MY_LIBDIR}" PODOFO_LIB_DIR="${MY_LIBDIR}"
- export QMAKE="$(qt6_get_bindir)/qmake"
-
- edo ${EPYTHON} setup.py build
- edo ${EPYTHON} setup.py gui
-
- # A few different resources are bundled in the distfile by default, because
- # not all systems necessarily have them. We un-vendor them, using the
- # upstream integrated approach if possible. See setup/revendor.py and
- # consider migrating other resources to this if they do not use it, in
- # *preference* over manual rm'ing.
- edo ${EPYTHON} setup.py liberation_fonts \
- --path-to-liberation_fonts "${EPREFIX}"/usr/share/fonts/liberation-fonts \
- --system-liberation_fonts
- if use system-mathjax; then
- edo ${EPYTHON} setup.py mathjax --path-to-mathjax "${EPREFIX}"/usr/share/mathjax --system-mathjax
- edo ${EPYTHON} setup.py rapydscript
- fi
-}
-
-src_test() {
- # Skipped tests:
- local _test_excludes=(
- # unpackaged Python dependency: py7zr
- 7z
- # unpackaged Python dependency: pyzstd
- test_zstd
- # tests if a completely unused module is bundled
- pycryptodome
-
- $(usev !speech speech_dispatcher)
- $(usev !unrar test_unrar)
-
- # undocumented reasons
- test_mem_leaks
- test_searching
- )
-
- edo ${PYTHON} setup.py test "${_test_excludes[@]/#/--exclude-test-name=}"
-}
-
-src_install() {
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
- # return _parse_localename(localename)
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
- # raise ValueError, 'unknown locale: %s' % localename
- #ValueError: unknown locale: 46
- export -n LANG LANGUAGE ${!LC_*}
- export LC_ALL=C.utf8 # bug #709682
-
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing
- # variables to point to our fake temporary $HOME.
- export HOME="${T}/fake_homedir"
- export CALIBRE_CONFIG_DIRECTORY="${HOME}/.config/calibre"
- mkdir -p "${CALIBRE_CONFIG_DIRECTORY}" || die
-
- addpredict /dev/dri #665310
-
- # If this directory doesn't exist, zsh completion won't install
- dodir /usr/share/zsh/site-functions
-
- edo "${PYTHON}" setup.py install \
- --staging-root="${ED}/usr" \
- --prefix="${EPREFIX}/usr" \
- --libdir="${EPREFIX}/usr/$(get_libdir)" \
- --staging-libdir="${ED}/usr/$(get_libdir)" \
- --system-plugins-location="${EPREFIX}/usr/share/calibre/system-plugins"
-
- cp -r man-pages/ "${ED}"/usr/share/man || die
-
- find "${ED}"/usr/share -type d -empty -delete || die
-
- python_fix_shebang "${ED}/usr/bin"
-
- python_optimize "${ED}"/usr/$(get_libdir)/calibre "${D}/$(python_get_sitedir)"
-
- newinitd "${FILESDIR}"/calibre-server-3.init calibre-server
- newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server
-}
diff --git a/app-text/calibre/calibre-7.10.0.ebuild b/app-text/calibre/calibre-7.16.0.ebuild
index 27ed594b785c..27ed594b785c 100644
--- a/app-text/calibre/calibre-7.10.0.ebuild
+++ b/app-text/calibre/calibre-7.16.0.ebuild
diff --git a/app-text/calibre/files/calibre-5.44.0-icu75.patch b/app-text/calibre/files/calibre-5.44.0-icu75.patch
new file mode 100644
index 000000000000..3f79a9b4f79f
--- /dev/null
+++ b/app-text/calibre/files/calibre-5.44.0-icu75.patch
@@ -0,0 +1,28 @@
+logical changes backported from:
+https://github.com/kovidgoyal/calibre/commit/a3d3d8d33e314ccabb5099e78e4056a79b7c9aa2
+https://bugs.gentoo.org/936270
+
+diff -rup a/setup/build.py b/setup/build.py
+--- a/setup/build.py 2022-06-17 04:35:27.000000000 +0200
++++ b/setup/build.py 2024-07-19 11:51:56.374389213 +0200
+@@ -65,6 +65,8 @@ class Extension:
+ self.cflags.insert(0, '-std=c++11')
+ elif kwargs.get('needs_c++14'):
+ self.cflags.insert(0, '-std=c++14')
++ elif kwargs.get('needs_c++17'):
++ self.cflags.insert(0, '-std=c++17')
+ else:
+ if kwargs.get('needs_c99'):
+ self.cflags.insert(0, '-std=c99')
+diff -rup a/setup/extensions.json b/setup/extensions.json
+--- a/setup/extensions.json 2022-06-17 04:35:27.000000000 +0200
++++ b/setup/extensions.json 2024-07-19 11:52:11.253389395 +0200
+@@ -75,7 +75,7 @@
+ "name": "sqlite_extension",
+ "headers": "calibre/utils/cpp_binding.h",
+ "sources": "calibre/db/sqlite_extension.cpp",
+- "needs_c++14": true,
++ "needs_c++17": true,
+ "libraries": "icudata icui18n icuuc icuio stemmer",
+ "windows_libraries": "icudt icuin icuuc icuio libstemmer",
+ "lib_dirs": "!icu_lib_dirs",
diff --git a/app-text/calibre/files/calibre-5.44.0-xss-backport.patch b/app-text/calibre/files/calibre-5.44.0-xss-backport.patch
new file mode 100644
index 000000000000..83bb8cca8cf5
--- /dev/null
+++ b/app-text/calibre/files/calibre-5.44.0-xss-backport.patch
@@ -0,0 +1,33 @@
+Changelog:
+
+Only relevant if you embed the calibre server within a larger server, it
+means attackers who can convince users to click on a specially crafted
+link, can run JavaScript code with the same origin as the larger server
+calibre is embedded in.
+
+From e75f85919a3c3a5f2d87861050d8483d66561c06 Mon Sep 17 00:00:00 2001
+From: Kovid Goyal <kovid@kovidgoyal.net>
+Date: Tue, 30 Jul 2024 13:40:21 +0530
+Subject: [PATCH] Fix #2075130 [Private
+ bug](https://bugs.launchpad.net/calibre/+bug/2075130)
+
+---
+ src/calibre/srv/legacy.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/calibre/srv/legacy.py b/src/calibre/srv/legacy.py
+index 055228ebee..85586b07a6 100644
+--- a/src/calibre/srv/legacy.py
++++ b/src/calibre/srv/legacy.py
+@@ -255,7 +255,7 @@ def browse(ctx, rd, rest):
+ if rest.startswith('book/'):
+ # implementation of https://bugs.launchpad.net/calibre/+bug/1698411
+ # redirect old server book URLs to new URLs
+- redirect = ctx.url_for(None) + '#book_id=' + rest[5:] + "&amp;panel=book_details"
++ redirect = ctx.url_for(None) + '#book_id=' + int(rest[5:]) + "&amp;panel=book_details"
+ from lxml import etree as ET
+ return html(ctx, rd, endpoint,
+ E.html(E.head(
+--
+2.44.2
+
diff --git a/app-text/calibre/files/e9cc00560a28f56a303cca97630ab58e519dd9c8.patch b/app-text/calibre/files/e9cc00560a28f56a303cca97630ab58e519dd9c8.patch
new file mode 100644
index 000000000000..deae34e201e3
--- /dev/null
+++ b/app-text/calibre/files/e9cc00560a28f56a303cca97630ab58e519dd9c8.patch
@@ -0,0 +1,35 @@
+From e9cc00560a28f56a303cca97630ab58e519dd9c8 Mon Sep 17 00:00:00 2001
+From: Kovid Goyal <kovid@kovidgoyal.net>
+Date: Mon, 8 Jan 2024 09:12:35 +0530
+Subject: [PATCH] Fix #2048475 [Tests fail with lxml
+ 5.0](https://bugs.launchpad.net/calibre/+bug/2048475)
+
+---
+ src/calibre/utils/xml_parse.py | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/src/calibre/utils/xml_parse.py b/src/calibre/utils/xml_parse.py
+index a31c6ed83ed7..339538b90057 100644
+--- a/src/calibre/utils/xml_parse.py
++++ b/src/calibre/utils/xml_parse.py
+@@ -36,6 +36,11 @@ def safe_xml_fromstring(string_or_bytes, recover=True):
+ return ans
+
+
++def unsafe_xml_fromstring(string_or_bytes):
++ parser = etree.XMLParser(resolve_entities=True)
++ return fs(string_or_bytes, parser=parser)
++
++
+ def find_tests():
+ import unittest, tempfile, os
+ from calibre.constants import iswindows
+@@ -61,7 +66,7 @@ def t(tid, val, expected, safe=True):
+ raw = templ.format(id=tid, val=val)
+ err = None
+ try:
+- root = safe_xml_fromstring(raw) if safe else etree.fromstring(raw)
++ root = safe_xml_fromstring(raw) if safe else unsafe_xml_fromstring(raw)
+ except Exception as e:
+ err = str(e)
+ root = None