1 |
yngwin 15/02/01 11:54:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-2.18.0.ebuild |
5 |
Log: |
6 |
version bump |
7 |
|
8 |
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x4FDF9CFD2FAC514E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.339 app-text/calibre/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.339&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.339&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?r1=1.338&r2=1.339 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
20 |
retrieving revision 1.338 |
21 |
retrieving revision 1.339 |
22 |
diff -u -r1.338 -r1.339 |
23 |
--- ChangeLog 9 Dec 2014 16:24:29 -0000 1.338 |
24 |
+++ ChangeLog 1 Feb 2015 11:54:46 -0000 1.339 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-text/calibre |
27 |
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.338 2014/12/09 16:24:29 axs Exp $ |
29 |
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.339 2015/02/01 11:54:46 yngwin Exp $ |
31 |
+ |
32 |
+*calibre-2.18.0 (01 Feb 2015) |
33 |
+ |
34 |
+ 01 Feb 2015; Ben de Groot <yngwin@g.o> +calibre-2.18.0.ebuild: |
35 |
+ version bump |
36 |
|
37 |
*calibre-2.12.0 (09 Dec 2014) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-text/calibre/calibre-2.18.0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-2.18.0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-2.18.0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: calibre-2.18.0.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2015 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-2.18.0.ebuild,v 1.1 2015/02/01 11:54:46 yngwin Exp $ |
52 |
|
53 |
EAPI=5 |
54 |
|
55 |
inherit eutils fdo-mime bash-completion-r1 multilib toolchain-funcs |
56 |
|
57 |
DESCRIPTION="Ebook management application" |
58 |
HOMEPAGE="http://calibre-ebook.com/" |
59 |
[[ ${PV} == ${PV%.*}.${PV#*.} ]] && MY_PV=${PV}.0 || MY_PV=${PV} |
60 |
SRC_URI="http://sourceforge.net/projects/calibre/files/${MY_PV}/${PN}-${MY_PV}.tar.xz" |
61 |
|
62 |
LICENSE=" |
63 |
GPL-3+ |
64 |
GPL-3 |
65 |
GPL-2+ |
66 |
GPL-2 |
67 |
GPL-1+ |
68 |
LGPL-3+ |
69 |
LGPL-2.1+ |
70 |
LGPL-2.1 |
71 |
BSD |
72 |
MIT |
73 |
Old-MIT |
74 |
Apache-2.0 |
75 |
public-domain |
76 |
|| ( Artistic GPL-1+ ) |
77 |
CC-BY-3.0 |
78 |
OFL-1.1 |
79 |
PSF-2 |
80 |
unRAR |
81 |
" |
82 |
|
83 |
KEYWORDS="~amd64 ~x86" |
84 |
SLOT="0" |
85 |
IUSE="+udisks" |
86 |
|
87 |
# Note, dropped dep on >=app-text/poppler-0.20.2:=[qt4,xpdf-headers(+)] as #1, its qt5 now, and |
88 |
# 2, because repoman blew up when it was there, and my installed copy doesnt seem to link to it. |
89 |
|
90 |
COMMON_DEPEND=" |
91 |
>=app-text/podofo-0.8.2:= |
92 |
>=dev-lang/python-2.7.1:2.7[sqlite,ssl] |
93 |
>=dev-libs/chmlib-0.40:= |
94 |
>=dev-libs/icu-4.4:= |
95 |
dev-libs/glib:2 |
96 |
dev-qt/qtcore:5 |
97 |
dev-qt/qtgui:5 |
98 |
dev-qt/qtwidgets:5 |
99 |
>=media-gfx/imagemagick-6.5.9[jpeg,png] |
100 |
media-libs/fontconfig |
101 |
>=media-libs/freetype-2:= |
102 |
>=media-libs/libmtp-1.1.5:= |
103 |
sys-libs/zlib |
104 |
udisks? ( virtual/libudev ) |
105 |
x11-libs/libX11 |
106 |
x11-libs/libXext |
107 |
x11-libs/libXrender |
108 |
>=dev-python/apsw-3.7.17[python_targets_python2_7(-)] |
109 |
>=dev-python/beautifulsoup-3.0.5:python-2[python_targets_python2_7(-)] |
110 |
dev-python/netifaces[python_targets_python2_7(-)] |
111 |
>=dev-python/dnspython-1.6.0[python_targets_python2_7(-)] |
112 |
>=dev-python/cssselect-0.7.1[python_targets_python2_7(-)] |
113 |
>=dev-python/cssutils-0.9.9[python_targets_python2_7(-)] |
114 |
>=dev-python/dbus-python-0.82.2[python_targets_python2_7(-)] |
115 |
>=dev-python/lxml-3.2.1[python_targets_python2_7(-)] |
116 |
>=dev-python/mechanize-0.1.11[python_targets_python2_7(-)] |
117 |
>=dev-python/python-dateutil-1.4.1[python_targets_python2_7(-)] |
118 |
>=dev-python/PyQt5-5.2.0[gui,svg,webkit,widgets,network,printsupport,python_targets_python2_7(-)] |
119 |
media-fonts/liberation-fonts |
120 |
>=media-libs/libwmf-0.2.8 |
121 |
virtual/libusb:1= |
122 |
virtual/python-imaging[python_targets_python2_7(-)] |
123 |
>=x11-misc/xdg-utils-1.0.2-r2" |
124 |
|
125 |
RDEPEND="${COMMON_DEPEND} |
126 |
udisks? ( || ( sys-fs/udisks:2 sys-fs/udisks:0 ) )" |
127 |
|
128 |
DEPEND="${COMMON_DEPEND} |
129 |
>=dev-python/setuptools-0.6_rc5 |
130 |
>=virtual/podofo-build-0.8.2" |
131 |
|
132 |
src_prepare() { |
133 |
# Fix outdated version constant. |
134 |
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
135 |
# -i src/calibre/constants.py || \ |
136 |
# die "sed failed to patch constants.py" |
137 |
|
138 |
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
139 |
# calls xdg-* (bug #258938). |
140 |
sed -e "s|'xdg-desktop-menu', 'install'|\\0, '--mode', 'user'|" \ |
141 |
-e "s|check_call(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
142 |
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
143 |
-e "s|PreserveMIMEDefaults():||" \ |
144 |
-e "s|xdg-icon-resource install|\\0 --mode user|" \ |
145 |
-e "s|cc(\\['xdg-desktop-menu', 'forceupdate'\\])|#\\0|" \ |
146 |
-e "s|'xdg-mime', 'install'|\\0, '--mode', 'user'|" \ |
147 |
-i src/calibre/linux.py || die "sed failed to patch linux.py" |
148 |
|
149 |
# Disable unnecessary privilege dropping for bug #287067. |
150 |
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
151 |
-i setup/install.py || die "sed failed to patch install.py" |
152 |
|
153 |
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\ |
154 |
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
155 |
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
156 |
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
157 |
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
158 |
'-i', 'Makefile'])" \ |
159 |
-i setup/extensions.py || die "sed failed to patch extensions.py" |
160 |
|
161 |
# use system beautifulsoup, instead of bundled |
162 |
rm -f "${S}"/src/calibre/ebooks/BeautifulSoup.py \ |
163 |
|| die "could not remove bundled beautifulsoup" |
164 |
find "${S}" -type f -name \*.py -exec \ |
165 |
sed -e 's/calibre.ebooks.BeautifulSoup/BeautifulSoup/' -i {} + \ |
166 |
|| die "could not sed bundled beautifulsoup out of the source tree" |
167 |
|
168 |
# avoid failure of xdg tools to recognize vendor prefix |
169 |
sed -e "s|xdg-icon-resource install|xdg-icon-resource install --novendor|" \ |
170 |
-e "s|'xdg-mime', 'install'|'xdg-mime', 'install', '--novendor'|" \ |
171 |
-e "s|'xdg-desktop-menu', 'install'|'xdg-desktop-menu', 'install', '--novendor'|" \ |
172 |
-i "${S}"/src/calibre/linux.py || die 'sed failed' |
173 |
|
174 |
# no_updates: do not annoy user with "new version is availible all the time |
175 |
# disable_plugins: walking sec-hole, wait for upstream to use GHNS interface |
176 |
epatch \ |
177 |
"${FILESDIR}/${PN}-2.9.0-no_updates_dialog.patch" \ |
178 |
"${FILESDIR}/${PN}-disable_plugins.patch" |
179 |
} |
180 |
|
181 |
src_install() { |
182 |
# Bypass kbuildsycoca and update-mime-database in order to |
183 |
# avoid sandbox violations if xdg-mime tries to call them. |
184 |
cat - > "${T}/kbuildsycoca" <<-EOF |
185 |
#!${BASH} |
186 |
echo $0 : $@ |
187 |
exit 0 |
188 |
EOF |
189 |
|
190 |
cp "${T}"/{kbuildsycoca,update-mime-database} |
191 |
chmod +x "${T}"/{kbuildsycoca,update-mime-database} |
192 |
|
193 |
export QMAKE="/usr/lib/qt5/bin/qmake" |
194 |
|
195 |
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
196 |
# violation with kbuildsycoca as in bug #287067, comment #13. |
197 |
export -n DISPLAY |
198 |
|
199 |
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
200 |
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
201 |
# return _parse_localename(localename) |
202 |
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
203 |
# raise ValueError, 'unknown locale: %s' % localename |
204 |
#ValueError: unknown locale: 46 |
205 |
export -n LANGUAGE |
206 |
|
207 |
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
208 |
# variables to point to our fake temporary $HOME. |
209 |
export HOME="${T}/fake_homedir" |
210 |
export XDG_CONFIG_HOME="${HOME}/.config" |
211 |
export XDG_DATA_HOME="${HOME}/.local/share" |
212 |
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
213 |
mkdir -p "${XDG_DATA_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" |
214 |
|
215 |
tc-export CC CXX |
216 |
# Bug #334243 - respect LDFLAGS when building extensions |
217 |
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
218 |
local libdir=$(get_libdir) |
219 |
[[ -n $libdir ]] || die "get_libdir returned an empty string" |
220 |
|
221 |
# Bug #472690 - Avoid sandbox violation for /dev/dri/card0. |
222 |
local x |
223 |
for x in /dev/dri/card[0-9] ; do |
224 |
[[ -e ${x} ]] && addpredict ${x} |
225 |
done |
226 |
|
227 |
dodir "/usr/$(get_libdir)/python2.7/site-packages" # for init_calibre.py |
228 |
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
229 |
"${EPREFIX}"/usr/bin/python2.7 setup.py install \ |
230 |
--root="${D}" \ |
231 |
--prefix="${EPREFIX}/usr" \ |
232 |
--libdir="${EPREFIX}/usr/${libdir}" \ |
233 |
--staging-root="${ED}usr" \ |
234 |
--staging-libdir="${ED}usr/${libdir}" || die |
235 |
|
236 |
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i || |
237 |
die "failed to fix harcoded \$D in paths" |
238 |
|
239 |
# The menu entries end up here due to '--mode user' being added to |
240 |
# xdg-* options in src_prepare. |
241 |
dodir /usr/share/mime/packages |
242 |
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local |
243 |
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ || |
244 |
die "failed to register mime types" |
245 |
dodir /usr/share/icons |
246 |
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ || |
247 |
die "failed to install icon files" |
248 |
|
249 |
domenu "${HOME}"/.local/share/applications/*.desktop || |
250 |
die "failed to install .desktop menu files" |
251 |
|
252 |
find "${ED}"usr/share -type d -empty -delete |
253 |
|
254 |
cd "${ED}"/usr/share/calibre/fonts/liberation || die |
255 |
local x |
256 |
for x in * ; do |
257 |
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue |
258 |
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
259 |
done |
260 |
|
261 |
einfo "Converting python shebangs" |
262 |
while read -r -d $'\0' ; do |
263 |
local shebang=$(head -n1 "$REPLY") |
264 |
if [[ ${shebang} == "#!"*python* ]] ; then |
265 |
sed -i -e "1s:.*:#!${EPREFIX}/usr/bin/python2.7:" "$REPLY" || \ |
266 |
die "sed failed" |
267 |
fi |
268 |
done < <(find "${ED}" -type f -print0) |
269 |
|
270 |
einfo "Compiling python modules" |
271 |
"${EPREFIX}"/usr/bin/python2.7 -m compileall -q -f \ |
272 |
-d "${EPREFIX}"/usr/lib/calibre "${ED}"usr/lib/calibre || die |
273 |
|
274 |
newinitd "${FILESDIR}"/calibre-server.init calibre-server |
275 |
newconfd "${FILESDIR}"/calibre-server.conf calibre-server |
276 |
} |
277 |
|
278 |
pkg_postinst() { |
279 |
fdo-mime_desktop_database_update |
280 |
fdo-mime_mime_database_update |
281 |
} |