1 |
zmedico 12/11/23 18:37:29 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-0.9.7.ebuild |
5 |
Log: |
6 |
0.9.7 version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha142_p27/cvs/Linux i686, signed Manifest commit with key 0xFDE8EF85AE5719A3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.243 app-text/calibre/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.243&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.243&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?r1=1.242&r2=1.243 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
20 |
retrieving revision 1.242 |
21 |
retrieving revision 1.243 |
22 |
diff -u -r1.242 -r1.243 |
23 |
--- ChangeLog 14 Nov 2012 19:33:51 -0000 1.242 |
24 |
+++ ChangeLog 23 Nov 2012 18:37:29 -0000 1.243 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-text/calibre |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.242 2012/11/14 19:33:51 scarabeus Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.243 2012/11/23 18:37:29 zmedico Exp $ |
30 |
+ |
31 |
+*calibre-0.9.7 (23 Nov 2012) |
32 |
+ |
33 |
+ 23 Nov 2012; Zac Medico <zmedico@g.o> +calibre-0.9.7.ebuild: |
34 |
+ 0.9.7 version bump. |
35 |
|
36 |
14 Nov 2012; Tomáš Chvátal <scarabeus@g.o> -calibre-0.9.1.ebuild, |
37 |
-calibre-0.9.5.ebuild, calibre-0.9.6.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-text/calibre/calibre-0.9.7.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-0.9.7.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-0.9.7.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: calibre-0.9.7.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 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.7.ebuild,v 1.1 2012/11/23 18:37:29 zmedico Exp $ |
51 |
|
52 |
EAPI=4 |
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 |
|
140 |
src_install() { |
141 |
|
142 |
# Bypass kbuildsycoca and update-mime-database in order to |
143 |
# avoid sandbox violations if xdg-mime tries to call them. |
144 |
cat - > "${T}/kbuildsycoca" <<-EOF |
145 |
#!${BASH} |
146 |
exit 0 |
147 |
EOF |
148 |
|
149 |
cp "${T}"/{kbuildsycoca,update-mime-database} |
150 |
chmod +x "${T}"/{kbuildsycoca,update-mime-database} |
151 |
|
152 |
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
153 |
# violation with kbuildsycoca as in bug #287067, comment #13. |
154 |
export -n DISPLAY |
155 |
|
156 |
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
157 |
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
158 |
# return _parse_localename(localename) |
159 |
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
160 |
# raise ValueError, 'unknown locale: %s' % localename |
161 |
#ValueError: unknown locale: 46 |
162 |
export -n LANGUAGE |
163 |
|
164 |
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
165 |
# variables to point to our fake temporary $HOME. |
166 |
export HOME="${T}/fake_homedir" |
167 |
export XDG_CONFIG_HOME="${HOME}/.config" |
168 |
export XDG_DATA_HOME="${HOME}/.local/share" |
169 |
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
170 |
mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" |
171 |
|
172 |
# Bug #334243 - respect LDFLAGS when building calibre-mount-helper |
173 |
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
174 |
local libdir=$(get_libdir) |
175 |
[[ -n $libdir ]] || die "get_libdir returned an empty string" |
176 |
|
177 |
dodir "$(python_get_sitedir)" # for init_calibre.py |
178 |
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
179 |
python setup.py install \ |
180 |
--root="${D}" \ |
181 |
--prefix="${EPREFIX}/usr" \ |
182 |
--libdir="${EPREFIX}/usr/${libdir}" \ |
183 |
--staging-root="${ED}usr" \ |
184 |
--staging-libdir="${ED}usr/${libdir}" || die |
185 |
|
186 |
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i || |
187 |
die "failed to fix harcoded \$D in paths" |
188 |
|
189 |
# Remove dummy calibre-mount-helper which is unused since calibre-0.8.25 |
190 |
# due to bug #389515 (instead, calibre now calls udisks via dbus). |
191 |
rm "${ED}usr/bin/calibre-mount-helper" || die |
192 |
|
193 |
# The menu entries end up here due to '--mode user' being added to |
194 |
# xdg-* options in src_prepare. |
195 |
dodir /usr/share/mime/packages |
196 |
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local |
197 |
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ || |
198 |
die "failed to register mime types" |
199 |
dodir /usr/share/icons |
200 |
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ || |
201 |
die "failed to install icon files" |
202 |
|
203 |
domenu "${HOME}"/.local/share/applications/*.desktop || |
204 |
die "failed to install .desktop menu files" |
205 |
|
206 |
dobashcomp "${ED}"usr/etc/bash_completion.d/calibre |
207 |
rm -r "${ED}"usr/etc/bash_completion.d |
208 |
find "${ED}"usr/etc -type d -empty -delete |
209 |
|
210 |
cd "${ED}"/usr/share/calibre/fonts/liberation || die |
211 |
local x |
212 |
for x in * ; do |
213 |
[[ -f ${EROOT}usr/share/fonts/liberation-fonts/${x} ]] || continue |
214 |
ln -sf "../../../fonts/liberation-fonts/${x}" "${x}" || die |
215 |
done |
216 |
|
217 |
python_convert_shebangs -r $(python_get_version) "${ED}" |
218 |
|
219 |
newinitd "${FILESDIR}"/calibre-server.init calibre-server |
220 |
newconfd "${FILESDIR}"/calibre-server.conf calibre-server |
221 |
} |
222 |
|
223 |
pkg_postinst() { |
224 |
fdo-mime_desktop_database_update |
225 |
fdo-mime_mime_database_update |
226 |
python_mod_optimize /usr/$(get_libdir)/${PN} |
227 |
} |
228 |
|
229 |
pkg_postrm() { |
230 |
python_mod_cleanup /usr/$(get_libdir)/${PN} |
231 |
} |