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