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: Tue, 28 May 2019 20:10:27
Message-Id: 1559074217.6914739e93142744123a195ecb7d41b0262f2a51.zmedico@gentoo
1 commit: 6914739e93142744123a195ecb7d41b0262f2a51
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 28 20:09:51 2019 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue May 28 20:10:17 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6914739e
7
8 app-text/calibre: remove old version 3.41.3
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.13
11 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
12
13 app-text/calibre/Manifest | 1 -
14 app-text/calibre/calibre-3.41.3.ebuild | 295 ---------------------------------
15 2 files changed, 296 deletions(-)
16
17 diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest
18 index 208ce384be3..fab7c980fd4 100644
19 --- a/app-text/calibre/Manifest
20 +++ b/app-text/calibre/Manifest
21 @@ -1,4 +1,3 @@
22 DIST calibre-3.26.1.tar.xz 39109660 BLAKE2B 0e98c273b8a5dfafea7a7027de3f83ad25ab835edadedf78b7e9bc356bcac8937d915944f2ab6503b414c49b4e792e090e7bd2433a4e86373bf115720ed78b0a SHA512 893e36b101defaca29281b4bd072aafc1c4cb20a9cd3ee06a0b68fbe6b39cab34952799939ac4f54c77148c87861c5ab4ddff84f5ec8c2274ae7fa6424259ff5
23 -DIST calibre-3.41.3.tar.xz 38508848 BLAKE2B bbbe888bab285207a23a24a152b396cdc51723442e49d6e8ea6d3631cc4c6d67d421452d3d616d03dbe89f6df292dcdce5b564d6ed423dfece60a4bc59678a87 SHA512 9bed5d05fbe0a6b0e5c8d290f21ffc9b61c51767437aafb72afd3db94f755be3bd68f84cd1f73e5d15c7039dd0858a666975e860577f9ce84999aa9ed8e1a895
24 DIST calibre-3.42.0.tar.xz 38530420 BLAKE2B 3b1fa7abfed277f7a787fa2b65697817d0fe8553d570901a8817e63756f7edc8321c18768fb9c965382f9027d053af708fdf54c4288c831acb0ec03a64748651 SHA512 0a9b18cbf1d4e75d1e10e9dcf7318f07687e0a39d1d524f99f47240d28bc13cad6f28bc30e7cc9662766264d9a465fa4f24cbc27e5f36d20cfb1a8f94ed8ced2
25 DIST calibre-3.43.0.tar.xz 38682448 BLAKE2B 6a19be6741ecc2abc839731ca35684363310431db5fa8f5cccd264f7bef37cd365ae5f38f97f8b4de323c035bcfcab30e0b2ade8a366d1e96a70a22f6c4aaa54 SHA512 e187b2509041303102980cbd70b856b7699a7d5b2a9010f817406164ef785cd0c6c7ee77ebf8d674183e0dfc6928ed9316d2c2440bc1fe762f112784216c35a8
26
27 diff --git a/app-text/calibre/calibre-3.41.3.ebuild b/app-text/calibre/calibre-3.41.3.ebuild
28 deleted file mode 100644
29 index 721c5da17ba..00000000000
30 --- a/app-text/calibre/calibre-3.41.3.ebuild
31 +++ /dev/null
32 @@ -1,295 +0,0 @@
33 -# Copyright 1999-2019 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -PYTHON_COMPAT=( python2_7 )
39 -PYTHON_REQ_USE="sqlite,ssl"
40 -
41 -inherit eutils bash-completion-r1 gnome2-utils multilib toolchain-funcs python-single-r1 xdg-utils
42 -
43 -DESCRIPTION="Ebook management application"
44 -HOMEPAGE="https://calibre-ebook.com/"
45 -SRC_URI="https://download.calibre-ebook.com/${PV}/${P}.tar.xz"
46 -
47 -LICENSE="
48 - GPL-3+
49 - GPL-3
50 - GPL-2+
51 - GPL-2
52 - GPL-1+
53 - LGPL-3+
54 - LGPL-2.1+
55 - LGPL-2.1
56 - BSD
57 - MIT
58 - Old-MIT
59 - Apache-2.0
60 - public-domain
61 - || ( Artistic GPL-1+ )
62 - CC-BY-3.0
63 - OFL-1.1
64 - PSF-2
65 -"
66 -KEYWORDS="~amd64 ~arm ~x86"
67 -SLOT="0"
68 -IUSE="ios +udisks"
69 -
70 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
71 -
72 -COMMON_DEPEND="${PYTHON_DEPS}
73 - >=app-text/podofo-0.9.6_pre20171027:=
74 - >=app-text/poppler-0.26.5[qt5]
75 - >=dev-libs/chmlib-0.40:=
76 - dev-libs/glib:2=
77 - >=dev-libs/icu-57.1:=
78 - dev-libs/libinput:=
79 - >=dev-python/apsw-3.25.2_p1[${PYTHON_USEDEP}]
80 - >=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}]
81 - >=dev-python/chardet-3.0.3[${PYTHON_USEDEP}]
82 - >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}]
83 - >=dev-python/css-parser-1.0.4[${PYTHON_USEDEP}]
84 - >=dev-python/dbus-python-1.2.4[${PYTHON_USEDEP}]
85 - >=dev-libs/dbus-glib-0.106
86 - >=sys-apps/dbus-1.10.8
87 - >=dev-python/feedparser-5.2.1[${PYTHON_USEDEP}]
88 - >=dev-python/html5-parser-0.4.3[${PYTHON_USEDEP}]
89 - >=dev-python/lxml-3.8.0[${PYTHON_USEDEP}]
90 - >=dev-python/markdown-3.0.1[${PYTHON_USEDEP}]
91 - >=dev-python/mechanize-0.3.5[${PYTHON_USEDEP}]
92 - >=dev-python/msgpack-0.5.6[${PYTHON_USEDEP}]
93 - >=dev-python/netifaces-0.10.5[${PYTHON_USEDEP}]
94 - >=dev-python/pillow-3.2.0[${PYTHON_USEDEP}]
95 - >=dev-python/psutil-4.3.0[${PYTHON_USEDEP}]
96 - >=dev-python/pygments-2.3.1[${PYTHON_USEDEP}]
97 - >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}]
98 - >=dev-python/PyQt5-5.8[gui,svg,webkit,widgets,network,printsupport,${PYTHON_USEDEP}]
99 - dev-python/regex[${PYTHON_USEDEP}]
100 - dev-qt/qtcore:5=
101 - dev-qt/qtdbus:5=
102 - dev-qt/qtgui:5=
103 - dev-qt/qtwidgets:5=
104 - dev-util/desktop-file-utils
105 - dev-util/gtk-update-icon-cache
106 - media-fonts/liberation-fonts
107 - media-libs/fontconfig:=
108 - >=media-libs/freetype-2:=
109 - >=media-libs/libmtp-1.1.11:=
110 - >=media-libs/libwmf-0.2.8
111 - >=media-gfx/optipng-0.7.6
112 - >=sys-libs/zlib-1.2.11:=
113 - virtual/libusb:1=
114 - virtual/python-dnspython[${PYTHON_USEDEP}]
115 - x11-libs/libxkbcommon:=
116 - x11-libs/libX11:=
117 - x11-libs/libXext:=
118 - x11-libs/libXrender:=
119 - x11-misc/shared-mime-info
120 - >=x11-misc/xdg-utils-1.0.2-r2
121 - ios? (
122 - >=app-pda/usbmuxd-1.0.8
123 - >=app-pda/libimobiledevice-1.2.0
124 - )
125 - udisks? ( virtual/libudev )"
126 -RDEPEND="${COMMON_DEPEND}
127 - udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )"
128 -DEPEND="${COMMON_DEPEND}
129 - >=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}]
130 - dev-python/sip[${PYTHON_USEDEP}]
131 - >=virtual/podofo-build-0.9.6_pre20171027
132 - virtual/pkgconfig"
133 -
134 -pkg_pretend() {
135 - if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then
136 - eerror "Calibre cannot be built with this version of gcc."
137 - eerror "You need at least gcc-6.0"
138 - die "Your C compiler is too old for this package."
139 - fi
140 -}
141 -
142 -src_prepare() {
143 - # no_updates: do not annoy user with "new version is availible all the time
144 - # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface
145 - eapply \
146 - "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \
147 - "${FILESDIR}/${PN}-disable_plugins.patch"
148 -
149 - eapply_user
150 -
151 - # Fix outdated version constant.
152 - #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \
153 - # -i src/calibre/constants.py || \
154 - # die "sed failed to patch constants.py"
155 -
156 - # Avoid sandbox violation in /usr/share/gnome/apps when linux.py
157 - # calls xdg-* (bug #258938).
158 - sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \
159 - -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
160 - -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \
161 - -e "s|, PreserveMIMEDefaults():|:|" \
162 - -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \
163 - -e "s|cmd\[2\]|cmd[4]|" \
164 - -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \
165 - -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \
166 - -i src/calibre/linux.py || die "sed failed to patch linux.py"
167 -
168 - # Disable unnecessary privilege dropping for bug #287067.
169 - sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \
170 - -i setup/install.py || die "sed failed to patch install.py"
171 -
172 - sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\
173 -\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \
174 -'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \
175 -'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \
176 -'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \
177 -'-i', 'Makefile'])" \
178 - -i setup/build.py || die "sed failed to patch build.py"
179 -
180 - # use system beautifulsoup, instead of bundled
181 - rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \
182 - || die "could not remove bundled beautifulsoup"
183 - find "${S}" -type f -name \*.py -exec \
184 - sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \
185 - || die "could not sed bundled beautifulsoup out of the source tree"
186 -
187 - # avoid failure of xdg tools to recognize vendor prefix
188 - sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \
189 - -e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \
190 - -e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \
191 - -i "${S}"/src/calibre/linux.py || die 'sed failed'
192 -
193 - # don't create/install uninstaller
194 - sed '/self\.create_uninstaller()/d' -i src/calibre/linux.py || die
195 -
196 - sed -e 's:^#!/usr/bin/env python3$:#!/usr/bin/env python2:' \
197 - -i src/calibre/devices/mtp/unix/upstream/update.py || die
198 -}
199 -
200 -src_install() {
201 - # Bypass kbuildsycoca and update-mime-database in order to
202 - # avoid sandbox violations if xdg-mime tries to call them.
203 - cat - > "${T}/kbuildsycoca" <<-EOF
204 - #!${BASH}
205 - echo $0 : $@
206 - exit 0
207 - EOF
208 -
209 - cp "${T}"/{kbuildsycoca,update-mime-database} || die
210 - chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die
211 -
212 - export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake"
213 -
214 - # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox
215 - # violation with kbuildsycoca as in bug #287067, comment #13.
216 - export -n DISPLAY
217 -
218 - # Bug #352625 - Some LANGUAGE values can trigger the following ValueError:
219 - # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale
220 - # return _parse_localename(localename)
221 - # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename
222 - # raise ValueError, 'unknown locale: %s' % localename
223 - #ValueError: unknown locale: 46
224 - export -n LANG LANGUAGE ${!LC_*}
225 - export LC_ALL=C #684484
226 -
227 - # Bug #295672 - Avoid sandbox violation in ~/.config by forcing
228 - # variables to point to our fake temporary $HOME.
229 - export HOME="${T}/fake_homedir"
230 - export XDG_CONFIG_HOME="${HOME}/.config"
231 - export XDG_DATA_HOME="${HOME}/.local/share"
232 - export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre"
233 - mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die
234 -
235 - tc-export CC CXX
236 - # Bug #334243 - respect LDFLAGS when building extensions
237 - export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS"
238 - local libdir=$(get_libdir)
239 - [[ -n $libdir ]] || die "get_libdir returned an empty string"
240 -
241 - addpredict /dev/dri #665310
242 -
243 - #dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py
244 - #dodir $(python_get_sitedir)
245 - PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \
246 - "${PYTHON}" setup.py install \
247 - --root="${D}" \
248 - --prefix="${EPREFIX}/usr" \
249 - --libdir="${EPREFIX}/usr/${libdir}" \
250 - --staging-root="${ED}usr" \
251 - --staging-libdir="${ED}usr/${libdir}" || die
252 -
253 - # The menu entries end up here due to '--mode user' being added to
254 - # xdg-* options in src_prepare.
255 - dodir /usr/share/mime/packages
256 - chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local
257 - mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ ||
258 - die "failed to register mime types"
259 - dodir /usr/share/icons
260 - mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ ||
261 - die "failed to install icon files"
262 -
263 - domenu "${HOME}"/.local/share/applications/*.desktop ||
264 - die "failed to install .desktop menu files"
265 -
266 - find "${ED}"usr/share -type d -empty -delete
267 -
268 - cd "${ED}"/usr/share/calibre/fonts/liberation || die
269 - local x
270 - for x in * ; do
271 - [[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue
272 - ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die
273 - done
274 -
275 - einfo "Converting python shebangs"
276 - python_fix_shebang "${ED}"
277 -
278 - einfo "Compiling python modules"
279 - python_optimize "${ED}"usr/lib/calibre
280 -
281 - newinitd "${FILESDIR}"/calibre-server-3.init calibre-server
282 - newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server
283 -
284 - bashcomp_alias calibre \
285 - lrfviewer \
286 - calibre-debug \
287 - ebook-meta \
288 - calibre-server \
289 - ebook-viewer \
290 - ebook-polish \
291 - fetch-ebook-metadata \
292 - lrf2lrs \
293 - ebook-convert \
294 - ebook-edit \
295 - calibre-smtp \
296 - ebook-device
297 -
298 -}
299 -
300 -pkg_preinst() {
301 - gnome2_icon_savelist
302 - # Indentify stray directories from upstream's "Binary install"
303 - # method (see bug 622728).
304 - CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre
305 - CALIBRE_LIB_CONTENT=$(for x in "${ED%/}${CALIBRE_LIB_DIR}"/*; do
306 - printf -- "${x##*/} "; done) || die "Failed to list ${ED%/}${CALIBRE_LIB_DIR}"
307 -}
308 -
309 -pkg_postinst() {
310 - [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset"
311 - local x
312 - for x in "${EROOT%/}${CALIBRE_LIB_DIR}"/*; do
313 - if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then
314 - elog "Purging '${x}'"
315 - rm -rf "${x}"
316 - fi
317 - done
318 - xdg_desktop_database_update
319 - xdg_mimeinfo_database_update
320 - gnome2_icon_cache_update
321 -}
322 -
323 -pkg_postrm() {
324 - xdg_desktop_database_update
325 - xdg_mimeinfo_database_update
326 - gnome2_icon_cache_update
327 -}