1 |
commit: d922b8ee3062aa831be1eef6f9f55a42b2d16bf2 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 3 23:09:55 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 3 23:09:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d922b8ee |
7 |
|
8 |
app-text/calibre: Remove old versions |
9 |
|
10 |
Package-Manager: Portage-2.3.100, Repoman-2.3.22 |
11 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
12 |
|
13 |
app-text/calibre/Manifest | 4 - |
14 |
app-text/calibre/calibre-4.11.2.ebuild | 274 --------------------------------- |
15 |
app-text/calibre/calibre-4.12.0.ebuild | 274 --------------------------------- |
16 |
app-text/calibre/calibre-4.15.0.ebuild | 274 --------------------------------- |
17 |
app-text/calibre/calibre-4.16.0.ebuild | 274 --------------------------------- |
18 |
5 files changed, 1100 deletions(-) |
19 |
|
20 |
diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest |
21 |
index abbfb2687ad..34b6b39fa0a 100644 |
22 |
--- a/app-text/calibre/Manifest |
23 |
+++ b/app-text/calibre/Manifest |
24 |
@@ -1,7 +1,3 @@ |
25 |
-DIST calibre-4.11.2.tar.xz 37045372 BLAKE2B 7d76d45afd9228d6346daefaf4ee7cbf4d3281379c96d0ae63b3073b6b5ed055bd2eca0ae728f1471460e3aa8cf9b3afa3e489c4c2f02c6849b39b94e2c2023a SHA512 64f1779ea16e2aedbc91e815b015ffbcfcc2d50035dddc9b33588007ceeeaa5cf4cca84b40fbc9c5808e9b6dab3b04047f37505815120a1e66650447363672f2 |
26 |
-DIST calibre-4.12.0.tar.xz 36823140 BLAKE2B b8dd24152b79790c8d22d3c0aa9482f69250fe177499e01c6c0564bf31946d0266a2e3053549f037c7ea7626b18a27798097bfbe0caf93f97585d4869c475ab9 SHA512 628308273b507ee2557cd089e5c7b77f8304c1728b9aadfe5493b22042bdcf2da4c07652a6432121b5dd432807bcda21fabb81c37e59f87d24ace52539f3244c |
27 |
-DIST calibre-4.15.0.tar.xz 37033864 BLAKE2B fbb8965f438b438e0274fd8fbd23b633fb39bf3d746b0d8d1947e54cb6a21e39346031be6723adc1ecb83b4145562ec8a1e36805b96bad00451c0afbccb8d570 SHA512 d06bebe672864b2270a76f097f353aa727a3918d1c87766c9dbad615a6225621bb12d4040c1001415d188b15f1b7c068e77fec7964f4bf26e83ad7f3609bcc04 |
28 |
-DIST calibre-4.16.0.tar.xz 36964244 BLAKE2B e2c94ea882addff3a7def2b7d0bc286fc3bc499190469e9bfea99d710b4cdbb6b59ca2848ef5551d4375d22c582462962634c0329f0adca05dd6dc137dbea0ba SHA512 96803578c7b609cf146571df38cd9ab75c3fcc6e8b429d7083b4383974161193d544a22c249ad3934c621823a3b1d1bd52e564c6ef70fd4012aae40a1056715b |
29 |
DIST calibre-4.17.0-qt-5.15-fontconfig-bug-725020.patch 1222 BLAKE2B 14038b4ea5f87d9a8f645b5af8342da90337202b0247b07dccd8995f55bb965b5c2bbdddc24b55b6e92e899f91d5dec19c10ddea8fcc42c8ed3d74ee90eb09d6 SHA512 b0652c3277b8390f47039366380fceacfd3cd9014fe42306a947f6749c6192657b77e3d832044828bea06c43f1f5e745e6b4ff8dd24efc73d9ad5261c4c73a5e |
30 |
DIST calibre-4.17.0.tar.xz 37027156 BLAKE2B e1e9fbbb93cc14af0790e400d79b433c774f17bb06d99161e27769217ab7eed5c2660ab8a3e09109bade91684a8f5a8b52795667833ddf454343e530109eea63 SHA512 95719c820839a8548c0734a7be105fa4124c3c070fdd79ceeef5fef7f9c81f89d5b2077a71df3cc6cd103c14b813cd0d42add1c75ec4883686a8596de36ef5d0 |
31 |
DIST calibre-4.9.1.tar.xz 37529656 BLAKE2B 5d703ca0c398b43cc26a54e0628d0fe938c6a5027a4fd0c9cac83944e5143eb08439bf79b2098182be7727eaa042748f17866788b02c7744178dce131f6b1d1e SHA512 bf06aa3cbc8d255934f3f7f3ce20b4798edf107ed9f822943d2b4ae7d95473842928ed79f8ba7571f7e0ebdc267c441916d543d5b7630aae5cb151bcc3184b71 |
32 |
|
33 |
diff --git a/app-text/calibre/calibre-4.11.2.ebuild b/app-text/calibre/calibre-4.11.2.ebuild |
34 |
deleted file mode 100644 |
35 |
index b5a00a083e8..00000000000 |
36 |
--- a/app-text/calibre/calibre-4.11.2.ebuild |
37 |
+++ /dev/null |
38 |
@@ -1,274 +0,0 @@ |
39 |
-# Copyright 1999-2020 Gentoo Authors |
40 |
-# Distributed under the terms of the GNU General Public License v2 |
41 |
- |
42 |
-EAPI=7 |
43 |
- |
44 |
-PYTHON_COMPAT=( python3_{6,7} ) |
45 |
-PYTHON_REQ_USE="sqlite,ssl" |
46 |
- |
47 |
-inherit bash-completion-r1 desktop toolchain-funcs python-single-r1 xdg-utils |
48 |
- |
49 |
-DESCRIPTION="Ebook management application" |
50 |
-HOMEPAGE="https://calibre-ebook.com/" |
51 |
-SRC_URI="https://download.calibre-ebook.com/${PV}/${P}.tar.xz" |
52 |
- |
53 |
-LICENSE=" |
54 |
- GPL-3+ |
55 |
- GPL-3 |
56 |
- GPL-2+ |
57 |
- GPL-2 |
58 |
- GPL-1+ |
59 |
- LGPL-3+ |
60 |
- LGPL-2.1+ |
61 |
- LGPL-2.1 |
62 |
- BSD |
63 |
- MIT |
64 |
- Old-MIT |
65 |
- Apache-2.0 |
66 |
- public-domain |
67 |
- || ( Artistic GPL-1+ ) |
68 |
- CC-BY-3.0 |
69 |
- OFL-1.1 |
70 |
- PSF-2 |
71 |
-" |
72 |
-KEYWORDS="~amd64 ~x86" |
73 |
-SLOT="0" |
74 |
-IUSE="ios +udisks" |
75 |
- |
76 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
77 |
- |
78 |
-COMMON_DEPEND="${PYTHON_DEPS} |
79 |
- >=app-text/hunspell-1.7:= |
80 |
- >=app-text/podofo-0.9.6_pre20171027:= |
81 |
- >=app-text/poppler-0.26.5[qt5] |
82 |
- >=dev-libs/chmlib-0.40:= |
83 |
- dev-libs/glib:2= |
84 |
- dev-libs/hyphen:= |
85 |
- >=dev-libs/icu-57.1:= |
86 |
- dev-libs/libinput:= |
87 |
- >=dev-libs/dbus-glib-0.106 |
88 |
- >=sys-apps/dbus-1.10.8 |
89 |
- $(python_gen_cond_dep ' |
90 |
- >=dev-python/apsw-3.25.2_p1[${PYTHON_MULTI_USEDEP}] |
91 |
- dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}] |
92 |
- >=dev-python/chardet-3.0.3[${PYTHON_MULTI_USEDEP}] |
93 |
- >=dev-python/cssselect-0.7.1[${PYTHON_MULTI_USEDEP}] |
94 |
- >=dev-python/css-parser-1.0.4[${PYTHON_MULTI_USEDEP}] |
95 |
- >=dev-python/dbus-python-1.2.4[${PYTHON_MULTI_USEDEP}] |
96 |
- dev-python/dnspython[${PYTHON_MULTI_USEDEP}] |
97 |
- >=dev-python/feedparser-5.2.1[${PYTHON_MULTI_USEDEP}] |
98 |
- >=dev-python/html2text-2019.8.11[${PYTHON_MULTI_USEDEP}] |
99 |
- >=dev-python/html5-parser-0.4.9[${PYTHON_MULTI_USEDEP}] |
100 |
- >=dev-python/lxml-3.8.0[${PYTHON_MULTI_USEDEP}] |
101 |
- >=dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}] |
102 |
- >=dev-python/mechanize-0.3.5[${PYTHON_MULTI_USEDEP}] |
103 |
- >=dev-python/msgpack-0.5.6[${PYTHON_MULTI_USEDEP}] |
104 |
- >=dev-python/netifaces-0.10.5[${PYTHON_MULTI_USEDEP}] |
105 |
- >=dev-python/pillow-3.2.0[${PYTHON_MULTI_USEDEP}] |
106 |
- >=dev-python/psutil-4.3.0[${PYTHON_MULTI_USEDEP}] |
107 |
- >=dev-python/pygments-2.3.1[${PYTHON_MULTI_USEDEP}] |
108 |
- >=dev-python/python-dateutil-2.5.3[${PYTHON_MULTI_USEDEP}] |
109 |
- >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_MULTI_USEDEP}] |
110 |
- >=dev-python/PyQtWebEngine-5.12[${PYTHON_MULTI_USEDEP}] |
111 |
- dev-python/regex[${PYTHON_MULTI_USEDEP}] |
112 |
- dev-python/zeroconf[${PYTHON_MULTI_USEDEP}] |
113 |
- ') |
114 |
- dev-qt/qtcore:5= |
115 |
- dev-qt/qtdbus:5= |
116 |
- dev-qt/qtgui:5= |
117 |
- >=dev-qt/qtwebengine-5.12 |
118 |
- dev-qt/qtwidgets:5= |
119 |
- dev-util/desktop-file-utils |
120 |
- dev-util/gtk-update-icon-cache |
121 |
- media-fonts/liberation-fonts |
122 |
- media-libs/fontconfig:= |
123 |
- >=media-libs/freetype-2:= |
124 |
- >=media-libs/libmtp-1.1.11:= |
125 |
- >=media-libs/libwmf-0.2.8 |
126 |
- >=media-gfx/optipng-0.7.6 |
127 |
- >=sys-libs/zlib-1.2.11:= |
128 |
- virtual/libusb:1= |
129 |
- x11-libs/libxkbcommon:= |
130 |
- x11-libs/libX11:= |
131 |
- x11-libs/libXext:= |
132 |
- x11-libs/libXrender:= |
133 |
- x11-misc/shared-mime-info |
134 |
- >=x11-misc/xdg-utils-1.0.2-r2 |
135 |
- ios? ( |
136 |
- >=app-pda/usbmuxd-1.0.8 |
137 |
- >=app-pda/libimobiledevice-1.2.0 |
138 |
- ) |
139 |
- udisks? ( virtual/libudev )" |
140 |
-RDEPEND="${COMMON_DEPEND} |
141 |
- udisks? ( sys-fs/udisks:2 )" |
142 |
-DEPEND="${COMMON_DEPEND} |
143 |
- $(python_gen_cond_dep ' |
144 |
- >=dev-python/setuptools-23.1.0[${PYTHON_MULTI_USEDEP}] |
145 |
- dev-python/sip[${PYTHON_MULTI_USEDEP}] |
146 |
- ') |
147 |
- >=virtual/podofo-build-0.9.6_pre20171027 |
148 |
- virtual/pkgconfig" |
149 |
- |
150 |
-pkg_pretend() { |
151 |
- if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc && [[ $(gcc-major-version) -lt 6 ]]; then |
152 |
- eerror "Calibre cannot be built with this version of gcc." |
153 |
- eerror "You need at least gcc-6.0" |
154 |
- die "Your C compiler is too old for this package." |
155 |
- fi |
156 |
-} |
157 |
- |
158 |
-src_prepare() { |
159 |
- # no_updates: do not annoy user with "new version is availible all the time |
160 |
- # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
161 |
- eapply \ |
162 |
- "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ |
163 |
- "${FILESDIR}/${PN}-disable_plugins.patch" |
164 |
- |
165 |
- eapply_user |
166 |
- |
167 |
- # Fix outdated version constant. |
168 |
- #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
169 |
- # -i src/calibre/constants.py || \ |
170 |
- # die "sed failed to patch constants.py" |
171 |
- |
172 |
- # Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
173 |
- # calls xdg-* (bug #258938). |
174 |
- sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ |
175 |
- -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
176 |
- -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
177 |
- -e "s|, PreserveMIMEDefaults():|:|" \ |
178 |
- -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \ |
179 |
- -e "s|cmd\[2\]|cmd[4]|" \ |
180 |
- -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
181 |
- -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ |
182 |
- -i src/calibre/linux.py || die "sed failed to patch linux.py" |
183 |
- |
184 |
- # Disable unnecessary privilege dropping for bug #287067. |
185 |
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
186 |
- -i setup/install.py || die "sed failed to patch install.py" |
187 |
- |
188 |
- sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\ |
189 |
-\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
190 |
-'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
191 |
-'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
192 |
-'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
193 |
-'-i', 'Makefile'])" \ |
194 |
- -i setup/build.py || die "sed failed to patch build.py" |
195 |
-} |
196 |
- |
197 |
-src_install() { |
198 |
- # calibre works with python 3, so remove the python 2 constraint |
199 |
- export CALIBRE_PY3_PORT=1 |
200 |
- |
201 |
- # Bypass kbuildsycoca and update-mime-database in order to |
202 |
- # avoid sandbox violations if xdg-mime tries to call them. |
203 |
- cat - > "${T}/kbuildsycoca" <<-EOF |
204 |
- #!${BASH} |
205 |
- echo $0 : $@ |
206 |
- exit 0 |
207 |
- EOF |
208 |
- |
209 |
- cp "${T}"/{kbuildsycoca,update-mime-database} || die |
210 |
- chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die |
211 |
- |
212 |
- export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake" |
213 |
- |
214 |
- # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
215 |
- # violation with kbuildsycoca as in bug #287067, comment #13. |
216 |
- export -n DISPLAY |
217 |
- |
218 |
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
219 |
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
220 |
- # return _parse_localename(localename) |
221 |
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
222 |
- # raise ValueError, 'unknown locale: %s' % localename |
223 |
- #ValueError: unknown locale: 46 |
224 |
- export -n LANG LANGUAGE ${!LC_*} |
225 |
- export LC_ALL=C.utf8 #709682 |
226 |
- |
227 |
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
228 |
- # variables to point to our fake temporary $HOME. |
229 |
- export HOME="${T}/fake_homedir" |
230 |
- export XDG_CONFIG_HOME="${HOME}/.config" |
231 |
- export XDG_DATA_HOME="${HOME}/.local/share" |
232 |
- export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
233 |
- mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die |
234 |
- |
235 |
- tc-export CC CXX |
236 |
- # Bug #334243 - respect LDFLAGS when building extensions |
237 |
- export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
238 |
- local libdir=$(get_libdir) |
239 |
- [[ -n $libdir ]] || die "get_libdir returned an empty string" |
240 |
- |
241 |
- addpredict /dev/dri #665310 |
242 |
- |
243 |
- PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
244 |
- "${PYTHON}" setup.py install \ |
245 |
- --root="${D}" \ |
246 |
- --prefix="${EPREFIX}/usr" \ |
247 |
- --libdir="${EPREFIX}/usr/${libdir}" \ |
248 |
- --staging-root="${ED}/usr" \ |
249 |
- --staging-libdir="${ED}/usr/${libdir}" || die |
250 |
- |
251 |
- rm "${ED}/usr/share/applications/defaults.list" || die |
252 |
- find "${ED}"/usr/share -type d -empty -delete |
253 |
- |
254 |
- cd "${ED}"/usr/share/calibre/fonts/liberation || die |
255 |
- local x |
256 |
- for x in * ; do |
257 |
- [[ -f ${EPREFIX}/usr/share/fonts/liberation-fonts/${x} ]] || continue |
258 |
- ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
259 |
- done |
260 |
- |
261 |
- einfo "Converting python shebangs" |
262 |
- python_fix_shebang --force "${ED}" |
263 |
- |
264 |
- einfo "Compiling python modules" |
265 |
- python_optimize "${ED}"/usr/lib/calibre |
266 |
- |
267 |
- newinitd "${FILESDIR}"/calibre-server-3.init calibre-server |
268 |
- newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server |
269 |
- |
270 |
- bashcomp_alias calibre \ |
271 |
- lrfviewer \ |
272 |
- calibre-debug \ |
273 |
- ebook-meta \ |
274 |
- calibre-server \ |
275 |
- ebook-viewer \ |
276 |
- ebook-polish \ |
277 |
- fetch-ebook-metadata \ |
278 |
- lrf2lrs \ |
279 |
- ebook-convert \ |
280 |
- ebook-edit \ |
281 |
- calibre-smtp \ |
282 |
- ebook-device |
283 |
- |
284 |
-} |
285 |
- |
286 |
-pkg_preinst() { |
287 |
- # Indentify stray directories from upstream's "Binary install" |
288 |
- # method (see bug 622728). |
289 |
- CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre |
290 |
- CALIBRE_LIB_CONTENT=$(for x in "${ED}${CALIBRE_LIB_DIR}"/*; do |
291 |
- printf -- "${x##*/} "; done) || die "Failed to list ${ED}${CALIBRE_LIB_DIR}" |
292 |
-} |
293 |
- |
294 |
-pkg_postinst() { |
295 |
- [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset" |
296 |
- local x |
297 |
- for x in "${EROOT}${CALIBRE_LIB_DIR}"/*; do |
298 |
- if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then |
299 |
- elog "Purging '${x}'" |
300 |
- rm -rf "${x}" |
301 |
- fi |
302 |
- done |
303 |
- xdg_desktop_database_update |
304 |
- xdg_mimeinfo_database_update |
305 |
- xdg_icon_cache_update |
306 |
-} |
307 |
- |
308 |
-pkg_postrm() { |
309 |
- xdg_desktop_database_update |
310 |
- xdg_mimeinfo_database_update |
311 |
- xdg_icon_cache_update |
312 |
-} |
313 |
|
314 |
diff --git a/app-text/calibre/calibre-4.12.0.ebuild b/app-text/calibre/calibre-4.12.0.ebuild |
315 |
deleted file mode 100644 |
316 |
index 0191479d6be..00000000000 |
317 |
--- a/app-text/calibre/calibre-4.12.0.ebuild |
318 |
+++ /dev/null |
319 |
@@ -1,274 +0,0 @@ |
320 |
-# Copyright 1999-2020 Gentoo Authors |
321 |
-# Distributed under the terms of the GNU General Public License v2 |
322 |
- |
323 |
-EAPI=7 |
324 |
- |
325 |
-PYTHON_COMPAT=( python3_{6,7} ) |
326 |
-PYTHON_REQ_USE="sqlite,ssl" |
327 |
- |
328 |
-inherit bash-completion-r1 desktop toolchain-funcs python-single-r1 xdg-utils |
329 |
- |
330 |
-DESCRIPTION="Ebook management application" |
331 |
-HOMEPAGE="https://calibre-ebook.com/" |
332 |
-SRC_URI="https://download.calibre-ebook.com/${PV}/${P}.tar.xz" |
333 |
- |
334 |
-LICENSE=" |
335 |
- GPL-3+ |
336 |
- GPL-3 |
337 |
- GPL-2+ |
338 |
- GPL-2 |
339 |
- GPL-1+ |
340 |
- LGPL-3+ |
341 |
- LGPL-2.1+ |
342 |
- LGPL-2.1 |
343 |
- BSD |
344 |
- MIT |
345 |
- Old-MIT |
346 |
- Apache-2.0 |
347 |
- public-domain |
348 |
- || ( Artistic GPL-1+ ) |
349 |
- CC-BY-3.0 |
350 |
- OFL-1.1 |
351 |
- PSF-2 |
352 |
-" |
353 |
-KEYWORDS="~amd64 ~arm ~x86" |
354 |
-SLOT="0" |
355 |
-IUSE="ios +udisks" |
356 |
- |
357 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
358 |
- |
359 |
-COMMON_DEPEND="${PYTHON_DEPS} |
360 |
- >=app-text/hunspell-1.7:= |
361 |
- >=app-text/podofo-0.9.6_pre20171027:= |
362 |
- >=app-text/poppler-0.26.5[qt5] |
363 |
- >=dev-libs/chmlib-0.40:= |
364 |
- dev-libs/glib:2= |
365 |
- dev-libs/hyphen:= |
366 |
- >=dev-libs/icu-57.1:= |
367 |
- dev-libs/libinput:= |
368 |
- >=dev-libs/dbus-glib-0.106 |
369 |
- >=sys-apps/dbus-1.10.8 |
370 |
- $(python_gen_cond_dep ' |
371 |
- >=dev-python/apsw-3.25.2_p1[${PYTHON_MULTI_USEDEP}] |
372 |
- dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}] |
373 |
- >=dev-python/chardet-3.0.3[${PYTHON_MULTI_USEDEP}] |
374 |
- >=dev-python/cssselect-0.7.1[${PYTHON_MULTI_USEDEP}] |
375 |
- >=dev-python/css-parser-1.0.4[${PYTHON_MULTI_USEDEP}] |
376 |
- >=dev-python/dbus-python-1.2.4[${PYTHON_MULTI_USEDEP}] |
377 |
- dev-python/dnspython[${PYTHON_MULTI_USEDEP}] |
378 |
- >=dev-python/feedparser-5.2.1[${PYTHON_MULTI_USEDEP}] |
379 |
- >=dev-python/html2text-2019.8.11[${PYTHON_MULTI_USEDEP}] |
380 |
- >=dev-python/html5-parser-0.4.9[${PYTHON_MULTI_USEDEP}] |
381 |
- >=dev-python/lxml-3.8.0[${PYTHON_MULTI_USEDEP}] |
382 |
- >=dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}] |
383 |
- >=dev-python/mechanize-0.3.5[${PYTHON_MULTI_USEDEP}] |
384 |
- >=dev-python/msgpack-0.5.6[${PYTHON_MULTI_USEDEP}] |
385 |
- >=dev-python/netifaces-0.10.5[${PYTHON_MULTI_USEDEP}] |
386 |
- >=dev-python/pillow-3.2.0[${PYTHON_MULTI_USEDEP}] |
387 |
- >=dev-python/psutil-4.3.0[${PYTHON_MULTI_USEDEP}] |
388 |
- >=dev-python/pygments-2.3.1[${PYTHON_MULTI_USEDEP}] |
389 |
- >=dev-python/python-dateutil-2.5.3[${PYTHON_MULTI_USEDEP}] |
390 |
- >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_MULTI_USEDEP}] |
391 |
- >=dev-python/PyQtWebEngine-5.12[${PYTHON_MULTI_USEDEP}] |
392 |
- dev-python/regex[${PYTHON_MULTI_USEDEP}] |
393 |
- dev-python/zeroconf[${PYTHON_MULTI_USEDEP}] |
394 |
- ') |
395 |
- dev-qt/qtcore:5= |
396 |
- dev-qt/qtdbus:5= |
397 |
- dev-qt/qtgui:5= |
398 |
- >=dev-qt/qtwebengine-5.12 |
399 |
- dev-qt/qtwidgets:5= |
400 |
- dev-util/desktop-file-utils |
401 |
- dev-util/gtk-update-icon-cache |
402 |
- media-fonts/liberation-fonts |
403 |
- media-libs/fontconfig:= |
404 |
- >=media-libs/freetype-2:= |
405 |
- >=media-libs/libmtp-1.1.11:= |
406 |
- >=media-libs/libwmf-0.2.8 |
407 |
- >=media-gfx/optipng-0.7.6 |
408 |
- >=sys-libs/zlib-1.2.11:= |
409 |
- virtual/libusb:1= |
410 |
- x11-libs/libxkbcommon:= |
411 |
- x11-libs/libX11:= |
412 |
- x11-libs/libXext:= |
413 |
- x11-libs/libXrender:= |
414 |
- x11-misc/shared-mime-info |
415 |
- >=x11-misc/xdg-utils-1.0.2-r2 |
416 |
- ios? ( |
417 |
- >=app-pda/usbmuxd-1.0.8 |
418 |
- >=app-pda/libimobiledevice-1.2.0 |
419 |
- ) |
420 |
- udisks? ( virtual/libudev )" |
421 |
-RDEPEND="${COMMON_DEPEND} |
422 |
- udisks? ( sys-fs/udisks:2 )" |
423 |
-DEPEND="${COMMON_DEPEND} |
424 |
- $(python_gen_cond_dep ' |
425 |
- >=dev-python/setuptools-23.1.0[${PYTHON_MULTI_USEDEP}] |
426 |
- dev-python/sip[${PYTHON_MULTI_USEDEP}] |
427 |
- ') |
428 |
- >=virtual/podofo-build-0.9.6_pre20171027 |
429 |
- virtual/pkgconfig" |
430 |
- |
431 |
-pkg_pretend() { |
432 |
- if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc && [[ $(gcc-major-version) -lt 6 ]]; then |
433 |
- eerror "Calibre cannot be built with this version of gcc." |
434 |
- eerror "You need at least gcc-6.0" |
435 |
- die "Your C compiler is too old for this package." |
436 |
- fi |
437 |
-} |
438 |
- |
439 |
-src_prepare() { |
440 |
- # no_updates: do not annoy user with "new version is availible all the time |
441 |
- # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
442 |
- eapply \ |
443 |
- "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ |
444 |
- "${FILESDIR}/${PN}-disable_plugins.patch" |
445 |
- |
446 |
- eapply_user |
447 |
- |
448 |
- # Fix outdated version constant. |
449 |
- #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
450 |
- # -i src/calibre/constants.py || \ |
451 |
- # die "sed failed to patch constants.py" |
452 |
- |
453 |
- # Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
454 |
- # calls xdg-* (bug #258938). |
455 |
- sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ |
456 |
- -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
457 |
- -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
458 |
- -e "s|, PreserveMIMEDefaults():|:|" \ |
459 |
- -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \ |
460 |
- -e "s|cmd\[2\]|cmd[4]|" \ |
461 |
- -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
462 |
- -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ |
463 |
- -i src/calibre/linux.py || die "sed failed to patch linux.py" |
464 |
- |
465 |
- # Disable unnecessary privilege dropping for bug #287067. |
466 |
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
467 |
- -i setup/install.py || die "sed failed to patch install.py" |
468 |
- |
469 |
- sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\ |
470 |
-\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
471 |
-'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
472 |
-'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
473 |
-'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
474 |
-'-i', 'Makefile'])" \ |
475 |
- -i setup/build.py || die "sed failed to patch build.py" |
476 |
-} |
477 |
- |
478 |
-src_install() { |
479 |
- # calibre works with python 3, so remove the python 2 constraint |
480 |
- export CALIBRE_PY3_PORT=1 |
481 |
- |
482 |
- # Bypass kbuildsycoca and update-mime-database in order to |
483 |
- # avoid sandbox violations if xdg-mime tries to call them. |
484 |
- cat - > "${T}/kbuildsycoca" <<-EOF |
485 |
- #!${BASH} |
486 |
- echo $0 : $@ |
487 |
- exit 0 |
488 |
- EOF |
489 |
- |
490 |
- cp "${T}"/{kbuildsycoca,update-mime-database} || die |
491 |
- chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die |
492 |
- |
493 |
- export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake" |
494 |
- |
495 |
- # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
496 |
- # violation with kbuildsycoca as in bug #287067, comment #13. |
497 |
- export -n DISPLAY |
498 |
- |
499 |
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
500 |
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
501 |
- # return _parse_localename(localename) |
502 |
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
503 |
- # raise ValueError, 'unknown locale: %s' % localename |
504 |
- #ValueError: unknown locale: 46 |
505 |
- export -n LANG LANGUAGE ${!LC_*} |
506 |
- export LC_ALL=C.utf8 #709682 |
507 |
- |
508 |
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
509 |
- # variables to point to our fake temporary $HOME. |
510 |
- export HOME="${T}/fake_homedir" |
511 |
- export XDG_CONFIG_HOME="${HOME}/.config" |
512 |
- export XDG_DATA_HOME="${HOME}/.local/share" |
513 |
- export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
514 |
- mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die |
515 |
- |
516 |
- tc-export CC CXX |
517 |
- # Bug #334243 - respect LDFLAGS when building extensions |
518 |
- export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
519 |
- local libdir=$(get_libdir) |
520 |
- [[ -n $libdir ]] || die "get_libdir returned an empty string" |
521 |
- |
522 |
- addpredict /dev/dri #665310 |
523 |
- |
524 |
- PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
525 |
- "${PYTHON}" setup.py install \ |
526 |
- --root="${D}" \ |
527 |
- --prefix="${EPREFIX}/usr" \ |
528 |
- --libdir="${EPREFIX}/usr/${libdir}" \ |
529 |
- --staging-root="${ED}/usr" \ |
530 |
- --staging-libdir="${ED}/usr/${libdir}" || die |
531 |
- |
532 |
- rm "${ED}/usr/share/applications/defaults.list" || die |
533 |
- find "${ED}"/usr/share -type d -empty -delete |
534 |
- |
535 |
- cd "${ED}"/usr/share/calibre/fonts/liberation || die |
536 |
- local x |
537 |
- for x in * ; do |
538 |
- [[ -f ${EPREFIX}/usr/share/fonts/liberation-fonts/${x} ]] || continue |
539 |
- ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
540 |
- done |
541 |
- |
542 |
- einfo "Converting python shebangs" |
543 |
- python_fix_shebang --force "${ED}" |
544 |
- |
545 |
- einfo "Compiling python modules" |
546 |
- python_optimize "${ED}"/usr/lib/calibre |
547 |
- |
548 |
- newinitd "${FILESDIR}"/calibre-server-3.init calibre-server |
549 |
- newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server |
550 |
- |
551 |
- bashcomp_alias calibre \ |
552 |
- lrfviewer \ |
553 |
- calibre-debug \ |
554 |
- ebook-meta \ |
555 |
- calibre-server \ |
556 |
- ebook-viewer \ |
557 |
- ebook-polish \ |
558 |
- fetch-ebook-metadata \ |
559 |
- lrf2lrs \ |
560 |
- ebook-convert \ |
561 |
- ebook-edit \ |
562 |
- calibre-smtp \ |
563 |
- ebook-device |
564 |
- |
565 |
-} |
566 |
- |
567 |
-pkg_preinst() { |
568 |
- # Indentify stray directories from upstream's "Binary install" |
569 |
- # method (see bug 622728). |
570 |
- CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre |
571 |
- CALIBRE_LIB_CONTENT=$(for x in "${ED}${CALIBRE_LIB_DIR}"/*; do |
572 |
- printf -- "${x##*/} "; done) || die "Failed to list ${ED}${CALIBRE_LIB_DIR}" |
573 |
-} |
574 |
- |
575 |
-pkg_postinst() { |
576 |
- [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset" |
577 |
- local x |
578 |
- for x in "${EROOT}${CALIBRE_LIB_DIR}"/*; do |
579 |
- if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then |
580 |
- elog "Purging '${x}'" |
581 |
- rm -rf "${x}" |
582 |
- fi |
583 |
- done |
584 |
- xdg_desktop_database_update |
585 |
- xdg_mimeinfo_database_update |
586 |
- xdg_icon_cache_update |
587 |
-} |
588 |
- |
589 |
-pkg_postrm() { |
590 |
- xdg_desktop_database_update |
591 |
- xdg_mimeinfo_database_update |
592 |
- xdg_icon_cache_update |
593 |
-} |
594 |
|
595 |
diff --git a/app-text/calibre/calibre-4.15.0.ebuild b/app-text/calibre/calibre-4.15.0.ebuild |
596 |
deleted file mode 100644 |
597 |
index 0191479d6be..00000000000 |
598 |
--- a/app-text/calibre/calibre-4.15.0.ebuild |
599 |
+++ /dev/null |
600 |
@@ -1,274 +0,0 @@ |
601 |
-# Copyright 1999-2020 Gentoo Authors |
602 |
-# Distributed under the terms of the GNU General Public License v2 |
603 |
- |
604 |
-EAPI=7 |
605 |
- |
606 |
-PYTHON_COMPAT=( python3_{6,7} ) |
607 |
-PYTHON_REQ_USE="sqlite,ssl" |
608 |
- |
609 |
-inherit bash-completion-r1 desktop toolchain-funcs python-single-r1 xdg-utils |
610 |
- |
611 |
-DESCRIPTION="Ebook management application" |
612 |
-HOMEPAGE="https://calibre-ebook.com/" |
613 |
-SRC_URI="https://download.calibre-ebook.com/${PV}/${P}.tar.xz" |
614 |
- |
615 |
-LICENSE=" |
616 |
- GPL-3+ |
617 |
- GPL-3 |
618 |
- GPL-2+ |
619 |
- GPL-2 |
620 |
- GPL-1+ |
621 |
- LGPL-3+ |
622 |
- LGPL-2.1+ |
623 |
- LGPL-2.1 |
624 |
- BSD |
625 |
- MIT |
626 |
- Old-MIT |
627 |
- Apache-2.0 |
628 |
- public-domain |
629 |
- || ( Artistic GPL-1+ ) |
630 |
- CC-BY-3.0 |
631 |
- OFL-1.1 |
632 |
- PSF-2 |
633 |
-" |
634 |
-KEYWORDS="~amd64 ~arm ~x86" |
635 |
-SLOT="0" |
636 |
-IUSE="ios +udisks" |
637 |
- |
638 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
639 |
- |
640 |
-COMMON_DEPEND="${PYTHON_DEPS} |
641 |
- >=app-text/hunspell-1.7:= |
642 |
- >=app-text/podofo-0.9.6_pre20171027:= |
643 |
- >=app-text/poppler-0.26.5[qt5] |
644 |
- >=dev-libs/chmlib-0.40:= |
645 |
- dev-libs/glib:2= |
646 |
- dev-libs/hyphen:= |
647 |
- >=dev-libs/icu-57.1:= |
648 |
- dev-libs/libinput:= |
649 |
- >=dev-libs/dbus-glib-0.106 |
650 |
- >=sys-apps/dbus-1.10.8 |
651 |
- $(python_gen_cond_dep ' |
652 |
- >=dev-python/apsw-3.25.2_p1[${PYTHON_MULTI_USEDEP}] |
653 |
- dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}] |
654 |
- >=dev-python/chardet-3.0.3[${PYTHON_MULTI_USEDEP}] |
655 |
- >=dev-python/cssselect-0.7.1[${PYTHON_MULTI_USEDEP}] |
656 |
- >=dev-python/css-parser-1.0.4[${PYTHON_MULTI_USEDEP}] |
657 |
- >=dev-python/dbus-python-1.2.4[${PYTHON_MULTI_USEDEP}] |
658 |
- dev-python/dnspython[${PYTHON_MULTI_USEDEP}] |
659 |
- >=dev-python/feedparser-5.2.1[${PYTHON_MULTI_USEDEP}] |
660 |
- >=dev-python/html2text-2019.8.11[${PYTHON_MULTI_USEDEP}] |
661 |
- >=dev-python/html5-parser-0.4.9[${PYTHON_MULTI_USEDEP}] |
662 |
- >=dev-python/lxml-3.8.0[${PYTHON_MULTI_USEDEP}] |
663 |
- >=dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}] |
664 |
- >=dev-python/mechanize-0.3.5[${PYTHON_MULTI_USEDEP}] |
665 |
- >=dev-python/msgpack-0.5.6[${PYTHON_MULTI_USEDEP}] |
666 |
- >=dev-python/netifaces-0.10.5[${PYTHON_MULTI_USEDEP}] |
667 |
- >=dev-python/pillow-3.2.0[${PYTHON_MULTI_USEDEP}] |
668 |
- >=dev-python/psutil-4.3.0[${PYTHON_MULTI_USEDEP}] |
669 |
- >=dev-python/pygments-2.3.1[${PYTHON_MULTI_USEDEP}] |
670 |
- >=dev-python/python-dateutil-2.5.3[${PYTHON_MULTI_USEDEP}] |
671 |
- >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_MULTI_USEDEP}] |
672 |
- >=dev-python/PyQtWebEngine-5.12[${PYTHON_MULTI_USEDEP}] |
673 |
- dev-python/regex[${PYTHON_MULTI_USEDEP}] |
674 |
- dev-python/zeroconf[${PYTHON_MULTI_USEDEP}] |
675 |
- ') |
676 |
- dev-qt/qtcore:5= |
677 |
- dev-qt/qtdbus:5= |
678 |
- dev-qt/qtgui:5= |
679 |
- >=dev-qt/qtwebengine-5.12 |
680 |
- dev-qt/qtwidgets:5= |
681 |
- dev-util/desktop-file-utils |
682 |
- dev-util/gtk-update-icon-cache |
683 |
- media-fonts/liberation-fonts |
684 |
- media-libs/fontconfig:= |
685 |
- >=media-libs/freetype-2:= |
686 |
- >=media-libs/libmtp-1.1.11:= |
687 |
- >=media-libs/libwmf-0.2.8 |
688 |
- >=media-gfx/optipng-0.7.6 |
689 |
- >=sys-libs/zlib-1.2.11:= |
690 |
- virtual/libusb:1= |
691 |
- x11-libs/libxkbcommon:= |
692 |
- x11-libs/libX11:= |
693 |
- x11-libs/libXext:= |
694 |
- x11-libs/libXrender:= |
695 |
- x11-misc/shared-mime-info |
696 |
- >=x11-misc/xdg-utils-1.0.2-r2 |
697 |
- ios? ( |
698 |
- >=app-pda/usbmuxd-1.0.8 |
699 |
- >=app-pda/libimobiledevice-1.2.0 |
700 |
- ) |
701 |
- udisks? ( virtual/libudev )" |
702 |
-RDEPEND="${COMMON_DEPEND} |
703 |
- udisks? ( sys-fs/udisks:2 )" |
704 |
-DEPEND="${COMMON_DEPEND} |
705 |
- $(python_gen_cond_dep ' |
706 |
- >=dev-python/setuptools-23.1.0[${PYTHON_MULTI_USEDEP}] |
707 |
- dev-python/sip[${PYTHON_MULTI_USEDEP}] |
708 |
- ') |
709 |
- >=virtual/podofo-build-0.9.6_pre20171027 |
710 |
- virtual/pkgconfig" |
711 |
- |
712 |
-pkg_pretend() { |
713 |
- if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc && [[ $(gcc-major-version) -lt 6 ]]; then |
714 |
- eerror "Calibre cannot be built with this version of gcc." |
715 |
- eerror "You need at least gcc-6.0" |
716 |
- die "Your C compiler is too old for this package." |
717 |
- fi |
718 |
-} |
719 |
- |
720 |
-src_prepare() { |
721 |
- # no_updates: do not annoy user with "new version is availible all the time |
722 |
- # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
723 |
- eapply \ |
724 |
- "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ |
725 |
- "${FILESDIR}/${PN}-disable_plugins.patch" |
726 |
- |
727 |
- eapply_user |
728 |
- |
729 |
- # Fix outdated version constant. |
730 |
- #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
731 |
- # -i src/calibre/constants.py || \ |
732 |
- # die "sed failed to patch constants.py" |
733 |
- |
734 |
- # Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
735 |
- # calls xdg-* (bug #258938). |
736 |
- sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ |
737 |
- -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
738 |
- -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
739 |
- -e "s|, PreserveMIMEDefaults():|:|" \ |
740 |
- -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \ |
741 |
- -e "s|cmd\[2\]|cmd[4]|" \ |
742 |
- -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
743 |
- -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ |
744 |
- -i src/calibre/linux.py || die "sed failed to patch linux.py" |
745 |
- |
746 |
- # Disable unnecessary privilege dropping for bug #287067. |
747 |
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
748 |
- -i setup/install.py || die "sed failed to patch install.py" |
749 |
- |
750 |
- sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\ |
751 |
-\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
752 |
-'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
753 |
-'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
754 |
-'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
755 |
-'-i', 'Makefile'])" \ |
756 |
- -i setup/build.py || die "sed failed to patch build.py" |
757 |
-} |
758 |
- |
759 |
-src_install() { |
760 |
- # calibre works with python 3, so remove the python 2 constraint |
761 |
- export CALIBRE_PY3_PORT=1 |
762 |
- |
763 |
- # Bypass kbuildsycoca and update-mime-database in order to |
764 |
- # avoid sandbox violations if xdg-mime tries to call them. |
765 |
- cat - > "${T}/kbuildsycoca" <<-EOF |
766 |
- #!${BASH} |
767 |
- echo $0 : $@ |
768 |
- exit 0 |
769 |
- EOF |
770 |
- |
771 |
- cp "${T}"/{kbuildsycoca,update-mime-database} || die |
772 |
- chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die |
773 |
- |
774 |
- export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake" |
775 |
- |
776 |
- # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
777 |
- # violation with kbuildsycoca as in bug #287067, comment #13. |
778 |
- export -n DISPLAY |
779 |
- |
780 |
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
781 |
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
782 |
- # return _parse_localename(localename) |
783 |
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
784 |
- # raise ValueError, 'unknown locale: %s' % localename |
785 |
- #ValueError: unknown locale: 46 |
786 |
- export -n LANG LANGUAGE ${!LC_*} |
787 |
- export LC_ALL=C.utf8 #709682 |
788 |
- |
789 |
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
790 |
- # variables to point to our fake temporary $HOME. |
791 |
- export HOME="${T}/fake_homedir" |
792 |
- export XDG_CONFIG_HOME="${HOME}/.config" |
793 |
- export XDG_DATA_HOME="${HOME}/.local/share" |
794 |
- export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
795 |
- mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die |
796 |
- |
797 |
- tc-export CC CXX |
798 |
- # Bug #334243 - respect LDFLAGS when building extensions |
799 |
- export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
800 |
- local libdir=$(get_libdir) |
801 |
- [[ -n $libdir ]] || die "get_libdir returned an empty string" |
802 |
- |
803 |
- addpredict /dev/dri #665310 |
804 |
- |
805 |
- PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
806 |
- "${PYTHON}" setup.py install \ |
807 |
- --root="${D}" \ |
808 |
- --prefix="${EPREFIX}/usr" \ |
809 |
- --libdir="${EPREFIX}/usr/${libdir}" \ |
810 |
- --staging-root="${ED}/usr" \ |
811 |
- --staging-libdir="${ED}/usr/${libdir}" || die |
812 |
- |
813 |
- rm "${ED}/usr/share/applications/defaults.list" || die |
814 |
- find "${ED}"/usr/share -type d -empty -delete |
815 |
- |
816 |
- cd "${ED}"/usr/share/calibre/fonts/liberation || die |
817 |
- local x |
818 |
- for x in * ; do |
819 |
- [[ -f ${EPREFIX}/usr/share/fonts/liberation-fonts/${x} ]] || continue |
820 |
- ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
821 |
- done |
822 |
- |
823 |
- einfo "Converting python shebangs" |
824 |
- python_fix_shebang --force "${ED}" |
825 |
- |
826 |
- einfo "Compiling python modules" |
827 |
- python_optimize "${ED}"/usr/lib/calibre |
828 |
- |
829 |
- newinitd "${FILESDIR}"/calibre-server-3.init calibre-server |
830 |
- newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server |
831 |
- |
832 |
- bashcomp_alias calibre \ |
833 |
- lrfviewer \ |
834 |
- calibre-debug \ |
835 |
- ebook-meta \ |
836 |
- calibre-server \ |
837 |
- ebook-viewer \ |
838 |
- ebook-polish \ |
839 |
- fetch-ebook-metadata \ |
840 |
- lrf2lrs \ |
841 |
- ebook-convert \ |
842 |
- ebook-edit \ |
843 |
- calibre-smtp \ |
844 |
- ebook-device |
845 |
- |
846 |
-} |
847 |
- |
848 |
-pkg_preinst() { |
849 |
- # Indentify stray directories from upstream's "Binary install" |
850 |
- # method (see bug 622728). |
851 |
- CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre |
852 |
- CALIBRE_LIB_CONTENT=$(for x in "${ED}${CALIBRE_LIB_DIR}"/*; do |
853 |
- printf -- "${x##*/} "; done) || die "Failed to list ${ED}${CALIBRE_LIB_DIR}" |
854 |
-} |
855 |
- |
856 |
-pkg_postinst() { |
857 |
- [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset" |
858 |
- local x |
859 |
- for x in "${EROOT}${CALIBRE_LIB_DIR}"/*; do |
860 |
- if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then |
861 |
- elog "Purging '${x}'" |
862 |
- rm -rf "${x}" |
863 |
- fi |
864 |
- done |
865 |
- xdg_desktop_database_update |
866 |
- xdg_mimeinfo_database_update |
867 |
- xdg_icon_cache_update |
868 |
-} |
869 |
- |
870 |
-pkg_postrm() { |
871 |
- xdg_desktop_database_update |
872 |
- xdg_mimeinfo_database_update |
873 |
- xdg_icon_cache_update |
874 |
-} |
875 |
|
876 |
diff --git a/app-text/calibre/calibre-4.16.0.ebuild b/app-text/calibre/calibre-4.16.0.ebuild |
877 |
deleted file mode 100644 |
878 |
index 0191479d6be..00000000000 |
879 |
--- a/app-text/calibre/calibre-4.16.0.ebuild |
880 |
+++ /dev/null |
881 |
@@ -1,274 +0,0 @@ |
882 |
-# Copyright 1999-2020 Gentoo Authors |
883 |
-# Distributed under the terms of the GNU General Public License v2 |
884 |
- |
885 |
-EAPI=7 |
886 |
- |
887 |
-PYTHON_COMPAT=( python3_{6,7} ) |
888 |
-PYTHON_REQ_USE="sqlite,ssl" |
889 |
- |
890 |
-inherit bash-completion-r1 desktop toolchain-funcs python-single-r1 xdg-utils |
891 |
- |
892 |
-DESCRIPTION="Ebook management application" |
893 |
-HOMEPAGE="https://calibre-ebook.com/" |
894 |
-SRC_URI="https://download.calibre-ebook.com/${PV}/${P}.tar.xz" |
895 |
- |
896 |
-LICENSE=" |
897 |
- GPL-3+ |
898 |
- GPL-3 |
899 |
- GPL-2+ |
900 |
- GPL-2 |
901 |
- GPL-1+ |
902 |
- LGPL-3+ |
903 |
- LGPL-2.1+ |
904 |
- LGPL-2.1 |
905 |
- BSD |
906 |
- MIT |
907 |
- Old-MIT |
908 |
- Apache-2.0 |
909 |
- public-domain |
910 |
- || ( Artistic GPL-1+ ) |
911 |
- CC-BY-3.0 |
912 |
- OFL-1.1 |
913 |
- PSF-2 |
914 |
-" |
915 |
-KEYWORDS="~amd64 ~arm ~x86" |
916 |
-SLOT="0" |
917 |
-IUSE="ios +udisks" |
918 |
- |
919 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
920 |
- |
921 |
-COMMON_DEPEND="${PYTHON_DEPS} |
922 |
- >=app-text/hunspell-1.7:= |
923 |
- >=app-text/podofo-0.9.6_pre20171027:= |
924 |
- >=app-text/poppler-0.26.5[qt5] |
925 |
- >=dev-libs/chmlib-0.40:= |
926 |
- dev-libs/glib:2= |
927 |
- dev-libs/hyphen:= |
928 |
- >=dev-libs/icu-57.1:= |
929 |
- dev-libs/libinput:= |
930 |
- >=dev-libs/dbus-glib-0.106 |
931 |
- >=sys-apps/dbus-1.10.8 |
932 |
- $(python_gen_cond_dep ' |
933 |
- >=dev-python/apsw-3.25.2_p1[${PYTHON_MULTI_USEDEP}] |
934 |
- dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}] |
935 |
- >=dev-python/chardet-3.0.3[${PYTHON_MULTI_USEDEP}] |
936 |
- >=dev-python/cssselect-0.7.1[${PYTHON_MULTI_USEDEP}] |
937 |
- >=dev-python/css-parser-1.0.4[${PYTHON_MULTI_USEDEP}] |
938 |
- >=dev-python/dbus-python-1.2.4[${PYTHON_MULTI_USEDEP}] |
939 |
- dev-python/dnspython[${PYTHON_MULTI_USEDEP}] |
940 |
- >=dev-python/feedparser-5.2.1[${PYTHON_MULTI_USEDEP}] |
941 |
- >=dev-python/html2text-2019.8.11[${PYTHON_MULTI_USEDEP}] |
942 |
- >=dev-python/html5-parser-0.4.9[${PYTHON_MULTI_USEDEP}] |
943 |
- >=dev-python/lxml-3.8.0[${PYTHON_MULTI_USEDEP}] |
944 |
- >=dev-python/markdown-3.0.1[${PYTHON_MULTI_USEDEP}] |
945 |
- >=dev-python/mechanize-0.3.5[${PYTHON_MULTI_USEDEP}] |
946 |
- >=dev-python/msgpack-0.5.6[${PYTHON_MULTI_USEDEP}] |
947 |
- >=dev-python/netifaces-0.10.5[${PYTHON_MULTI_USEDEP}] |
948 |
- >=dev-python/pillow-3.2.0[${PYTHON_MULTI_USEDEP}] |
949 |
- >=dev-python/psutil-4.3.0[${PYTHON_MULTI_USEDEP}] |
950 |
- >=dev-python/pygments-2.3.1[${PYTHON_MULTI_USEDEP}] |
951 |
- >=dev-python/python-dateutil-2.5.3[${PYTHON_MULTI_USEDEP}] |
952 |
- >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_MULTI_USEDEP}] |
953 |
- >=dev-python/PyQtWebEngine-5.12[${PYTHON_MULTI_USEDEP}] |
954 |
- dev-python/regex[${PYTHON_MULTI_USEDEP}] |
955 |
- dev-python/zeroconf[${PYTHON_MULTI_USEDEP}] |
956 |
- ') |
957 |
- dev-qt/qtcore:5= |
958 |
- dev-qt/qtdbus:5= |
959 |
- dev-qt/qtgui:5= |
960 |
- >=dev-qt/qtwebengine-5.12 |
961 |
- dev-qt/qtwidgets:5= |
962 |
- dev-util/desktop-file-utils |
963 |
- dev-util/gtk-update-icon-cache |
964 |
- media-fonts/liberation-fonts |
965 |
- media-libs/fontconfig:= |
966 |
- >=media-libs/freetype-2:= |
967 |
- >=media-libs/libmtp-1.1.11:= |
968 |
- >=media-libs/libwmf-0.2.8 |
969 |
- >=media-gfx/optipng-0.7.6 |
970 |
- >=sys-libs/zlib-1.2.11:= |
971 |
- virtual/libusb:1= |
972 |
- x11-libs/libxkbcommon:= |
973 |
- x11-libs/libX11:= |
974 |
- x11-libs/libXext:= |
975 |
- x11-libs/libXrender:= |
976 |
- x11-misc/shared-mime-info |
977 |
- >=x11-misc/xdg-utils-1.0.2-r2 |
978 |
- ios? ( |
979 |
- >=app-pda/usbmuxd-1.0.8 |
980 |
- >=app-pda/libimobiledevice-1.2.0 |
981 |
- ) |
982 |
- udisks? ( virtual/libudev )" |
983 |
-RDEPEND="${COMMON_DEPEND} |
984 |
- udisks? ( sys-fs/udisks:2 )" |
985 |
-DEPEND="${COMMON_DEPEND} |
986 |
- $(python_gen_cond_dep ' |
987 |
- >=dev-python/setuptools-23.1.0[${PYTHON_MULTI_USEDEP}] |
988 |
- dev-python/sip[${PYTHON_MULTI_USEDEP}] |
989 |
- ') |
990 |
- >=virtual/podofo-build-0.9.6_pre20171027 |
991 |
- virtual/pkgconfig" |
992 |
- |
993 |
-pkg_pretend() { |
994 |
- if [[ ${MERGE_TYPE} != binary ]] && tc-is-gcc && [[ $(gcc-major-version) -lt 6 ]]; then |
995 |
- eerror "Calibre cannot be built with this version of gcc." |
996 |
- eerror "You need at least gcc-6.0" |
997 |
- die "Your C compiler is too old for this package." |
998 |
- fi |
999 |
-} |
1000 |
- |
1001 |
-src_prepare() { |
1002 |
- # no_updates: do not annoy user with "new version is availible all the time |
1003 |
- # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
1004 |
- eapply \ |
1005 |
- "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ |
1006 |
- "${FILESDIR}/${PN}-disable_plugins.patch" |
1007 |
- |
1008 |
- eapply_user |
1009 |
- |
1010 |
- # Fix outdated version constant. |
1011 |
- #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
1012 |
- # -i src/calibre/constants.py || \ |
1013 |
- # die "sed failed to patch constants.py" |
1014 |
- |
1015 |
- # Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
1016 |
- # calls xdg-* (bug #258938). |
1017 |
- sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ |
1018 |
- -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
1019 |
- -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
1020 |
- -e "s|, PreserveMIMEDefaults():|:|" \ |
1021 |
- -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \ |
1022 |
- -e "s|cmd\[2\]|cmd[4]|" \ |
1023 |
- -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
1024 |
- -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ |
1025 |
- -i src/calibre/linux.py || die "sed failed to patch linux.py" |
1026 |
- |
1027 |
- # Disable unnecessary privilege dropping for bug #287067. |
1028 |
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
1029 |
- -i setup/install.py || die "sed failed to patch install.py" |
1030 |
- |
1031 |
- sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\ |
1032 |
-\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
1033 |
-'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
1034 |
-'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
1035 |
-'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
1036 |
-'-i', 'Makefile'])" \ |
1037 |
- -i setup/build.py || die "sed failed to patch build.py" |
1038 |
-} |
1039 |
- |
1040 |
-src_install() { |
1041 |
- # calibre works with python 3, so remove the python 2 constraint |
1042 |
- export CALIBRE_PY3_PORT=1 |
1043 |
- |
1044 |
- # Bypass kbuildsycoca and update-mime-database in order to |
1045 |
- # avoid sandbox violations if xdg-mime tries to call them. |
1046 |
- cat - > "${T}/kbuildsycoca" <<-EOF |
1047 |
- #!${BASH} |
1048 |
- echo $0 : $@ |
1049 |
- exit 0 |
1050 |
- EOF |
1051 |
- |
1052 |
- cp "${T}"/{kbuildsycoca,update-mime-database} || die |
1053 |
- chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die |
1054 |
- |
1055 |
- export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake" |
1056 |
- |
1057 |
- # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
1058 |
- # violation with kbuildsycoca as in bug #287067, comment #13. |
1059 |
- export -n DISPLAY |
1060 |
- |
1061 |
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
1062 |
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
1063 |
- # return _parse_localename(localename) |
1064 |
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
1065 |
- # raise ValueError, 'unknown locale: %s' % localename |
1066 |
- #ValueError: unknown locale: 46 |
1067 |
- export -n LANG LANGUAGE ${!LC_*} |
1068 |
- export LC_ALL=C.utf8 #709682 |
1069 |
- |
1070 |
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
1071 |
- # variables to point to our fake temporary $HOME. |
1072 |
- export HOME="${T}/fake_homedir" |
1073 |
- export XDG_CONFIG_HOME="${HOME}/.config" |
1074 |
- export XDG_DATA_HOME="${HOME}/.local/share" |
1075 |
- export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
1076 |
- mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die |
1077 |
- |
1078 |
- tc-export CC CXX |
1079 |
- # Bug #334243 - respect LDFLAGS when building extensions |
1080 |
- export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
1081 |
- local libdir=$(get_libdir) |
1082 |
- [[ -n $libdir ]] || die "get_libdir returned an empty string" |
1083 |
- |
1084 |
- addpredict /dev/dri #665310 |
1085 |
- |
1086 |
- PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
1087 |
- "${PYTHON}" setup.py install \ |
1088 |
- --root="${D}" \ |
1089 |
- --prefix="${EPREFIX}/usr" \ |
1090 |
- --libdir="${EPREFIX}/usr/${libdir}" \ |
1091 |
- --staging-root="${ED}/usr" \ |
1092 |
- --staging-libdir="${ED}/usr/${libdir}" || die |
1093 |
- |
1094 |
- rm "${ED}/usr/share/applications/defaults.list" || die |
1095 |
- find "${ED}"/usr/share -type d -empty -delete |
1096 |
- |
1097 |
- cd "${ED}"/usr/share/calibre/fonts/liberation || die |
1098 |
- local x |
1099 |
- for x in * ; do |
1100 |
- [[ -f ${EPREFIX}/usr/share/fonts/liberation-fonts/${x} ]] || continue |
1101 |
- ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
1102 |
- done |
1103 |
- |
1104 |
- einfo "Converting python shebangs" |
1105 |
- python_fix_shebang --force "${ED}" |
1106 |
- |
1107 |
- einfo "Compiling python modules" |
1108 |
- python_optimize "${ED}"/usr/lib/calibre |
1109 |
- |
1110 |
- newinitd "${FILESDIR}"/calibre-server-3.init calibre-server |
1111 |
- newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server |
1112 |
- |
1113 |
- bashcomp_alias calibre \ |
1114 |
- lrfviewer \ |
1115 |
- calibre-debug \ |
1116 |
- ebook-meta \ |
1117 |
- calibre-server \ |
1118 |
- ebook-viewer \ |
1119 |
- ebook-polish \ |
1120 |
- fetch-ebook-metadata \ |
1121 |
- lrf2lrs \ |
1122 |
- ebook-convert \ |
1123 |
- ebook-edit \ |
1124 |
- calibre-smtp \ |
1125 |
- ebook-device |
1126 |
- |
1127 |
-} |
1128 |
- |
1129 |
-pkg_preinst() { |
1130 |
- # Indentify stray directories from upstream's "Binary install" |
1131 |
- # method (see bug 622728). |
1132 |
- CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre |
1133 |
- CALIBRE_LIB_CONTENT=$(for x in "${ED}${CALIBRE_LIB_DIR}"/*; do |
1134 |
- printf -- "${x##*/} "; done) || die "Failed to list ${ED}${CALIBRE_LIB_DIR}" |
1135 |
-} |
1136 |
- |
1137 |
-pkg_postinst() { |
1138 |
- [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset" |
1139 |
- local x |
1140 |
- for x in "${EROOT}${CALIBRE_LIB_DIR}"/*; do |
1141 |
- if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then |
1142 |
- elog "Purging '${x}'" |
1143 |
- rm -rf "${x}" |
1144 |
- fi |
1145 |
- done |
1146 |
- xdg_desktop_database_update |
1147 |
- xdg_mimeinfo_database_update |
1148 |
- xdg_icon_cache_update |
1149 |
-} |
1150 |
- |
1151 |
-pkg_postrm() { |
1152 |
- xdg_desktop_database_update |
1153 |
- xdg_mimeinfo_database_update |
1154 |
- xdg_icon_cache_update |
1155 |
-} |