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