1 |
commit: c38f98d59709ec1802a1bbc7b153865ab0cb0b18 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 26 22:00:07 2016 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 26 22:00:07 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c38f98d5 |
7 |
|
8 |
app-text/calibre: Removed old. |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
app-text/calibre/Manifest | 4 - |
13 |
app-text/calibre/calibre-2.35.0-r2.ebuild | 232 --------------------------- |
14 |
app-text/calibre/calibre-2.47.0.ebuild | 249 ----------------------------- |
15 |
app-text/calibre/calibre-2.55.0.ebuild | 249 ----------------------------- |
16 |
app-text/calibre/calibre-2.68.0.ebuild | 251 ------------------------------ |
17 |
5 files changed, 985 deletions(-) |
18 |
|
19 |
diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest |
20 |
index a1b9d17..62f6ece 100644 |
21 |
--- a/app-text/calibre/Manifest |
22 |
+++ b/app-text/calibre/Manifest |
23 |
@@ -1,7 +1,3 @@ |
24 |
DIST calibre-1.20.0.tar.xz 32430560 SHA256 475e09b1be4b9977240cbbe6743ab79da4b1f1afe3fe6015d212d868e8f2fac4 SHA512 84ac25080cf4948398b79f9a1af688cca9cf9a5a9200b2aad649f5fda1cd0556be4ade0c8b09ea6ffcc95654eac0aaaa5b8f8ed6ea9830174bc150e64de85e31 WHIRLPOOL 61b6ecde2e3f8679c1afea95dcd152a94ce03522c06dff34b406a5705f6255243f0565fbb5f9bef3ac96d7127190bd1b4363233fa24fafcd0412e061201f6fe8 |
25 |
-DIST calibre-2.35.0.tar.xz 37470944 SHA256 7d883c7ed5cf7c3c2e53c4d18e3a67c15d8a0d3425df57919adb57132860518f SHA512 a693c23e93ad1086fe70b0cc7dcf43b1a9c004f045a3c2fac42f6a4b9f231d4f1e7b55c8bae133ac48389d4e233e245deb958365e9c0283cd8668f0f5a2326a2 WHIRLPOOL b07308d7bb9803a3a882aaf4143d287352aafae69383276d6ee95f7b92a8f65c50c8a5cdc6c242ae87d8faf13ad830fcea9e27364749614219bb221a3d6ac36a |
26 |
-DIST calibre-2.47.0.tar.xz 38924632 SHA256 048681cf6cb09b136017c6c99a1f1d908c6fcc3cdb2d40455cb4af8725395d0c SHA512 932ab2bae12ce128fa497bdd95d3c5f4f67e65bced5b73882f9b812cd9290c0a89c04c89ad3e1b421119c1ca88b5bfb7870a3060c91b5c8198e5ad709dbfdc96 WHIRLPOOL 15f4d3e19eafc57aabb526147926a4fa3343d340fcbc528df91ade6d82a7bfa6f993baee6224508c8dbf551d9640c16db71fc30c438675d09876b633dd3f6ea8 |
27 |
-DIST calibre-2.55.0.tar.xz 39854472 SHA256 a3a4f2914d491ab8c63725c11272d53bb4a91d282e6e5c6e0f245cb94b138188 SHA512 f067c93f7b32dbb8f94e30831df1bf755c25edaeb9dd4793ec79941738e2431e5fe51219d169056b3bb1f71b4223e933cc29fdae6572f212109b44b696bd6af4 WHIRLPOOL 433c68117f2aec343db026851de1807ebbcef91b229cb7790a9a3de35bb9ea6e20c194097ab4b283935843d998aba61f5a036483d743e35b9cc8dffaa809c5fb |
28 |
-DIST calibre-2.68.0.tar.xz 39949696 SHA256 f57e9d4939db15fd9bb441575f55d52db112cbfa6d970bb727acf7a079e3c656 SHA512 60d70f494b80f6fd10266162f54284e824207c9105e50d21ea0a14f6e612a911d2e6475c78cb4b499f3e411893ab2c7255c7b762ac8c5bfa5040e6a2efb100c1 WHIRLPOOL e55a55cffb4a9f469b96204ca652f243a3c96a10d2ace49641f2438c421703352feff0e5fa61a6665a21a2a342a1047959cc335f007893f2239424e505413b8a |
29 |
DIST calibre-2.70.0.tar.xz 40279720 SHA256 90391605c43db01acd7acf21707f5aa95c329b2055cca1b09b6fa46e050b3ba2 SHA512 1b98cdbd32dd02e64792b5e02ceb010a694c5669b8de3b0d03994b6f1e03e10dfcff6462317e1abfd27ca4b0085897218a12d79dd82604dad8a156d2f0fa5317 WHIRLPOOL d9c61f8d3514631fb8907e2fb5d63e32c6626c9d2fa35a985810b035f5a74c68e0d4fa8a63164c566030190ed362092d4d2145ee5e406fda8d97bbf778afbc1d |
30 |
DIST calibre-2.73.0.tar.xz 38674308 SHA256 ec05836d60ae6214c3dde22ec7f9340ab77b05eac25b0df5e245b43f553b1a9f SHA512 395ae04ca580b25ec5d72bf2134c073a9182eccf9c30b053a52e342ddf7bec27d2479acba8cde15da175dfd0b6f5f9add54c9a13d9da421c494b70de3217968d WHIRLPOOL b5de25d5c170578c21719e72ead9c2040d338a6e19d8d7af9f788392acf27989c00bf092a6e3f64e4422409bdf2639f1bbc61be088c5baee72b85fe16e9c4b0b |
31 |
|
32 |
diff --git a/app-text/calibre/calibre-2.35.0-r2.ebuild b/app-text/calibre/calibre-2.35.0-r2.ebuild |
33 |
deleted file mode 100644 |
34 |
index 21d4c5e..00000000 |
35 |
--- a/app-text/calibre/calibre-2.35.0-r2.ebuild |
36 |
+++ /dev/null |
37 |
@@ -1,232 +0,0 @@ |
38 |
-# Copyright 1999-2015 Gentoo Foundation |
39 |
-# Distributed under the terms of the GNU General Public License v2 |
40 |
-# $Id$ |
41 |
- |
42 |
-EAPI=5 |
43 |
- |
44 |
-PYTHON_COMPAT=( python2_7 ) |
45 |
-PYTHON_REQ_USE="sqlite,ssl" |
46 |
- |
47 |
-inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs python-single-r1 |
48 |
- |
49 |
-DESCRIPTION="Ebook management application" |
50 |
-HOMEPAGE="http://calibre-ebook.com/" |
51 |
-SRC_URI="http://download.calibre-ebook.com/${PV}/${P}.tar.xz" |
52 |
- |
53 |
-LICENSE=" |
54 |
- GPL-3+ |
55 |
- GPL-3 |
56 |
- GPL-2+ |
57 |
- GPL-2 |
58 |
- GPL-1+ |
59 |
- LGPL-3+ |
60 |
- LGPL-2.1+ |
61 |
- LGPL-2.1 |
62 |
- BSD |
63 |
- MIT |
64 |
- Old-MIT |
65 |
- Apache-2.0 |
66 |
- public-domain |
67 |
- || ( Artistic GPL-1+ ) |
68 |
- CC-BY-3.0 |
69 |
- OFL-1.1 |
70 |
- PSF-2 |
71 |
- unRAR |
72 |
-" |
73 |
-KEYWORDS="~amd64 ~arm ~x86" |
74 |
-SLOT="0" |
75 |
-IUSE="+udisks" |
76 |
- |
77 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
78 |
- |
79 |
-COMMON_DEPEND="${PYTHON_DEPS} |
80 |
- >=app-text/podofo-0.8.2:= |
81 |
- >=app-text/poppler-0.26.5[qt5] |
82 |
- >=dev-libs/chmlib-0.40:= |
83 |
- dev-libs/glib:2 |
84 |
- >=dev-libs/icu-4.4:= |
85 |
- >=dev-python/apsw-3.7.17[${PYTHON_USEDEP}] |
86 |
- >=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}] |
87 |
- >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}] |
88 |
- >=dev-python/cssutils-0.9.9[${PYTHON_USEDEP}] |
89 |
- >=dev-python/dbus-python-1.2.0[${PYTHON_USEDEP}] |
90 |
- >=dev-python/lxml-3.2.1[${PYTHON_USEDEP}] |
91 |
- >=dev-python/mechanize-0.1.11[${PYTHON_USEDEP}] |
92 |
- dev-python/netifaces[${PYTHON_USEDEP}] |
93 |
- dev-python/pillow[${PYTHON_USEDEP}] |
94 |
- dev-python/psutil[${PYTHON_USEDEP}] |
95 |
- >=dev-python/pygments-2.0.1[${PYTHON_USEDEP}] |
96 |
- >=dev-python/python-dateutil-1.4.1[${PYTHON_USEDEP}] |
97 |
- >=dev-python/PyQt5-5.3.1[gui,svg,webkit,widgets,network,printsupport,${PYTHON_USEDEP}] |
98 |
- dev-qt/qtcore:5 |
99 |
- dev-qt/qtgui:5 |
100 |
- dev-qt/qtwidgets:5 |
101 |
- media-fonts/liberation-fonts |
102 |
- >=media-gfx/imagemagick-6.5.9[jpeg,png] |
103 |
- media-libs/fontconfig |
104 |
- >=media-libs/freetype-2:= |
105 |
- >=media-libs/libmtp-1.1.5:= |
106 |
- >=media-libs/libwmf-0.2.8 |
107 |
- sys-libs/zlib |
108 |
- virtual/libusb:1= |
109 |
- virtual/python-dnspython[${PYTHON_USEDEP}] |
110 |
- x11-libs/libX11 |
111 |
- x11-libs/libXext |
112 |
- x11-libs/libXrender |
113 |
- >=x11-misc/xdg-utils-1.0.2-r2 |
114 |
- udisks? ( virtual/libudev )" |
115 |
-RDEPEND="${COMMON_DEPEND} |
116 |
- udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" |
117 |
-DEPEND="${COMMON_DEPEND} |
118 |
- >=dev-python/setuptools-0.6_rc5[${PYTHON_USEDEP}] |
119 |
- >=virtual/podofo-build-0.8.2" |
120 |
- |
121 |
-src_prepare() { |
122 |
- # Fix outdated version constant. |
123 |
- #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
124 |
- # -i src/calibre/constants.py || \ |
125 |
- # die "sed failed to patch constants.py" |
126 |
- |
127 |
- # Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
128 |
- # calls xdg-* (bug #258938). |
129 |
- sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ |
130 |
- -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
131 |
- -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
132 |
- -e "s|PreserveMIMEDefaults():||" \ |
133 |
- -e "s|xdg-icon-resource install|\\0 --mode user|" \ |
134 |
- -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
135 |
- -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ |
136 |
- -i src/calibre/linux.py || die "sed failed to patch linux.py" |
137 |
- |
138 |
- # Disable unnecessary privilege dropping for bug #287067. |
139 |
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
140 |
- -i setup/install.py || die "sed failed to patch install.py" |
141 |
- |
142 |
- sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\ |
143 |
-\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
144 |
-'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
145 |
-'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
146 |
-'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
147 |
-'-i', 'Makefile'])" \ |
148 |
- -i setup/extensions.py || die "sed failed to patch extensions.py" |
149 |
- |
150 |
- # use system beautifulsoup, instead of bundled |
151 |
- rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \ |
152 |
- || die "could not remove bundled beautifulsoup" |
153 |
- find "${S}" -type f -name \*.py -exec \ |
154 |
- sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \ |
155 |
- || die "could not sed bundled beautifulsoup out of the source tree" |
156 |
- |
157 |
- # avoid failure of xdg tools to recognize vendor prefix |
158 |
- sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \ |
159 |
- -e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \ |
160 |
- -e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \ |
161 |
- -i "${S}"/src/calibre/linux.py || die 'sed failed' |
162 |
- |
163 |
- # no_updates: do not annoy user with "new version is availible all the time |
164 |
- # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
165 |
- epatch \ |
166 |
- "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ |
167 |
- "${FILESDIR}/${PN}-disable_plugins.patch" |
168 |
-} |
169 |
- |
170 |
-src_install() { |
171 |
- # Bypass kbuildsycoca and update-mime-database in order to |
172 |
- # avoid sandbox violations if xdg-mime tries to call them. |
173 |
- cat - > "${T}/kbuildsycoca" <<-EOF |
174 |
- #!${BASH} |
175 |
- echo $0 : $@ |
176 |
- exit 0 |
177 |
- EOF |
178 |
- |
179 |
- cp "${T}"/{kbuildsycoca,update-mime-database} || die |
180 |
- chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die |
181 |
- |
182 |
- export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake" |
183 |
- |
184 |
- # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
185 |
- # violation with kbuildsycoca as in bug #287067, comment #13. |
186 |
- export -n DISPLAY |
187 |
- |
188 |
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
189 |
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
190 |
- # return _parse_localename(localename) |
191 |
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
192 |
- # raise ValueError, 'unknown locale: %s' % localename |
193 |
- #ValueError: unknown locale: 46 |
194 |
- export -n LANGUAGE |
195 |
- |
196 |
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
197 |
- # variables to point to our fake temporary $HOME. |
198 |
- export HOME="${T}/fake_homedir" |
199 |
- export XDG_CONFIG_HOME="${HOME}/.config" |
200 |
- export XDG_DATA_HOME="${HOME}/.local/share" |
201 |
- export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
202 |
- mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die |
203 |
- |
204 |
- tc-export CC CXX |
205 |
- # Bug #334243 - respect LDFLAGS when building extensions |
206 |
- export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
207 |
- local libdir=$(get_libdir) |
208 |
- [[ -n $libdir ]] || die "get_libdir returned an empty string" |
209 |
- |
210 |
- # Bug #472690 - Avoid sandbox violation for /dev/dri/card0. |
211 |
- local x |
212 |
- for x in /dev/dri/card[0-9] ; do |
213 |
- [[ -e ${x} ]] && addpredict ${x} |
214 |
- done |
215 |
- |
216 |
- #dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py |
217 |
- #dodir $(python_get_sitedir) |
218 |
- PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
219 |
- "${PYTHON}" setup.py install \ |
220 |
- --root="${D}" \ |
221 |
- --prefix="${EPREFIX}/usr" \ |
222 |
- --libdir="${EPREFIX}/usr/${libdir}" \ |
223 |
- --staging-root="${ED}usr" \ |
224 |
- --staging-libdir="${ED}usr/${libdir}" || die |
225 |
- |
226 |
- grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i || |
227 |
- die "failed to fix harcoded \$D in paths" |
228 |
- |
229 |
- # The menu entries end up here due to '--mode user' being added to |
230 |
- # xdg-* options in src_prepare. |
231 |
- dodir /usr/share/mime/packages |
232 |
- chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local |
233 |
- mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ || |
234 |
- die "failed to register mime types" |
235 |
- dodir /usr/share/icons |
236 |
- mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ || |
237 |
- die "failed to install icon files" |
238 |
- |
239 |
- domenu "${HOME}"/.local/share/applications/*.desktop || |
240 |
- die "failed to install .desktop menu files" |
241 |
- |
242 |
- find "${ED}"usr/share -type d -empty -delete |
243 |
- |
244 |
- cd "${ED}"/usr/share/calibre/fonts/liberation || die |
245 |
- local x |
246 |
- for x in * ; do |
247 |
- [[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue |
248 |
- ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
249 |
- done |
250 |
- |
251 |
- einfo "Converting python shebangs" |
252 |
- python_fix_shebang "${ED}" |
253 |
- |
254 |
- einfo "Compiling python modules" |
255 |
- python_optimize "${ED}"usr/lib/calibre |
256 |
- |
257 |
- newinitd "${FILESDIR}"/calibre-server.init calibre-server |
258 |
- newconfd "${FILESDIR}"/calibre-server.conf calibre-server |
259 |
-} |
260 |
- |
261 |
-pkg_postinst() { |
262 |
- fdo-mime_desktop_database_update |
263 |
- fdo-mime_mime_database_update |
264 |
-} |
265 |
- |
266 |
-pkg_postrm() { |
267 |
- fdo-mime_desktop_database_update |
268 |
- fdo-mime_mime_database_update |
269 |
-} |
270 |
|
271 |
diff --git a/app-text/calibre/calibre-2.47.0.ebuild b/app-text/calibre/calibre-2.47.0.ebuild |
272 |
deleted file mode 100644 |
273 |
index 98566c1..00000000 |
274 |
--- a/app-text/calibre/calibre-2.47.0.ebuild |
275 |
+++ /dev/null |
276 |
@@ -1,249 +0,0 @@ |
277 |
-# Copyright 1999-2015 Gentoo Foundation |
278 |
-# Distributed under the terms of the GNU General Public License v2 |
279 |
-# $Id$ |
280 |
- |
281 |
-EAPI=5 |
282 |
- |
283 |
-PYTHON_COMPAT=( python2_7 ) |
284 |
-PYTHON_REQ_USE="sqlite,ssl" |
285 |
- |
286 |
-inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs python-single-r1 |
287 |
- |
288 |
-DESCRIPTION="Ebook management application" |
289 |
-HOMEPAGE="http://calibre-ebook.com/" |
290 |
-SRC_URI="http://download.calibre-ebook.com/${PV}/${P}.tar.xz" |
291 |
- |
292 |
-LICENSE=" |
293 |
- GPL-3+ |
294 |
- GPL-3 |
295 |
- GPL-2+ |
296 |
- GPL-2 |
297 |
- GPL-1+ |
298 |
- LGPL-3+ |
299 |
- LGPL-2.1+ |
300 |
- LGPL-2.1 |
301 |
- BSD |
302 |
- MIT |
303 |
- Old-MIT |
304 |
- Apache-2.0 |
305 |
- public-domain |
306 |
- || ( Artistic GPL-1+ ) |
307 |
- CC-BY-3.0 |
308 |
- OFL-1.1 |
309 |
- PSF-2 |
310 |
- unRAR |
311 |
-" |
312 |
-KEYWORDS="~amd64 ~arm ~x86" |
313 |
-SLOT="0" |
314 |
-IUSE="+udisks" |
315 |
- |
316 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
317 |
- |
318 |
-COMMON_DEPEND="${PYTHON_DEPS} |
319 |
- >=app-text/podofo-0.8.2:= |
320 |
- >=app-text/poppler-0.26.5[qt5] |
321 |
- >=dev-libs/chmlib-0.40:= |
322 |
- dev-libs/glib:2 |
323 |
- >=dev-libs/icu-4.4:= |
324 |
- >=dev-python/apsw-3.7.17[${PYTHON_USEDEP}] |
325 |
- >=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}] |
326 |
- >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}] |
327 |
- >=dev-python/cssutils-0.9.9[${PYTHON_USEDEP}] |
328 |
- >=dev-python/dbus-python-1.2.0[${PYTHON_USEDEP}] |
329 |
- >=dev-python/lxml-3.2.1[${PYTHON_USEDEP}] |
330 |
- >=dev-python/mechanize-0.1.11[${PYTHON_USEDEP}] |
331 |
- dev-python/netifaces[${PYTHON_USEDEP}] |
332 |
- dev-python/pillow[${PYTHON_USEDEP}] |
333 |
- dev-python/psutil[${PYTHON_USEDEP}] |
334 |
- >=dev-python/pygments-2.0.1[${PYTHON_USEDEP}] |
335 |
- >=dev-python/python-dateutil-1.4.1[${PYTHON_USEDEP}] |
336 |
- >=dev-python/PyQt5-5.3.1[gui,svg,webkit,widgets,network,printsupport,${PYTHON_USEDEP}] |
337 |
- dev-qt/qtcore:5 |
338 |
- dev-qt/qtgui:5 |
339 |
- dev-qt/qtwidgets:5 |
340 |
- media-fonts/liberation-fonts |
341 |
- >=media-gfx/imagemagick-6.5.9[jpeg,png] |
342 |
- media-libs/fontconfig |
343 |
- >=media-libs/freetype-2:= |
344 |
- >=media-libs/libmtp-1.1.5:= |
345 |
- >=media-libs/libwmf-0.2.8 |
346 |
- sys-libs/zlib |
347 |
- virtual/libusb:1= |
348 |
- virtual/python-dnspython[${PYTHON_USEDEP}] |
349 |
- x11-libs/libX11 |
350 |
- x11-libs/libXext |
351 |
- x11-libs/libXrender |
352 |
- >=x11-misc/xdg-utils-1.0.2-r2 |
353 |
- udisks? ( virtual/libudev )" |
354 |
-RDEPEND="${COMMON_DEPEND} |
355 |
- udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" |
356 |
-DEPEND="${COMMON_DEPEND} |
357 |
- >=dev-python/setuptools-0.6_rc5[${PYTHON_USEDEP}] |
358 |
- >=virtual/podofo-build-0.8.2 |
359 |
- virtual/pkgconfig" |
360 |
- |
361 |
-src_prepare() { |
362 |
- # Fix outdated version constant. |
363 |
- #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
364 |
- # -i src/calibre/constants.py || \ |
365 |
- # die "sed failed to patch constants.py" |
366 |
- |
367 |
- # Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
368 |
- # calls xdg-* (bug #258938). |
369 |
- sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ |
370 |
- -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
371 |
- -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
372 |
- -e "s|, PreserveMIMEDefaults():|:|" \ |
373 |
- -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \ |
374 |
- -e "s|cmd\[2\]|cmd[4]|" \ |
375 |
- -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
376 |
- -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ |
377 |
- -i src/calibre/linux.py || die "sed failed to patch linux.py" |
378 |
- |
379 |
- # Disable unnecessary privilege dropping for bug #287067. |
380 |
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
381 |
- -i setup/install.py || die "sed failed to patch install.py" |
382 |
- |
383 |
- sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\ |
384 |
-\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
385 |
-'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
386 |
-'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
387 |
-'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
388 |
-'-i', 'Makefile'])" \ |
389 |
- -i setup/extensions.py || die "sed failed to patch extensions.py" |
390 |
- |
391 |
- # use system beautifulsoup, instead of bundled |
392 |
- rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \ |
393 |
- || die "could not remove bundled beautifulsoup" |
394 |
- find "${S}" -type f -name \*.py -exec \ |
395 |
- sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \ |
396 |
- || die "could not sed bundled beautifulsoup out of the source tree" |
397 |
- |
398 |
- # avoid failure of xdg tools to recognize vendor prefix |
399 |
- sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \ |
400 |
- -e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \ |
401 |
- -e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \ |
402 |
- -i "${S}"/src/calibre/linux.py || die 'sed failed' |
403 |
- |
404 |
- # no_updates: do not annoy user with "new version is availible all the time |
405 |
- # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
406 |
- epatch \ |
407 |
- "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ |
408 |
- "${FILESDIR}/${PN}-disable_plugins.patch" |
409 |
-} |
410 |
- |
411 |
-src_install() { |
412 |
- # Bypass kbuildsycoca and update-mime-database in order to |
413 |
- # avoid sandbox violations if xdg-mime tries to call them. |
414 |
- cat - > "${T}/kbuildsycoca" <<-EOF |
415 |
- #!${BASH} |
416 |
- echo $0 : $@ |
417 |
- exit 0 |
418 |
- EOF |
419 |
- |
420 |
- cp "${T}"/{kbuildsycoca,update-mime-database} || die |
421 |
- chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die |
422 |
- |
423 |
- export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake" |
424 |
- |
425 |
- # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
426 |
- # violation with kbuildsycoca as in bug #287067, comment #13. |
427 |
- export -n DISPLAY |
428 |
- |
429 |
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
430 |
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
431 |
- # return _parse_localename(localename) |
432 |
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
433 |
- # raise ValueError, 'unknown locale: %s' % localename |
434 |
- #ValueError: unknown locale: 46 |
435 |
- export -n LANGUAGE |
436 |
- |
437 |
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
438 |
- # variables to point to our fake temporary $HOME. |
439 |
- export HOME="${T}/fake_homedir" |
440 |
- export XDG_CONFIG_HOME="${HOME}/.config" |
441 |
- export XDG_DATA_HOME="${HOME}/.local/share" |
442 |
- export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
443 |
- mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die |
444 |
- |
445 |
- tc-export CC CXX |
446 |
- # Bug #334243 - respect LDFLAGS when building extensions |
447 |
- export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
448 |
- local libdir=$(get_libdir) |
449 |
- [[ -n $libdir ]] || die "get_libdir returned an empty string" |
450 |
- |
451 |
- # Bug #472690 - Avoid sandbox violation for /dev/dri/card0. |
452 |
- local x |
453 |
- for x in /dev/dri/card[0-9] ; do |
454 |
- [[ -e ${x} ]] && addpredict ${x} |
455 |
- done |
456 |
- |
457 |
- #dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py |
458 |
- #dodir $(python_get_sitedir) |
459 |
- PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
460 |
- "${PYTHON}" setup.py install \ |
461 |
- --root="${D}" \ |
462 |
- --prefix="${EPREFIX}/usr" \ |
463 |
- --libdir="${EPREFIX}/usr/${libdir}" \ |
464 |
- --staging-root="${ED}usr" \ |
465 |
- --staging-libdir="${ED}usr/${libdir}" || die |
466 |
- |
467 |
- grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i || |
468 |
- die "failed to fix harcoded \$D in paths" |
469 |
- |
470 |
- # The menu entries end up here due to '--mode user' being added to |
471 |
- # xdg-* options in src_prepare. |
472 |
- dodir /usr/share/mime/packages |
473 |
- chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local |
474 |
- mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ || |
475 |
- die "failed to register mime types" |
476 |
- dodir /usr/share/icons |
477 |
- mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ || |
478 |
- die "failed to install icon files" |
479 |
- |
480 |
- domenu "${HOME}"/.local/share/applications/*.desktop || |
481 |
- die "failed to install .desktop menu files" |
482 |
- |
483 |
- find "${ED}"usr/share -type d -empty -delete |
484 |
- |
485 |
- cd "${ED}"/usr/share/calibre/fonts/liberation || die |
486 |
- local x |
487 |
- for x in * ; do |
488 |
- [[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue |
489 |
- ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
490 |
- done |
491 |
- |
492 |
- einfo "Converting python shebangs" |
493 |
- python_fix_shebang "${ED}" |
494 |
- |
495 |
- einfo "Compiling python modules" |
496 |
- python_optimize "${ED}"usr/lib/calibre |
497 |
- |
498 |
- newinitd "${FILESDIR}"/calibre-server.init calibre-server |
499 |
- newconfd "${FILESDIR}"/calibre-server.conf calibre-server |
500 |
- |
501 |
- bashcomp_alias calibre \ |
502 |
- lrfviewer \ |
503 |
- calibre-debug \ |
504 |
- ebook-meta \ |
505 |
- calibre-server \ |
506 |
- ebook-viewer \ |
507 |
- ebook-polish \ |
508 |
- fetch-ebook-metadata \ |
509 |
- lrf2lrs \ |
510 |
- ebook-convert \ |
511 |
- ebook-edit \ |
512 |
- calibre-smtp \ |
513 |
- ebook-device |
514 |
- |
515 |
-} |
516 |
- |
517 |
-pkg_postinst() { |
518 |
- fdo-mime_desktop_database_update |
519 |
- fdo-mime_mime_database_update |
520 |
-} |
521 |
- |
522 |
-pkg_postrm() { |
523 |
- fdo-mime_desktop_database_update |
524 |
- fdo-mime_mime_database_update |
525 |
-} |
526 |
|
527 |
diff --git a/app-text/calibre/calibre-2.55.0.ebuild b/app-text/calibre/calibre-2.55.0.ebuild |
528 |
deleted file mode 100644 |
529 |
index 71a3cf0..00000000 |
530 |
--- a/app-text/calibre/calibre-2.55.0.ebuild |
531 |
+++ /dev/null |
532 |
@@ -1,249 +0,0 @@ |
533 |
-# Copyright 1999-2016 Gentoo Foundation |
534 |
-# Distributed under the terms of the GNU General Public License v2 |
535 |
-# $Id$ |
536 |
- |
537 |
-EAPI=5 |
538 |
- |
539 |
-PYTHON_COMPAT=( python2_7 ) |
540 |
-PYTHON_REQ_USE="sqlite,ssl" |
541 |
- |
542 |
-inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs python-single-r1 |
543 |
- |
544 |
-DESCRIPTION="Ebook management application" |
545 |
-HOMEPAGE="http://calibre-ebook.com/" |
546 |
-SRC_URI="http://download.calibre-ebook.com/${PV}/${P}.tar.xz" |
547 |
- |
548 |
-LICENSE=" |
549 |
- GPL-3+ |
550 |
- GPL-3 |
551 |
- GPL-2+ |
552 |
- GPL-2 |
553 |
- GPL-1+ |
554 |
- LGPL-3+ |
555 |
- LGPL-2.1+ |
556 |
- LGPL-2.1 |
557 |
- BSD |
558 |
- MIT |
559 |
- Old-MIT |
560 |
- Apache-2.0 |
561 |
- public-domain |
562 |
- || ( Artistic GPL-1+ ) |
563 |
- CC-BY-3.0 |
564 |
- OFL-1.1 |
565 |
- PSF-2 |
566 |
- unRAR |
567 |
-" |
568 |
-KEYWORDS="~amd64 ~arm ~x86" |
569 |
-SLOT="0" |
570 |
-IUSE="+udisks" |
571 |
- |
572 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
573 |
- |
574 |
-COMMON_DEPEND="${PYTHON_DEPS} |
575 |
- >=app-text/podofo-0.8.2:= |
576 |
- >=app-text/poppler-0.26.5[qt5] |
577 |
- >=dev-libs/chmlib-0.40:= |
578 |
- dev-libs/glib:2 |
579 |
- >=dev-libs/icu-4.4:= |
580 |
- >=dev-python/apsw-3.7.17[${PYTHON_USEDEP}] |
581 |
- >=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}] |
582 |
- >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}] |
583 |
- >=dev-python/cssutils-0.9.9[${PYTHON_USEDEP}] |
584 |
- >=dev-python/dbus-python-1.2.0[${PYTHON_USEDEP}] |
585 |
- >=dev-python/lxml-3.2.1[${PYTHON_USEDEP}] |
586 |
- >=dev-python/mechanize-0.1.11[${PYTHON_USEDEP}] |
587 |
- dev-python/netifaces[${PYTHON_USEDEP}] |
588 |
- dev-python/pillow[${PYTHON_USEDEP}] |
589 |
- dev-python/psutil[${PYTHON_USEDEP}] |
590 |
- >=dev-python/pygments-2.0.1[${PYTHON_USEDEP}] |
591 |
- >=dev-python/python-dateutil-1.4.1[${PYTHON_USEDEP}] |
592 |
- >=dev-python/PyQt5-5.3.1[gui,svg,webkit,widgets,network,printsupport,${PYTHON_USEDEP}] |
593 |
- dev-qt/qtcore:5 |
594 |
- dev-qt/qtgui:5 |
595 |
- dev-qt/qtwidgets:5 |
596 |
- media-fonts/liberation-fonts |
597 |
- >=media-gfx/imagemagick-6.5.9[jpeg,png] |
598 |
- media-libs/fontconfig |
599 |
- >=media-libs/freetype-2:= |
600 |
- >=media-libs/libmtp-1.1.5:= |
601 |
- >=media-libs/libwmf-0.2.8 |
602 |
- sys-libs/zlib |
603 |
- virtual/libusb:1= |
604 |
- virtual/python-dnspython[${PYTHON_USEDEP}] |
605 |
- x11-libs/libX11 |
606 |
- x11-libs/libXext |
607 |
- x11-libs/libXrender |
608 |
- >=x11-misc/xdg-utils-1.0.2-r2 |
609 |
- udisks? ( virtual/libudev )" |
610 |
-RDEPEND="${COMMON_DEPEND} |
611 |
- udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" |
612 |
-DEPEND="${COMMON_DEPEND} |
613 |
- >=dev-python/setuptools-0.6_rc5[${PYTHON_USEDEP}] |
614 |
- >=virtual/podofo-build-0.8.2 |
615 |
- virtual/pkgconfig" |
616 |
- |
617 |
-src_prepare() { |
618 |
- # Fix outdated version constant. |
619 |
- #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
620 |
- # -i src/calibre/constants.py || \ |
621 |
- # die "sed failed to patch constants.py" |
622 |
- |
623 |
- # Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
624 |
- # calls xdg-* (bug #258938). |
625 |
- sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ |
626 |
- -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
627 |
- -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
628 |
- -e "s|, PreserveMIMEDefaults():|:|" \ |
629 |
- -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \ |
630 |
- -e "s|cmd\[2\]|cmd[4]|" \ |
631 |
- -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
632 |
- -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ |
633 |
- -i src/calibre/linux.py || die "sed failed to patch linux.py" |
634 |
- |
635 |
- # Disable unnecessary privilege dropping for bug #287067. |
636 |
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
637 |
- -i setup/install.py || die "sed failed to patch install.py" |
638 |
- |
639 |
- sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\ |
640 |
-\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
641 |
-'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
642 |
-'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
643 |
-'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
644 |
-'-i', 'Makefile'])" \ |
645 |
- -i setup/extensions.py || die "sed failed to patch extensions.py" |
646 |
- |
647 |
- # use system beautifulsoup, instead of bundled |
648 |
- rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \ |
649 |
- || die "could not remove bundled beautifulsoup" |
650 |
- find "${S}" -type f -name \*.py -exec \ |
651 |
- sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \ |
652 |
- || die "could not sed bundled beautifulsoup out of the source tree" |
653 |
- |
654 |
- # avoid failure of xdg tools to recognize vendor prefix |
655 |
- sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \ |
656 |
- -e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \ |
657 |
- -e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \ |
658 |
- -i "${S}"/src/calibre/linux.py || die 'sed failed' |
659 |
- |
660 |
- # no_updates: do not annoy user with "new version is availible all the time |
661 |
- # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
662 |
- epatch \ |
663 |
- "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ |
664 |
- "${FILESDIR}/${PN}-disable_plugins.patch" |
665 |
-} |
666 |
- |
667 |
-src_install() { |
668 |
- # Bypass kbuildsycoca and update-mime-database in order to |
669 |
- # avoid sandbox violations if xdg-mime tries to call them. |
670 |
- cat - > "${T}/kbuildsycoca" <<-EOF |
671 |
- #!${BASH} |
672 |
- echo $0 : $@ |
673 |
- exit 0 |
674 |
- EOF |
675 |
- |
676 |
- cp "${T}"/{kbuildsycoca,update-mime-database} || die |
677 |
- chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die |
678 |
- |
679 |
- export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake" |
680 |
- |
681 |
- # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
682 |
- # violation with kbuildsycoca as in bug #287067, comment #13. |
683 |
- export -n DISPLAY |
684 |
- |
685 |
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
686 |
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
687 |
- # return _parse_localename(localename) |
688 |
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
689 |
- # raise ValueError, 'unknown locale: %s' % localename |
690 |
- #ValueError: unknown locale: 46 |
691 |
- export -n LANGUAGE |
692 |
- |
693 |
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
694 |
- # variables to point to our fake temporary $HOME. |
695 |
- export HOME="${T}/fake_homedir" |
696 |
- export XDG_CONFIG_HOME="${HOME}/.config" |
697 |
- export XDG_DATA_HOME="${HOME}/.local/share" |
698 |
- export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
699 |
- mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die |
700 |
- |
701 |
- tc-export CC CXX |
702 |
- # Bug #334243 - respect LDFLAGS when building extensions |
703 |
- export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
704 |
- local libdir=$(get_libdir) |
705 |
- [[ -n $libdir ]] || die "get_libdir returned an empty string" |
706 |
- |
707 |
- # Bug #472690 - Avoid sandbox violation for /dev/dri/card0. |
708 |
- local x |
709 |
- for x in /dev/dri/card[0-9] ; do |
710 |
- [[ -e ${x} ]] && addpredict ${x} |
711 |
- done |
712 |
- |
713 |
- #dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py |
714 |
- #dodir $(python_get_sitedir) |
715 |
- PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
716 |
- "${PYTHON}" setup.py install \ |
717 |
- --root="${D}" \ |
718 |
- --prefix="${EPREFIX}/usr" \ |
719 |
- --libdir="${EPREFIX}/usr/${libdir}" \ |
720 |
- --staging-root="${ED}usr" \ |
721 |
- --staging-libdir="${ED}usr/${libdir}" || die |
722 |
- |
723 |
- grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i || |
724 |
- die "failed to fix harcoded \$D in paths" |
725 |
- |
726 |
- # The menu entries end up here due to '--mode user' being added to |
727 |
- # xdg-* options in src_prepare. |
728 |
- dodir /usr/share/mime/packages |
729 |
- chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local |
730 |
- mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ || |
731 |
- die "failed to register mime types" |
732 |
- dodir /usr/share/icons |
733 |
- mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ || |
734 |
- die "failed to install icon files" |
735 |
- |
736 |
- domenu "${HOME}"/.local/share/applications/*.desktop || |
737 |
- die "failed to install .desktop menu files" |
738 |
- |
739 |
- find "${ED}"usr/share -type d -empty -delete |
740 |
- |
741 |
- cd "${ED}"/usr/share/calibre/fonts/liberation || die |
742 |
- local x |
743 |
- for x in * ; do |
744 |
- [[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue |
745 |
- ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
746 |
- done |
747 |
- |
748 |
- einfo "Converting python shebangs" |
749 |
- python_fix_shebang "${ED}" |
750 |
- |
751 |
- einfo "Compiling python modules" |
752 |
- python_optimize "${ED}"usr/lib/calibre |
753 |
- |
754 |
- newinitd "${FILESDIR}"/calibre-server.init calibre-server |
755 |
- newconfd "${FILESDIR}"/calibre-server.conf calibre-server |
756 |
- |
757 |
- bashcomp_alias calibre \ |
758 |
- lrfviewer \ |
759 |
- calibre-debug \ |
760 |
- ebook-meta \ |
761 |
- calibre-server \ |
762 |
- ebook-viewer \ |
763 |
- ebook-polish \ |
764 |
- fetch-ebook-metadata \ |
765 |
- lrf2lrs \ |
766 |
- ebook-convert \ |
767 |
- ebook-edit \ |
768 |
- calibre-smtp \ |
769 |
- ebook-device |
770 |
- |
771 |
-} |
772 |
- |
773 |
-pkg_postinst() { |
774 |
- fdo-mime_desktop_database_update |
775 |
- fdo-mime_mime_database_update |
776 |
-} |
777 |
- |
778 |
-pkg_postrm() { |
779 |
- fdo-mime_desktop_database_update |
780 |
- fdo-mime_mime_database_update |
781 |
-} |
782 |
|
783 |
diff --git a/app-text/calibre/calibre-2.68.0.ebuild b/app-text/calibre/calibre-2.68.0.ebuild |
784 |
deleted file mode 100644 |
785 |
index 23a7e98..00000000 |
786 |
--- a/app-text/calibre/calibre-2.68.0.ebuild |
787 |
+++ /dev/null |
788 |
@@ -1,251 +0,0 @@ |
789 |
-# Copyright 1999-2016 Gentoo Foundation |
790 |
-# Distributed under the terms of the GNU General Public License v2 |
791 |
-# $Id$ |
792 |
- |
793 |
-EAPI=6 |
794 |
- |
795 |
-PYTHON_COMPAT=( python2_7 ) |
796 |
-PYTHON_REQ_USE="sqlite,ssl" |
797 |
- |
798 |
-inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs python-single-r1 |
799 |
- |
800 |
-DESCRIPTION="Ebook management application" |
801 |
-HOMEPAGE="http://calibre-ebook.com/" |
802 |
-SRC_URI="http://download.calibre-ebook.com/${PV}/${P}.tar.xz" |
803 |
- |
804 |
-LICENSE=" |
805 |
- GPL-3+ |
806 |
- GPL-3 |
807 |
- GPL-2+ |
808 |
- GPL-2 |
809 |
- GPL-1+ |
810 |
- LGPL-3+ |
811 |
- LGPL-2.1+ |
812 |
- LGPL-2.1 |
813 |
- BSD |
814 |
- MIT |
815 |
- Old-MIT |
816 |
- Apache-2.0 |
817 |
- public-domain |
818 |
- || ( Artistic GPL-1+ ) |
819 |
- CC-BY-3.0 |
820 |
- OFL-1.1 |
821 |
- PSF-2 |
822 |
- unRAR |
823 |
-" |
824 |
-KEYWORDS="~amd64 ~arm ~x86" |
825 |
-SLOT="0" |
826 |
-IUSE="+udisks" |
827 |
- |
828 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
829 |
- |
830 |
-COMMON_DEPEND="${PYTHON_DEPS} |
831 |
- >=app-text/podofo-0.8.2:= |
832 |
- >=app-text/poppler-0.26.5[qt5] |
833 |
- >=dev-libs/chmlib-0.40:= |
834 |
- dev-libs/glib:2 |
835 |
- >=dev-libs/icu-4.4:= |
836 |
- >=dev-python/apsw-3.7.17[${PYTHON_USEDEP}] |
837 |
- >=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}] |
838 |
- >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}] |
839 |
- >=dev-python/cssutils-0.9.9[${PYTHON_USEDEP}] |
840 |
- >=dev-python/dbus-python-1.2.0[${PYTHON_USEDEP}] |
841 |
- >=dev-python/lxml-3.2.1[${PYTHON_USEDEP}] |
842 |
- >=dev-python/mechanize-0.1.11[${PYTHON_USEDEP}] |
843 |
- dev-python/netifaces[${PYTHON_USEDEP}] |
844 |
- dev-python/pillow[${PYTHON_USEDEP}] |
845 |
- dev-python/psutil[${PYTHON_USEDEP}] |
846 |
- >=dev-python/pygments-2.0.1[${PYTHON_USEDEP}] |
847 |
- >=dev-python/python-dateutil-1.4.1[${PYTHON_USEDEP}] |
848 |
- >=dev-python/PyQt5-5.3.1[gui,svg,webkit,widgets,network,printsupport,${PYTHON_USEDEP}] |
849 |
- dev-qt/qtcore:5 |
850 |
- dev-qt/qtgui:5 |
851 |
- dev-qt/qtwidgets:5 |
852 |
- media-fonts/liberation-fonts |
853 |
- >=media-gfx/imagemagick-6.5.9[jpeg,png] |
854 |
- media-libs/fontconfig |
855 |
- >=media-libs/freetype-2:= |
856 |
- >=media-libs/libmtp-1.1.5:= |
857 |
- >=media-libs/libwmf-0.2.8 |
858 |
- sys-libs/zlib |
859 |
- virtual/libusb:1= |
860 |
- virtual/python-dnspython[${PYTHON_USEDEP}] |
861 |
- x11-libs/libX11 |
862 |
- x11-libs/libXext |
863 |
- x11-libs/libXrender |
864 |
- >=x11-misc/xdg-utils-1.0.2-r2 |
865 |
- udisks? ( virtual/libudev )" |
866 |
-RDEPEND="${COMMON_DEPEND} |
867 |
- udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" |
868 |
-DEPEND="${COMMON_DEPEND} |
869 |
- >=dev-python/setuptools-0.6_rc5[${PYTHON_USEDEP}] |
870 |
- >=virtual/podofo-build-0.8.2 |
871 |
- virtual/pkgconfig" |
872 |
- |
873 |
-src_prepare() { |
874 |
- # no_updates: do not annoy user with "new version is availible all the time |
875 |
- # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
876 |
- eapply \ |
877 |
- "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ |
878 |
- "${FILESDIR}/${PN}-disable_plugins.patch" |
879 |
- |
880 |
- eapply_user |
881 |
- |
882 |
- # Fix outdated version constant. |
883 |
- #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
884 |
- # -i src/calibre/constants.py || \ |
885 |
- # die "sed failed to patch constants.py" |
886 |
- |
887 |
- # Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
888 |
- # calls xdg-* (bug #258938). |
889 |
- sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ |
890 |
- -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
891 |
- -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
892 |
- -e "s|, PreserveMIMEDefaults():|:|" \ |
893 |
- -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \ |
894 |
- -e "s|cmd\[2\]|cmd[4]|" \ |
895 |
- -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
896 |
- -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ |
897 |
- -i src/calibre/linux.py || die "sed failed to patch linux.py" |
898 |
- |
899 |
- # Disable unnecessary privilege dropping for bug #287067. |
900 |
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
901 |
- -i setup/install.py || die "sed failed to patch install.py" |
902 |
- |
903 |
- sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\ |
904 |
-\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
905 |
-'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
906 |
-'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
907 |
-'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
908 |
-'-i', 'Makefile'])" \ |
909 |
- -i setup/build.py || die "sed failed to patch build.py" |
910 |
- |
911 |
- # use system beautifulsoup, instead of bundled |
912 |
- rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \ |
913 |
- || die "could not remove bundled beautifulsoup" |
914 |
- find "${S}" -type f -name \*.py -exec \ |
915 |
- sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \ |
916 |
- || die "could not sed bundled beautifulsoup out of the source tree" |
917 |
- |
918 |
- # avoid failure of xdg tools to recognize vendor prefix |
919 |
- sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \ |
920 |
- -e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \ |
921 |
- -e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \ |
922 |
- -i "${S}"/src/calibre/linux.py || die 'sed failed' |
923 |
-} |
924 |
- |
925 |
-src_install() { |
926 |
- # Bypass kbuildsycoca and update-mime-database in order to |
927 |
- # avoid sandbox violations if xdg-mime tries to call them. |
928 |
- cat - > "${T}/kbuildsycoca" <<-EOF |
929 |
- #!${BASH} |
930 |
- echo $0 : $@ |
931 |
- exit 0 |
932 |
- EOF |
933 |
- |
934 |
- cp "${T}"/{kbuildsycoca,update-mime-database} || die |
935 |
- chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die |
936 |
- |
937 |
- export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake" |
938 |
- |
939 |
- # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
940 |
- # violation with kbuildsycoca as in bug #287067, comment #13. |
941 |
- export -n DISPLAY |
942 |
- |
943 |
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
944 |
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
945 |
- # return _parse_localename(localename) |
946 |
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
947 |
- # raise ValueError, 'unknown locale: %s' % localename |
948 |
- #ValueError: unknown locale: 46 |
949 |
- export -n LANGUAGE |
950 |
- |
951 |
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
952 |
- # variables to point to our fake temporary $HOME. |
953 |
- export HOME="${T}/fake_homedir" |
954 |
- export XDG_CONFIG_HOME="${HOME}/.config" |
955 |
- export XDG_DATA_HOME="${HOME}/.local/share" |
956 |
- export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
957 |
- mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die |
958 |
- |
959 |
- tc-export CC CXX |
960 |
- # Bug #334243 - respect LDFLAGS when building extensions |
961 |
- export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
962 |
- local libdir=$(get_libdir) |
963 |
- [[ -n $libdir ]] || die "get_libdir returned an empty string" |
964 |
- |
965 |
- # Bug #472690 - Avoid sandbox violation for /dev/dri/card0. |
966 |
- local x |
967 |
- for x in /dev/dri/card[0-9] ; do |
968 |
- [[ -e ${x} ]] && addpredict ${x} |
969 |
- done |
970 |
- |
971 |
- #dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py |
972 |
- #dodir $(python_get_sitedir) |
973 |
- PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
974 |
- "${PYTHON}" setup.py install \ |
975 |
- --root="${D}" \ |
976 |
- --prefix="${EPREFIX}/usr" \ |
977 |
- --libdir="${EPREFIX}/usr/${libdir}" \ |
978 |
- --staging-root="${ED}usr" \ |
979 |
- --staging-libdir="${ED}usr/${libdir}" || die |
980 |
- |
981 |
- grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i || |
982 |
- die "failed to fix harcoded \$D in paths" |
983 |
- |
984 |
- # The menu entries end up here due to '--mode user' being added to |
985 |
- # xdg-* options in src_prepare. |
986 |
- dodir /usr/share/mime/packages |
987 |
- chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local |
988 |
- mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ || |
989 |
- die "failed to register mime types" |
990 |
- dodir /usr/share/icons |
991 |
- mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ || |
992 |
- die "failed to install icon files" |
993 |
- |
994 |
- domenu "${HOME}"/.local/share/applications/*.desktop || |
995 |
- die "failed to install .desktop menu files" |
996 |
- |
997 |
- find "${ED}"usr/share -type d -empty -delete |
998 |
- |
999 |
- cd "${ED}"/usr/share/calibre/fonts/liberation || die |
1000 |
- local x |
1001 |
- for x in * ; do |
1002 |
- [[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue |
1003 |
- ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
1004 |
- done |
1005 |
- |
1006 |
- einfo "Converting python shebangs" |
1007 |
- python_fix_shebang "${ED}" |
1008 |
- |
1009 |
- einfo "Compiling python modules" |
1010 |
- python_optimize "${ED}"usr/lib/calibre |
1011 |
- |
1012 |
- newinitd "${FILESDIR}"/calibre-server.init calibre-server |
1013 |
- newconfd "${FILESDIR}"/calibre-server.conf calibre-server |
1014 |
- |
1015 |
- bashcomp_alias calibre \ |
1016 |
- lrfviewer \ |
1017 |
- calibre-debug \ |
1018 |
- ebook-meta \ |
1019 |
- calibre-server \ |
1020 |
- ebook-viewer \ |
1021 |
- ebook-polish \ |
1022 |
- fetch-ebook-metadata \ |
1023 |
- lrf2lrs \ |
1024 |
- ebook-convert \ |
1025 |
- ebook-edit \ |
1026 |
- calibre-smtp \ |
1027 |
- ebook-device |
1028 |
- |
1029 |
-} |
1030 |
- |
1031 |
-pkg_postinst() { |
1032 |
- fdo-mime_desktop_database_update |
1033 |
- fdo-mime_mime_database_update |
1034 |
-} |
1035 |
- |
1036 |
-pkg_postrm() { |
1037 |
- fdo-mime_desktop_database_update |
1038 |
- fdo-mime_mime_database_update |
1039 |
-} |