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