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