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