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