1 |
commit: e0be9b2cf6335bfb852633af9fd51c5ec236c0ea |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 8 06:47:39 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 8 06:47:39 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0be9b2c |
7 |
|
8 |
app-text/calibre: remove old versino 3.3.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
app-text/calibre/Manifest | 1 - |
13 |
app-text/calibre/calibre-3.3.0.ebuild | 287 ---------------------------------- |
14 |
2 files changed, 288 deletions(-) |
15 |
|
16 |
diff --git a/app-text/calibre/Manifest b/app-text/calibre/Manifest |
17 |
index da3f4aa520d..e0dc633a17f 100644 |
18 |
--- a/app-text/calibre/Manifest |
19 |
+++ b/app-text/calibre/Manifest |
20 |
@@ -1,4 +1,3 @@ |
21 |
DIST calibre-2.78.0.tar.xz 38739404 BLAKE2B a563883407b8c5cdbc8080ef94d7325eca76f938d0238d0ffd7a6836453a6aa1f5dc06a602eb255cfe99e083734f352bc1e18e6ab1834dd6e003b357ca03b42e SHA512 0779ac385dde45ac4baee7cecb0916e245f3e1cf20662bad9d9a4278265390b1aa89c2b478601b57113e7de08a69343288488ee299e8b43332f0129e650aa0ca |
22 |
DIST calibre-3.15.0.tar.xz 38177684 BLAKE2B 7d3892f81db61f8d4a08589a42ccd71183d9dc7fa401480d4426d1205a9a633216a79865140481f63e1e3a741d34f604ea9d7f98c490949d0d4452cb9123fb9b SHA512 93a9f3b7122d8f4cd1d847727f6d1ccd1f9d828651e9ee77a34544742884b3e925552ca61ec1d0a1196b04a0874e97fc877e679dd8a69ba8b754b7688b730697 |
23 |
-DIST calibre-3.3.0.tar.xz 36308116 BLAKE2B fe331df77ed256fb509028e777bd628cb7b316ae99d594c7335216c08e509de32df03ebe3c1393e2cdf6618b4a3820458d2bf9045380c43f979218544cb7757d SHA512 bb63f83d5e35079daba9ec6e7849e6a65c51cf0b2da9fc45b86a2b64cc147f862f08413730f3d2710793de7b045fc73913534dfca11b128ad0ea72e92033f977 |
24 |
DIST calibre-3.8.0.tar.xz 37922608 BLAKE2B 6ae465da15a50f45621753b4f8fdcb978fa3b3cf170575cca0a9e4ae3cd324fbb4b194861180961539f8057ce3650066d7113368dee404d899ed8ca1a58f80e6 SHA512 db7ff5cb0ee82b3237090cbf6a13d13bfa5e27139dd067290ed59d407d2dbbae2ecd3dab338a0beed845079387a051b092233350091ef6ec82623d3a16b1d48d |
25 |
|
26 |
diff --git a/app-text/calibre/calibre-3.3.0.ebuild b/app-text/calibre/calibre-3.3.0.ebuild |
27 |
deleted file mode 100644 |
28 |
index c0d8da0d40b..00000000000 |
29 |
--- a/app-text/calibre/calibre-3.3.0.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,287 +0,0 @@ |
32 |
-# Copyright 1999-2018 Gentoo Foundation |
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 fdo-mime bash-completion-r1 gnome2-utils multilib toolchain-funcs python-single-r1 |
41 |
- |
42 |
-DESCRIPTION="Ebook management application" |
43 |
-HOMEPAGE="http://calibre-ebook.com/" |
44 |
-SRC_URI="http://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 |
- unRAR |
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.8.2:= |
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-python/apsw-3.13.0[${PYTHON_USEDEP}] |
79 |
- >=dev-python/beautifulsoup-3.0.5:python-2[${PYTHON_USEDEP}] |
80 |
- dev-python/chardet[${PYTHON_USEDEP}] |
81 |
- >=dev-python/cssselect-0.7.1[${PYTHON_USEDEP}] |
82 |
- >=dev-python/cssutils-1.0.1[${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/lxml-3.2.1[${PYTHON_USEDEP}] |
87 |
- >=dev-python/mechanize-0.2.5[${PYTHON_USEDEP}] |
88 |
- dev-python/msgpack[${PYTHON_USEDEP}] |
89 |
- dev-python/netifaces[${PYTHON_USEDEP}] |
90 |
- dev-python/pillow[${PYTHON_USEDEP}] |
91 |
- dev-python/psutil[${PYTHON_USEDEP}] |
92 |
- >=dev-python/pygments-2.1.3[${PYTHON_USEDEP}] |
93 |
- >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] |
94 |
- >=dev-python/PyQt5-5.8[gui,svg,webkit,widgets,network,printsupport,${PYTHON_USEDEP}] |
95 |
- dev-python/regex[${PYTHON_USEDEP}] |
96 |
- dev-qt/qtcore:5 |
97 |
- dev-qt/qtgui:5 |
98 |
- dev-qt/qtwidgets:5 |
99 |
- media-fonts/liberation-fonts |
100 |
- >=media-gfx/imagemagick-6.5.9[jpeg,png] |
101 |
- media-libs/fontconfig |
102 |
- >=media-libs/freetype-2:= |
103 |
- >=media-libs/libmtp-1.1.11:= |
104 |
- >=media-libs/libwmf-0.2.8 |
105 |
- >=media-gfx/optipng-0.7.6 |
106 |
- sys-libs/zlib |
107 |
- virtual/libusb:1= |
108 |
- virtual/python-dnspython[${PYTHON_USEDEP}] |
109 |
- x11-libs/libX11 |
110 |
- x11-libs/libXext |
111 |
- x11-libs/libXrender |
112 |
- >=x11-misc/xdg-utils-1.0.2-r2 |
113 |
- ios? ( |
114 |
- >=app-pda/usbmuxd-1.0.8 |
115 |
- >=app-pda/libimobiledevice-1.2.0 |
116 |
- ) |
117 |
- udisks? ( virtual/libudev )" |
118 |
-RDEPEND="${COMMON_DEPEND} |
119 |
- udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" |
120 |
-DEPEND="${COMMON_DEPEND} |
121 |
- >=dev-python/setuptools-23.1.0[${PYTHON_USEDEP}] |
122 |
- >=virtual/podofo-build-0.9.4 |
123 |
- virtual/pkgconfig" |
124 |
- |
125 |
-pkg_pretend() { |
126 |
- if [[ ${MERGE_TYPE} != binary && $(gcc-major-version) -lt 6 ]]; then |
127 |
- eerror "Calibre cannot be built with this version of gcc." |
128 |
- eerror "You need at least gcc-6.0" |
129 |
- die "Your C compiler is too old for this package." |
130 |
- fi |
131 |
-} |
132 |
- |
133 |
-src_prepare() { |
134 |
- # no_updates: do not annoy user with "new version is availible all the time |
135 |
- # disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
136 |
- eapply \ |
137 |
- "${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ |
138 |
- "${FILESDIR}/${PN}-disable_plugins.patch" |
139 |
- |
140 |
- eapply_user |
141 |
- |
142 |
- # Fix outdated version constant. |
143 |
- #sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
144 |
- # -i src/calibre/constants.py || \ |
145 |
- # die "sed failed to patch constants.py" |
146 |
- |
147 |
- # Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
148 |
- # calls xdg-* (bug #258938). |
149 |
- sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ |
150 |
- -e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
151 |
- -e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
152 |
- -e "s|, PreserveMIMEDefaults():|:|" \ |
153 |
- -e "s|'xdg-icon-resource', 'install'|\\0, '--mode', 'user'|" \ |
154 |
- -e "s|cmd\[2\]|cmd[4]|" \ |
155 |
- -e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
156 |
- -e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ |
157 |
- -i src/calibre/linux.py || die "sed failed to patch linux.py" |
158 |
- |
159 |
- # Disable unnecessary privilege dropping for bug #287067. |
160 |
- sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
161 |
- -i setup/install.py || die "sed failed to patch install.py" |
162 |
- |
163 |
- sed -e "/^ self.check_call(\\[QMAKE\\] + qmc + \\[proname\\])$/a\ |
164 |
-\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
165 |
-'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
166 |
-'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
167 |
-'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
168 |
-'-i', 'Makefile'])" \ |
169 |
- -i setup/build.py || die "sed failed to patch build.py" |
170 |
- |
171 |
- # use system beautifulsoup, instead of bundled |
172 |
- rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \ |
173 |
- || die "could not remove bundled beautifulsoup" |
174 |
- find "${S}" -type f -name \*.py -exec \ |
175 |
- sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \ |
176 |
- || die "could not sed bundled beautifulsoup out of the source tree" |
177 |
- |
178 |
- # avoid failure of xdg tools to recognize vendor prefix |
179 |
- sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \ |
180 |
- -e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \ |
181 |
- -e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \ |
182 |
- -i "${S}"/src/calibre/linux.py || die 'sed failed' |
183 |
- |
184 |
- # don't create/install uninstaller |
185 |
- sed '/self\.create_uninstaller()/d' -i src/calibre/linux.py || die |
186 |
-} |
187 |
- |
188 |
-src_install() { |
189 |
- # Bypass kbuildsycoca and update-mime-database in order to |
190 |
- # avoid sandbox violations if xdg-mime tries to call them. |
191 |
- cat - > "${T}/kbuildsycoca" <<-EOF |
192 |
- #!${BASH} |
193 |
- echo $0 : $@ |
194 |
- exit 0 |
195 |
- EOF |
196 |
- |
197 |
- cp "${T}"/{kbuildsycoca,update-mime-database} || die |
198 |
- chmod +x "${T}"/{kbuildsycoca,update-mime-database} || die |
199 |
- |
200 |
- export QMAKE="${EPREFIX}/usr/$(get_libdir)/qt5/bin/qmake" |
201 |
- |
202 |
- # Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
203 |
- # violation with kbuildsycoca as in bug #287067, comment #13. |
204 |
- export -n DISPLAY |
205 |
- |
206 |
- # Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
207 |
- # File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
208 |
- # return _parse_localename(localename) |
209 |
- # File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
210 |
- # raise ValueError, 'unknown locale: %s' % localename |
211 |
- #ValueError: unknown locale: 46 |
212 |
- export -n LANGUAGE |
213 |
- |
214 |
- # Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
215 |
- # variables to point to our fake temporary $HOME. |
216 |
- export HOME="${T}/fake_homedir" |
217 |
- export XDG_CONFIG_HOME="${HOME}/.config" |
218 |
- export XDG_DATA_HOME="${HOME}/.local/share" |
219 |
- export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
220 |
- mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" || die |
221 |
- |
222 |
- tc-export CC CXX |
223 |
- # Bug #334243 - respect LDFLAGS when building extensions |
224 |
- export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
225 |
- local libdir=$(get_libdir) |
226 |
- [[ -n $libdir ]] || die "get_libdir returned an empty string" |
227 |
- |
228 |
- # Bug #472690 - Avoid sandbox violation for /dev/dri/card0. |
229 |
- local x |
230 |
- for x in /dev/dri/card[0-9] ; do |
231 |
- [[ -e ${x} ]] && addpredict ${x} |
232 |
- done |
233 |
- |
234 |
- #dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py |
235 |
- #dodir $(python_get_sitedir) |
236 |
- PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
237 |
- "${PYTHON}" setup.py install \ |
238 |
- --root="${D}" \ |
239 |
- --prefix="${EPREFIX}/usr" \ |
240 |
- --libdir="${EPREFIX}/usr/${libdir}" \ |
241 |
- --staging-root="${ED}usr" \ |
242 |
- --staging-libdir="${ED}usr/${libdir}" || die |
243 |
- |
244 |
- # The menu entries end up here due to '--mode user' being added to |
245 |
- # xdg-* options in src_prepare. |
246 |
- dodir /usr/share/mime/packages |
247 |
- chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local |
248 |
- mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ || |
249 |
- die "failed to register mime types" |
250 |
- dodir /usr/share/icons |
251 |
- mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ || |
252 |
- die "failed to install icon files" |
253 |
- |
254 |
- domenu "${HOME}"/.local/share/applications/*.desktop || |
255 |
- die "failed to install .desktop menu files" |
256 |
- |
257 |
- find "${ED}"usr/share -type d -empty -delete |
258 |
- |
259 |
- cd "${ED}"/usr/share/calibre/fonts/liberation || die |
260 |
- local x |
261 |
- for x in * ; do |
262 |
- [[ -f ${EPREFIX}usr/share/fonts/liberation-fonts/${x} ]] || continue |
263 |
- ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
264 |
- done |
265 |
- |
266 |
- einfo "Converting python shebangs" |
267 |
- python_fix_shebang "${ED}" |
268 |
- |
269 |
- einfo "Compiling python modules" |
270 |
- python_optimize "${ED}"usr/lib/calibre |
271 |
- |
272 |
- newinitd "${FILESDIR}"/calibre-server-3.init calibre-server |
273 |
- newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server |
274 |
- |
275 |
- bashcomp_alias calibre \ |
276 |
- lrfviewer \ |
277 |
- calibre-debug \ |
278 |
- ebook-meta \ |
279 |
- calibre-server \ |
280 |
- ebook-viewer \ |
281 |
- ebook-polish \ |
282 |
- fetch-ebook-metadata \ |
283 |
- lrf2lrs \ |
284 |
- ebook-convert \ |
285 |
- ebook-edit \ |
286 |
- calibre-smtp \ |
287 |
- ebook-device |
288 |
- |
289 |
-} |
290 |
- |
291 |
-pkg_preinst() { |
292 |
- gnome2_icon_savelist |
293 |
- # Indentify stray directories from upstream's "Binary install" |
294 |
- # method (see bug 622728). |
295 |
- CALIBRE_LIB_DIR=/usr/$(get_libdir)/calibre |
296 |
- CALIBRE_LIB_CONTENT=$(for x in "${ED%/}${CALIBRE_LIB_DIR}"/*; do |
297 |
- printf -- "${x##*/} "; done) || die "Failed to list ${ED%/}${CALIBRE_LIB_DIR}" |
298 |
-} |
299 |
- |
300 |
-pkg_postinst() { |
301 |
- [[ -n ${CALIBRE_LIB_DIR} ]] || die "CALIBRE_LIB_DIR is unset" |
302 |
- local x |
303 |
- for x in "${EROOT%/}${CALIBRE_LIB_DIR}"/*; do |
304 |
- if [[ " ${CALIBRE_LIB_CONTENT} " != *" ${x##*/} "* ]]; then |
305 |
- elog "Purging '${x}'" |
306 |
- rm -rf "${x}" |
307 |
- fi |
308 |
- done |
309 |
- fdo-mime_desktop_database_update |
310 |
- fdo-mime_mime_database_update |
311 |
- gnome2_icon_cache_update |
312 |
-} |
313 |
- |
314 |
-pkg_postrm() { |
315 |
- fdo-mime_desktop_database_update |
316 |
- fdo-mime_mime_database_update |
317 |
- gnome2_icon_cache_update |
318 |
-} |