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