Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/calibre/
Date: Sun, 12 Jan 2020 01:24:39
Message-Id: 1578792268.124061bd52476bed9b34555492184e24a5a3842c.zmedico@gentoo
1 commit: 124061bd52476bed9b34555492184e24a5a3842c
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 12 01:21:22 2020 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 12 01:24:28 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=124061bd
7
8 app-text/calibre: Remove old versions
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
12
13 app-text/calibre/Manifest | 3 -
14 app-text/calibre/calibre-4.4.0.ebuild | 272 ---------------------------------
15 app-text/calibre/calibre-4.5.0.ebuild | 272 ---------------------------------
16 app-text/calibre/calibre-4.6.0.ebuild | 273 ----------------------------------
17 4 files changed, 820 deletions(-)
18
19 diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest
20 index dfccb2d318e..f65b594e759 100644
21 --- a/app-text/calibre/Manifest
22 +++ b/app-text/calibre/Manifest
23 @@ -1,7 +1,4 @@
24 DIST calibre-3.47.1.tar.xz 38710008 BLAKE2B 60915345dd756d085386af61128e92569304be64aadbc21b69973e93adf3fb5cc88f7250153c238ecf423546f408bfc094b5bce329a54e7f080f831c4a8c23c1 SHA512 010796b3ac3fc6adcdf26dbc7966946be0f48b2684e1317da11d77fa55151d1f6ad2b86adf3c8eced5559823567e6672bfdfd953c17e6cc978894544131fb6bd
25 DIST calibre-3.48.0.tar.xz 38777408 BLAKE2B 9a7fae20487ae93120cfdc06a312a42d54d68935fdd2bc18dc41be5f8d359c79eae24e0409ba8e7f4df85e2f073f80ce6bab56cba0638cead6693600fa93cb41 SHA512 6cee28fb560e2e00b8ac2f32756f094146c6fe744cfc343d68f1fb54b3f8b0ca16129a5b35018af54a103790faa2eb03ac186c01003f21c874d2ed5218441220
26 -DIST calibre-4.4.0.tar.xz 36389440 BLAKE2B d6f6bfb98dd95012a7d145d7700a2818974b2d2e9f8faf1d98b931283305c92ec7e136c9569ef2074d748cc39819e53186ab250b8331d60253d23fddaa1f8a41 SHA512 0204f47db53bc3d649f43276460152423f994cf321661db315904916997121592e0edfb0b9212fbb593d50d3faef0762a2dddd4a7568d1f72c7eecb6b952d278
27 -DIST calibre-4.5.0.tar.xz 36472092 BLAKE2B b742f897b45e3832e5d8ebec93d8223973b6f5b6d6b3074a07e529eb4b823fa63cbf55c2d6b46ee7e0b5868dc45a858d0a841ce6b9a071ebc27a8977c44b00c6 SHA512 0d024ca7bda1ba9f2bb20fd02af1c4225d63c1a1e1bd71bf7760c214cec9ccf821fe31859cf389c6e45ba7fca21c706e5619f2066b600571f17660c52d84bd09
28 -DIST calibre-4.6.0.tar.xz 37397188 BLAKE2B 145f329bb4dfeaffcc1a1dec741cf7f0d2bb943bc343f83828ad3755452c6313e59cc2e1518d8b05120746928080bc2c0de52827202c6a45733495bddf9995ed SHA512 4a057ffa6a77dfcec99a7ac89caf98045e2884af5a2833aed232620bd668ce92f542c903ea3817cfc05bbdbf10d89be029a459924d889fc83c8151100779a70d
29 DIST calibre-4.7.0.tar.xz 37432756 BLAKE2B 5030bee02506c2051949c248a941289da7b4e6b48aa638abcf14ab9c56f6552b1043f85bc6fbae644e33843711ad11d03da4ac3a320cb7cf4590bc1d0bf92ed8 SHA512 852f3ff45cbf055571c47754b55b51607ede63865fe04263a9c8d5d59973eaa8c5da718f589d2b830567796f59d5bd5189c8e5e9455e3f98e879a37acb7174e3
30 DIST calibre-4.8.0.tar.xz 37448552 BLAKE2B 416500da33c5a7e0bb84e521db757c1ba5c6e38f04c2b92ad08c2039c64a7c7cc6daddf379cffe120e966e856468cb99da6d80feab75c518a3218a2e07c9cfd9 SHA512 5ab2340d9f4a8e4592aa5929827513127830bca5830f4861db97699fe491845dd17018158dc7c143255ce57730bc9e5ba556ddebb033d18086d0e1901388f840
31
32 diff --git a/app-text/calibre/calibre-4.4.0.ebuild b/app-text/calibre/calibre-4.4.0.ebuild
33 deleted file mode 100644
34 index bd7b7fd3364..00000000000
35 --- a/app-text/calibre/calibre-4.4.0.ebuild
36 +++ /dev/null
37 @@ -1,272 +0,0 @@
38 -# Copyright 1999-2019 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=7
42 -
43 -PYTHON_COMPAT=( python2_7 )
44 -PYTHON_REQ_USE="sqlite,ssl"
45 -
46 -inherit bash-completion-r1 desktop toolchain-funcs python-single-r1 xdg-utils
47 -
48 -DESCRIPTION="Ebook management application"
49 -HOMEPAGE="https://calibre-ebook.com/"
50 -SRC_URI="https://download.calibre-ebook.com/${PV}/${P}.tar.xz"
51 -
52 -LICENSE="
53 - GPL-3+
54 - GPL-3
55 - GPL-2+
56 - GPL-2
57 - GPL-1+
58 - LGPL-3+
59 - LGPL-2.1+
60 - LGPL-2.1
61 - BSD
62 - MIT
63 - Old-MIT
64 - Apache-2.0
65 - public-domain
66 - || ( Artistic GPL-1+ )
67 - CC-BY-3.0
68 - OFL-1.1
69 - PSF-2
70 -"
71 -KEYWORDS="~amd64 ~arm ~x86"
72 -SLOT="0"
73 -IUSE="ios +udisks"
74 -
75 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
76 -
77 -COMMON_DEPEND="${PYTHON_DEPS}
78 - >=app-text/hunspell-1.7:=
79 - >=app-text/podofo-0.9.6_pre20171027:=
80 - >=app-text/poppler-0.26.5[qt5]
81 - >=dev-libs/chmlib-0.40:=
82 - dev-libs/glib:2=
83 - >=dev-libs/icu-57.1:=
84 - dev-libs/libinput:=
85 - >=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}]
86 - >=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}]
87 - >=dev-python/chardet-3.0.3[${PYTHON_USEDEP}]
88 - >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}]
89 - >=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}]
90 - >=dev-python/dbus-python-1.2.4[${PYTHON_USEDEP}]
91 - >=dev-libs/dbus-glib-0.106
92 - >=sys-apps/dbus-1.10.8
93 - dev-python/dnspython[${PYTHON_USEDEP}]
94 - >=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}]
95 - >=dev-python/html2text-2019.8.11[${PYTHON_USEDEP}]
96 - >=dev-python/html5-parser-0.4.3[${PYTHON_USEDEP}]
97 - >=dev-python/lxml-3.8.0[${PYTHON_USEDEP}]
98 - >=dev-python/markdown-3.0.1[${PYTHON_USEDEP}]
99 - >=dev-python/mechanize-0.3.5[${PYTHON_USEDEP}]
100 - >=dev-python/msgpack-0.5.6[${PYTHON_USEDEP}]
101 - >=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}]
102 - >=dev-python/pillow-3.2.0[${PYTHON_USEDEP}]
103 - >=dev-python/psutil-4.3.0[${PYTHON_USEDEP}]
104 - >=dev-python/pygments-2.3.1[${PYTHON_USEDEP}]
105 - >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}]
106 - >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_USEDEP}]
107 - >=dev-python/PyQtWebEngine-5.12[${PYTHON_USEDEP}]
108 - dev-python/regex[${PYTHON_USEDEP}]
109 - dev-qt/qtcore:5=
110 - dev-qt/qtdbus:5=
111 - dev-qt/qtgui:5=
112 - >=dev-qt/qtwebengine-5.12
113 - dev-qt/qtwidgets:5=
114 - dev-util/desktop-file-utils
115 - dev-util/gtk-update-icon-cache
116 - media-fonts/liberation-fonts
117 - media-libs/fontconfig:=
118 - >=media-libs/freetype-2:=
119 - >=media-libs/libmtp-1.1.11:=
120 - >=media-libs/libwmf-0.2.8
121 - >=media-gfx/optipng-0.7.6
122 - >=sys-libs/zlib-1.2.11:=
123 - virtual/libusb:1=
124 - x11-libs/libxkbcommon:=
125 - x11-libs/libX11:=
126 - x11-libs/libXext:=
127 - x11-libs/libXrender:=
128 - x11-misc/shared-mime-info
129 - >=x11-misc/xdg-utils-1.0.2-r2
130 - ios? (
131 - >=app-pda/usbmuxd-1.0.8
132 - >=app-pda/libimobiledevice-1.2.0
133 - )
134 - udisks? ( virtual/libudev )"
135 -RDEPEND="${COMMON_DEPEND}
136 - udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
137 -DEPEND="${COMMON_DEPEND}
138 - >=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}]
139 - dev-python/sip[${PYTHON_USEDEP}]
140 - >=virtual/podofo-build-0.9.6_pre20171027
141 - virtual/pkgconfig"
142 -
143 -pkg_pretend() {
144 - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then
145 - eerror "Calibre cannot be built with this version of gcc."
146 - eerror "You need at least gcc-6.0"
147 - die "Your C compiler is too old for this package."
148 - fi
149 -}
150 -
151 -src_prepare() {
152 - # no_updates: do not annoy user with "new version is availible all the time
153 - # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
154 - eapply \
155 - "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \
156 - "${FILESDIR}/${PN}-disable_plugins.patch"
157 -
158 - eapply_user
159 -
160 - # Fix outdated version constant.
161 - #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
162 - # -i src/calibre/constants.py || \
163 - # die "sed failed to patch constants.py"
164 -
165 - # Avoid sandbox violation in /usr/share/gnome/apps when linux.py
166 - # calls xdg-* (bug #258938).
167 - sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
168 - -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
169 - -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
170 - -e "s|, PreserveMIMEDefaults():|:|" \
171 - -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \
172 - -e "s|cmd\[2\]|cmd[4]|" \
173 - -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
174 - -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
175 - -i src/calibre/linux.py || die "sed failed to patch linux.py"
176 -
177 - # Disable unnecessary privilege dropping for bug #287067.
178 - sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
179 - -i setup/install.py || die "sed failed to patch install.py"
180 -
181 - sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\
182 -\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
183 -'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
184 -'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
185 -'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
186 -'-i', 'Makefile'])" \
187 - -i setup/build.py || die "sed failed to patch build.py"
188 -
189 - # use system beautifulsoup, instead of bundled
190 - rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \
191 - || die "could not remove bundled beautifulsoup"
192 - find "${S}" -type f -name \*.py -exec \
193 - sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
194 - || die "could not sed bundled beautifulsoup out of the source tree"
195 -}
196 -
197 -src_install() {
198 - # Bypass kbuildsycoca and update-mime-database in order to
199 - # avoid sandbox violations if xdg-mime tries to call them.
200 - cat - > "${T}/kbuildsycoca" <<-EOF
201 - #!${BASH}
202 - echo $0 : $@
203 - exit 0
204 - EOF
205 -
206 - cp "${T}"/{kbuildsycoca,update-mime-database} || die
207 - chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die
208 -
209 - export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake"
210 -
211 - # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
212 - # violation with kbuildsycoca as in bug #287067, comment #13.
213 - export -n DISPLAY
214 -
215 - # Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
216 - # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
217 - # return _parse_localename(localename)
218 - # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
219 - # raise ValueError, 'unknown locale: %s' % localename
220 - #ValueError: unknown locale: 46
221 - export -n LANG LANGUAGE ${!LC_*}
222 - export LC_ALL=C #684484
223 -
224 - # Bug #295672 - Avoid sandbox violation in ~/.config by forcing
225 - # variables to point to our fake temporary $HOME.
226 - export HOME="${T}/fake_homedir"
227 - export XDG_CONFIG_HOME="${HOME}/.config"
228 - export XDG_DATA_HOME="${HOME}/.local/share"
229 - export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
230 - mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die
231 -
232 - tc-export CC CXX
233 - # Bug #334243 - respect LDFLAGS when building extensions
234 - export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
235 - local libdir=$(get_libdir)
236 - [[ -n $libdir ]] || die "get_libdir returned an empty string"
237 -
238 - addpredict /dev/dri #665310
239 -
240 - PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
241 - "${PYTHON}" setup.py install \
242 - --root="${D}" \
243 - --prefix="${EPREFIX}/usr" \
244 - --libdir="${EPREFIX}/usr/${libdir}" \
245 - --staging-root="${ED}/usr" \
246 - --staging-libdir="${ED}/usr/${libdir}" || die
247 -
248 - rm "${ED}/usr/share/applications/defaults.list" || die
249 - find "${ED}"/usr/share -type d -empty -delete
250 -
251 - cd "${ED}"/usr/share/calibre/fonts/liberation || die
252 - local x
253 - for x in * ; do
254 - [[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue
255 - ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
256 - done
257 -
258 - einfo "Converting python shebangs"
259 - python_fix_shebang --force "${ED}"
260 -
261 - einfo "Compiling python modules"
262 - python_optimize "${ED}"/usr/lib/calibre
263 -
264 - newinitd "${FILESDIR}"/calibre-server-3.init calibre-server
265 - newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server
266 -
267 - bashcomp_alias calibre \
268 - lrfviewer \
269 - calibre-debug \
270 - ebook-meta \
271 - calibre-server \
272 - ebook-viewer \
273 - ebook-polish \
274 - fetch-ebook-metadata \
275 - lrf2lrs \
276 - ebook-convert \
277 - ebook-edit \
278 - calibre-smtp \
279 - ebook-device
280 -
281 -}
282 -
283 -pkg_preinst() {
284 - # Indentify stray directories from upstream's "Binary install"
285 - # method (see bug 622728).
286 - CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre
287 - CALIBRE_LIB_CONTENT=$(for x in "${ED}${CALIBRE_LIB_DIR}"/*; do
288 - printf -- "${x##*/} "; done) || die "Failed to list ${ED}${CALIBRE_LIB_DIR}"
289 -}
290 -
291 -pkg_postinst() {
292 - [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset"
293 - local x
294 - for x in "${EROOT}${CALIBRE_LIB_DIR}"/*; do
295 - if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then
296 - elog "Purging '${x}'"
297 - rm -rf "${x}"
298 - fi
299 - done
300 - xdg_desktop_database_update
301 - xdg_mimeinfo_database_update
302 - xdg_icon_cache_update
303 -}
304 -
305 -pkg_postrm() {
306 - xdg_desktop_database_update
307 - xdg_mimeinfo_database_update
308 - xdg_icon_cache_update
309 -}
310
311 diff --git a/app-text/calibre/calibre-4.5.0.ebuild b/app-text/calibre/calibre-4.5.0.ebuild
312 deleted file mode 100644
313 index bd7b7fd3364..00000000000
314 --- a/app-text/calibre/calibre-4.5.0.ebuild
315 +++ /dev/null
316 @@ -1,272 +0,0 @@
317 -# Copyright 1999-2019 Gentoo Authors
318 -# Distributed under the terms of the GNU General Public License v2
319 -
320 -EAPI=7
321 -
322 -PYTHON_COMPAT=( python2_7 )
323 -PYTHON_REQ_USE="sqlite,ssl"
324 -
325 -inherit bash-completion-r1 desktop toolchain-funcs python-single-r1 xdg-utils
326 -
327 -DESCRIPTION="Ebook management application"
328 -HOMEPAGE="https://calibre-ebook.com/"
329 -SRC_URI="https://download.calibre-ebook.com/${PV}/${P}.tar.xz"
330 -
331 -LICENSE="
332 - GPL-3+
333 - GPL-3
334 - GPL-2+
335 - GPL-2
336 - GPL-1+
337 - LGPL-3+
338 - LGPL-2.1+
339 - LGPL-2.1
340 - BSD
341 - MIT
342 - Old-MIT
343 - Apache-2.0
344 - public-domain
345 - || ( Artistic GPL-1+ )
346 - CC-BY-3.0
347 - OFL-1.1
348 - PSF-2
349 -"
350 -KEYWORDS="~amd64 ~arm ~x86"
351 -SLOT="0"
352 -IUSE="ios +udisks"
353 -
354 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
355 -
356 -COMMON_DEPEND="${PYTHON_DEPS}
357 - >=app-text/hunspell-1.7:=
358 - >=app-text/podofo-0.9.6_pre20171027:=
359 - >=app-text/poppler-0.26.5[qt5]
360 - >=dev-libs/chmlib-0.40:=
361 - dev-libs/glib:2=
362 - >=dev-libs/icu-57.1:=
363 - dev-libs/libinput:=
364 - >=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}]
365 - >=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}]
366 - >=dev-python/chardet-3.0.3[${PYTHON_USEDEP}]
367 - >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}]
368 - >=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}]
369 - >=dev-python/dbus-python-1.2.4[${PYTHON_USEDEP}]
370 - >=dev-libs/dbus-glib-0.106
371 - >=sys-apps/dbus-1.10.8
372 - dev-python/dnspython[${PYTHON_USEDEP}]
373 - >=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}]
374 - >=dev-python/html2text-2019.8.11[${PYTHON_USEDEP}]
375 - >=dev-python/html5-parser-0.4.3[${PYTHON_USEDEP}]
376 - >=dev-python/lxml-3.8.0[${PYTHON_USEDEP}]
377 - >=dev-python/markdown-3.0.1[${PYTHON_USEDEP}]
378 - >=dev-python/mechanize-0.3.5[${PYTHON_USEDEP}]
379 - >=dev-python/msgpack-0.5.6[${PYTHON_USEDEP}]
380 - >=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}]
381 - >=dev-python/pillow-3.2.0[${PYTHON_USEDEP}]
382 - >=dev-python/psutil-4.3.0[${PYTHON_USEDEP}]
383 - >=dev-python/pygments-2.3.1[${PYTHON_USEDEP}]
384 - >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}]
385 - >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_USEDEP}]
386 - >=dev-python/PyQtWebEngine-5.12[${PYTHON_USEDEP}]
387 - dev-python/regex[${PYTHON_USEDEP}]
388 - dev-qt/qtcore:5=
389 - dev-qt/qtdbus:5=
390 - dev-qt/qtgui:5=
391 - >=dev-qt/qtwebengine-5.12
392 - dev-qt/qtwidgets:5=
393 - dev-util/desktop-file-utils
394 - dev-util/gtk-update-icon-cache
395 - media-fonts/liberation-fonts
396 - media-libs/fontconfig:=
397 - >=media-libs/freetype-2:=
398 - >=media-libs/libmtp-1.1.11:=
399 - >=media-libs/libwmf-0.2.8
400 - >=media-gfx/optipng-0.7.6
401 - >=sys-libs/zlib-1.2.11:=
402 - virtual/libusb:1=
403 - x11-libs/libxkbcommon:=
404 - x11-libs/libX11:=
405 - x11-libs/libXext:=
406 - x11-libs/libXrender:=
407 - x11-misc/shared-mime-info
408 - >=x11-misc/xdg-utils-1.0.2-r2
409 - ios? (
410 - >=app-pda/usbmuxd-1.0.8
411 - >=app-pda/libimobiledevice-1.2.0
412 - )
413 - udisks? ( virtual/libudev )"
414 -RDEPEND="${COMMON_DEPEND}
415 - udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
416 -DEPEND="${COMMON_DEPEND}
417 - >=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}]
418 - dev-python/sip[${PYTHON_USEDEP}]
419 - >=virtual/podofo-build-0.9.6_pre20171027
420 - virtual/pkgconfig"
421 -
422 -pkg_pretend() {
423 - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then
424 - eerror "Calibre cannot be built with this version of gcc."
425 - eerror "You need at least gcc-6.0"
426 - die "Your C compiler is too old for this package."
427 - fi
428 -}
429 -
430 -src_prepare() {
431 - # no_updates: do not annoy user with "new version is availible all the time
432 - # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
433 - eapply \
434 - "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \
435 - "${FILESDIR}/${PN}-disable_plugins.patch"
436 -
437 - eapply_user
438 -
439 - # Fix outdated version constant.
440 - #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
441 - # -i src/calibre/constants.py || \
442 - # die "sed failed to patch constants.py"
443 -
444 - # Avoid sandbox violation in /usr/share/gnome/apps when linux.py
445 - # calls xdg-* (bug #258938).
446 - sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
447 - -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
448 - -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
449 - -e "s|, PreserveMIMEDefaults():|:|" \
450 - -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \
451 - -e "s|cmd\[2\]|cmd[4]|" \
452 - -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
453 - -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
454 - -i src/calibre/linux.py || die "sed failed to patch linux.py"
455 -
456 - # Disable unnecessary privilege dropping for bug #287067.
457 - sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
458 - -i setup/install.py || die "sed failed to patch install.py"
459 -
460 - sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\
461 -\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
462 -'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
463 -'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
464 -'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
465 -'-i', 'Makefile'])" \
466 - -i setup/build.py || die "sed failed to patch build.py"
467 -
468 - # use system beautifulsoup, instead of bundled
469 - rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \
470 - || die "could not remove bundled beautifulsoup"
471 - find "${S}" -type f -name \*.py -exec \
472 - sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
473 - || die "could not sed bundled beautifulsoup out of the source tree"
474 -}
475 -
476 -src_install() {
477 - # Bypass kbuildsycoca and update-mime-database in order to
478 - # avoid sandbox violations if xdg-mime tries to call them.
479 - cat - > "${T}/kbuildsycoca" <<-EOF
480 - #!${BASH}
481 - echo $0 : $@
482 - exit 0
483 - EOF
484 -
485 - cp "${T}"/{kbuildsycoca,update-mime-database} || die
486 - chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die
487 -
488 - export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake"
489 -
490 - # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
491 - # violation with kbuildsycoca as in bug #287067, comment #13.
492 - export -n DISPLAY
493 -
494 - # Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
495 - # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
496 - # return _parse_localename(localename)
497 - # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
498 - # raise ValueError, 'unknown locale: %s' % localename
499 - #ValueError: unknown locale: 46
500 - export -n LANG LANGUAGE ${!LC_*}
501 - export LC_ALL=C #684484
502 -
503 - # Bug #295672 - Avoid sandbox violation in ~/.config by forcing
504 - # variables to point to our fake temporary $HOME.
505 - export HOME="${T}/fake_homedir"
506 - export XDG_CONFIG_HOME="${HOME}/.config"
507 - export XDG_DATA_HOME="${HOME}/.local/share"
508 - export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
509 - mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die
510 -
511 - tc-export CC CXX
512 - # Bug #334243 - respect LDFLAGS when building extensions
513 - export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
514 - local libdir=$(get_libdir)
515 - [[ -n $libdir ]] || die "get_libdir returned an empty string"
516 -
517 - addpredict /dev/dri #665310
518 -
519 - PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
520 - "${PYTHON}" setup.py install \
521 - --root="${D}" \
522 - --prefix="${EPREFIX}/usr" \
523 - --libdir="${EPREFIX}/usr/${libdir}" \
524 - --staging-root="${ED}/usr" \
525 - --staging-libdir="${ED}/usr/${libdir}" || die
526 -
527 - rm "${ED}/usr/share/applications/defaults.list" || die
528 - find "${ED}"/usr/share -type d -empty -delete
529 -
530 - cd "${ED}"/usr/share/calibre/fonts/liberation || die
531 - local x
532 - for x in * ; do
533 - [[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue
534 - ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
535 - done
536 -
537 - einfo "Converting python shebangs"
538 - python_fix_shebang --force "${ED}"
539 -
540 - einfo "Compiling python modules"
541 - python_optimize "${ED}"/usr/lib/calibre
542 -
543 - newinitd "${FILESDIR}"/calibre-server-3.init calibre-server
544 - newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server
545 -
546 - bashcomp_alias calibre \
547 - lrfviewer \
548 - calibre-debug \
549 - ebook-meta \
550 - calibre-server \
551 - ebook-viewer \
552 - ebook-polish \
553 - fetch-ebook-metadata \
554 - lrf2lrs \
555 - ebook-convert \
556 - ebook-edit \
557 - calibre-smtp \
558 - ebook-device
559 -
560 -}
561 -
562 -pkg_preinst() {
563 - # Indentify stray directories from upstream's "Binary install"
564 - # method (see bug 622728).
565 - CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre
566 - CALIBRE_LIB_CONTENT=$(for x in "${ED}${CALIBRE_LIB_DIR}"/*; do
567 - printf -- "${x##*/} "; done) || die "Failed to list ${ED}${CALIBRE_LIB_DIR}"
568 -}
569 -
570 -pkg_postinst() {
571 - [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset"
572 - local x
573 - for x in "${EROOT}${CALIBRE_LIB_DIR}"/*; do
574 - if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then
575 - elog "Purging '${x}'"
576 - rm -rf "${x}"
577 - fi
578 - done
579 - xdg_desktop_database_update
580 - xdg_mimeinfo_database_update
581 - xdg_icon_cache_update
582 -}
583 -
584 -pkg_postrm() {
585 - xdg_desktop_database_update
586 - xdg_mimeinfo_database_update
587 - xdg_icon_cache_update
588 -}
589
590 diff --git a/app-text/calibre/calibre-4.6.0.ebuild b/app-text/calibre/calibre-4.6.0.ebuild
591 deleted file mode 100644
592 index 4f133b668aa..00000000000
593 --- a/app-text/calibre/calibre-4.6.0.ebuild
594 +++ /dev/null
595 @@ -1,273 +0,0 @@
596 -# Copyright 1999-2019 Gentoo Authors
597 -# Distributed under the terms of the GNU General Public License v2
598 -
599 -EAPI=7
600 -
601 -PYTHON_COMPAT=( python2_7 )
602 -PYTHON_REQ_USE="sqlite,ssl"
603 -
604 -inherit bash-completion-r1 desktop toolchain-funcs python-single-r1 xdg-utils
605 -
606 -DESCRIPTION="Ebook management application"
607 -HOMEPAGE="https://calibre-ebook.com/"
608 -SRC_URI="https://download.calibre-ebook.com/${PV}/${P}.tar.xz"
609 -
610 -LICENSE="
611 - GPL-3+
612 - GPL-3
613 - GPL-2+
614 - GPL-2
615 - GPL-1+
616 - LGPL-3+
617 - LGPL-2.1+
618 - LGPL-2.1
619 - BSD
620 - MIT
621 - Old-MIT
622 - Apache-2.0
623 - public-domain
624 - || ( Artistic GPL-1+ )
625 - CC-BY-3.0
626 - OFL-1.1
627 - PSF-2
628 -"
629 -KEYWORDS="~amd64 ~arm ~x86"
630 -SLOT="0"
631 -IUSE="ios +udisks"
632 -
633 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
634 -
635 -COMMON_DEPEND="${PYTHON_DEPS}
636 - >=app-text/hunspell-1.7:=
637 - >=app-text/podofo-0.9.6_pre20171027:=
638 - >=app-text/poppler-0.26.5[qt5]
639 - >=dev-libs/chmlib-0.40:=
640 - dev-libs/glib:2=
641 - dev-libs/hyphen:=
642 - >=dev-libs/icu-57.1:=
643 - dev-libs/libinput:=
644 - >=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}]
645 - >=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}]
646 - >=dev-python/chardet-3.0.3[${PYTHON_USEDEP}]
647 - >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}]
648 - >=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}]
649 - >=dev-python/dbus-python-1.2.4[${PYTHON_USEDEP}]
650 - >=dev-libs/dbus-glib-0.106
651 - >=sys-apps/dbus-1.10.8
652 - dev-python/dnspython[${PYTHON_USEDEP}]
653 - >=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}]
654 - >=dev-python/html2text-2019.8.11[${PYTHON_USEDEP}]
655 - >=dev-python/html5-parser-0.4.3[${PYTHON_USEDEP}]
656 - >=dev-python/lxml-3.8.0[${PYTHON_USEDEP}]
657 - >=dev-python/markdown-3.0.1[${PYTHON_USEDEP}]
658 - >=dev-python/mechanize-0.3.5[${PYTHON_USEDEP}]
659 - >=dev-python/msgpack-0.5.6[${PYTHON_USEDEP}]
660 - >=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}]
661 - >=dev-python/pillow-3.2.0[${PYTHON_USEDEP}]
662 - >=dev-python/psutil-4.3.0[${PYTHON_USEDEP}]
663 - >=dev-python/pygments-2.3.1[${PYTHON_USEDEP}]
664 - >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}]
665 - >=dev-python/PyQt5-5.12[gui,svg,widgets,network,printsupport,${PYTHON_USEDEP}]
666 - >=dev-python/PyQtWebEngine-5.12[${PYTHON_USEDEP}]
667 - dev-python/regex[${PYTHON_USEDEP}]
668 - dev-qt/qtcore:5=
669 - dev-qt/qtdbus:5=
670 - dev-qt/qtgui:5=
671 - >=dev-qt/qtwebengine-5.12
672 - dev-qt/qtwidgets:5=
673 - dev-util/desktop-file-utils
674 - dev-util/gtk-update-icon-cache
675 - media-fonts/liberation-fonts
676 - media-libs/fontconfig:=
677 - >=media-libs/freetype-2:=
678 - >=media-libs/libmtp-1.1.11:=
679 - >=media-libs/libwmf-0.2.8
680 - >=media-gfx/optipng-0.7.6
681 - >=sys-libs/zlib-1.2.11:=
682 - virtual/libusb:1=
683 - x11-libs/libxkbcommon:=
684 - x11-libs/libX11:=
685 - x11-libs/libXext:=
686 - x11-libs/libXrender:=
687 - x11-misc/shared-mime-info
688 - >=x11-misc/xdg-utils-1.0.2-r2
689 - ios? (
690 - >=app-pda/usbmuxd-1.0.8
691 - >=app-pda/libimobiledevice-1.2.0
692 - )
693 - udisks? ( virtual/libudev )"
694 -RDEPEND="${COMMON_DEPEND}
695 - udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
696 -DEPEND="${COMMON_DEPEND}
697 - >=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}]
698 - dev-python/sip[${PYTHON_USEDEP}]
699 - >=virtual/podofo-build-0.9.6_pre20171027
700 - virtual/pkgconfig"
701 -
702 -pkg_pretend() {
703 - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then
704 - eerror "Calibre cannot be built with this version of gcc."
705 - eerror "You need at least gcc-6.0"
706 - die "Your C compiler is too old for this package."
707 - fi
708 -}
709 -
710 -src_prepare() {
711 - # no_updates: do not annoy user with "new version is availible all the time
712 - # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
713 - eapply \
714 - "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \
715 - "${FILESDIR}/${PN}-disable_plugins.patch"
716 -
717 - eapply_user
718 -
719 - # Fix outdated version constant.
720 - #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
721 - # -i src/calibre/constants.py || \
722 - # die "sed failed to patch constants.py"
723 -
724 - # Avoid sandbox violation in /usr/share/gnome/apps when linux.py
725 - # calls xdg-* (bug #258938).
726 - sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
727 - -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
728 - -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
729 - -e "s|, PreserveMIMEDefaults():|:|" \
730 - -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \
731 - -e "s|cmd\[2\]|cmd[4]|" \
732 - -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
733 - -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
734 - -i src/calibre/linux.py || die "sed failed to patch linux.py"
735 -
736 - # Disable unnecessary privilege dropping for bug #287067.
737 - sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
738 - -i setup/install.py || die "sed failed to patch install.py"
739 -
740 - sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\
741 -\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
742 -'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
743 -'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
744 -'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
745 -'-i', 'Makefile'])" \
746 - -i setup/build.py || die "sed failed to patch build.py"
747 -
748 - # use system beautifulsoup, instead of bundled
749 - rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \
750 - || die "could not remove bundled beautifulsoup"
751 - find "${S}" -type f -name \*.py -exec \
752 - sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
753 - || die "could not sed bundled beautifulsoup out of the source tree"
754 -}
755 -
756 -src_install() {
757 - # Bypass kbuildsycoca and update-mime-database in order to
758 - # avoid sandbox violations if xdg-mime tries to call them.
759 - cat - > "${T}/kbuildsycoca" <<-EOF
760 - #!${BASH}
761 - echo $0 : $@
762 - exit 0
763 - EOF
764 -
765 - cp "${T}"/{kbuildsycoca,update-mime-database} || die
766 - chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die
767 -
768 - export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake"
769 -
770 - # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
771 - # violation with kbuildsycoca as in bug #287067, comment #13.
772 - export -n DISPLAY
773 -
774 - # Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
775 - # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
776 - # return _parse_localename(localename)
777 - # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
778 - # raise ValueError, 'unknown locale: %s' % localename
779 - #ValueError: unknown locale: 46
780 - export -n LANG LANGUAGE ${!LC_*}
781 - export LC_ALL=C #684484
782 -
783 - # Bug #295672 - Avoid sandbox violation in ~/.config by forcing
784 - # variables to point to our fake temporary $HOME.
785 - export HOME="${T}/fake_homedir"
786 - export XDG_CONFIG_HOME="${HOME}/.config"
787 - export XDG_DATA_HOME="${HOME}/.local/share"
788 - export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
789 - mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die
790 -
791 - tc-export CC CXX
792 - # Bug #334243 - respect LDFLAGS when building extensions
793 - export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
794 - local libdir=$(get_libdir)
795 - [[ -n $libdir ]] || die "get_libdir returned an empty string"
796 -
797 - addpredict /dev/dri #665310
798 -
799 - PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
800 - "${PYTHON}" setup.py install \
801 - --root="${D}" \
802 - --prefix="${EPREFIX}/usr" \
803 - --libdir="${EPREFIX}/usr/${libdir}" \
804 - --staging-root="${ED}/usr" \
805 - --staging-libdir="${ED}/usr/${libdir}" || die
806 -
807 - rm "${ED}/usr/share/applications/defaults.list" || die
808 - find "${ED}"/usr/share -type d -empty -delete
809 -
810 - cd "${ED}"/usr/share/calibre/fonts/liberation || die
811 - local x
812 - for x in * ; do
813 - [[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue
814 - ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
815 - done
816 -
817 - einfo "Converting python shebangs"
818 - python_fix_shebang --force "${ED}"
819 -
820 - einfo "Compiling python modules"
821 - python_optimize "${ED}"/usr/lib/calibre
822 -
823 - newinitd "${FILESDIR}"/calibre-server-3.init calibre-server
824 - newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server
825 -
826 - bashcomp_alias calibre \
827 - lrfviewer \
828 - calibre-debug \
829 - ebook-meta \
830 - calibre-server \
831 - ebook-viewer \
832 - ebook-polish \
833 - fetch-ebook-metadata \
834 - lrf2lrs \
835 - ebook-convert \
836 - ebook-edit \
837 - calibre-smtp \
838 - ebook-device
839 -
840 -}
841 -
842 -pkg_preinst() {
843 - # Indentify stray directories from upstream's "Binary install"
844 - # method (see bug 622728).
845 - CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre
846 - CALIBRE_LIB_CONTENT=$(for x in "${ED}${CALIBRE_LIB_DIR}"/*; do
847 - printf -- "${x##*/} "; done) || die "Failed to list ${ED}${CALIBRE_LIB_DIR}"
848 -}
849 -
850 -pkg_postinst() {
851 - [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset"
852 - local x
853 - for x in "${EROOT}${CALIBRE_LIB_DIR}"/*; do
854 - if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then
855 - elog "Purging '${x}'"
856 - rm -rf "${x}"
857 - fi
858 - done
859 - xdg_desktop_database_update
860 - xdg_mimeinfo_database_update
861 - xdg_icon_cache_update
862 -}
863 -
864 -pkg_postrm() {
865 - xdg_desktop_database_update
866 - xdg_mimeinfo_database_update
867 - xdg_icon_cache_update
868 -}