1 |
zmedico 11/01/31 06:26:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-0.7.43.ebuild |
5 |
Log: |
6 |
0.7.43 version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha19_p36/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.129 app-text/calibre/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.129&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.129&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?r1=1.128&r2=1.129 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
20 |
retrieving revision 1.128 |
21 |
retrieving revision 1.129 |
22 |
diff -u -r1.128 -r1.129 |
23 |
--- ChangeLog 25 Jan 2011 19:37:07 -0000 1.128 |
24 |
+++ ChangeLog 31 Jan 2011 06:26:39 -0000 1.129 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-text/calibre |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.128 2011/01/25 19:37:07 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.129 2011/01/31 06:26:39 zmedico Exp $ |
30 |
+ |
31 |
+*calibre-0.7.43 (31 Jan 2011) |
32 |
+ |
33 |
+ 31 Jan 2011; Zac Medico <zmedico@g.o> +calibre-0.7.43.ebuild: |
34 |
+ 0.7.43 version bump. |
35 |
|
36 |
25 Jan 2011; Zac Medico <zmedico@g.o> calibre-0.7.42.ebuild: |
37 |
Bug #352625 - Some LANGUAGE values can trigger a ValueError. |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-text/calibre/calibre-0.7.43.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-0.7.43.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-0.7.43.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: calibre-0.7.43.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 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.7.43.ebuild,v 1.1 2011/01/31 06:26:39 zmedico Exp $ |
51 |
|
52 |
EAPI=3 |
53 |
PYTHON_DEPEND=2:2.6 |
54 |
PYTHON_USE_WITH=sqlite |
55 |
|
56 |
inherit python distutils eutils fdo-mime bash-completion multilib |
57 |
|
58 |
DESCRIPTION="Ebook management application." |
59 |
HOMEPAGE="http://calibre-ebook.com/" |
60 |
SRC_URI="http://calibre-ebook.com/downloads/$P.tar.gz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
|
64 |
KEYWORDS="~amd64 ~x86" |
65 |
|
66 |
SLOT="0" |
67 |
|
68 |
IUSE="" |
69 |
|
70 |
SHARED_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/dnspython-1.6.0 |
77 |
>=dev-python/cssutils-0.9.7_alpha3 |
78 |
>=dev-python/dbus-python-0.82.2 |
79 |
>=dev-python/imaging-1.1.6 |
80 |
>=dev-python/lxml-2.2.1 |
81 |
>=dev-python/mechanize-0.1.11 |
82 |
>=dev-python/python-dateutil-1.4.1 |
83 |
>=dev-python/PyQt4-4.7[X,svg,webkit] |
84 |
|| ( >=media-gfx/imagemagick-6.5.9 media-gfx/graphicsmagick[imagemagick] ) |
85 |
>=media-libs/libwmf-0.2.8 |
86 |
virtual/libusb:0 |
87 |
>=x11-misc/xdg-utils-1.0.2" |
88 |
|
89 |
RDEPEND="$SHARED_DEPEND |
90 |
>=dev-python/reportlab-2.1" |
91 |
|
92 |
DEPEND="$SHARED_DEPEND |
93 |
>=dev-python/setuptools-0.6_rc5 |
94 |
>=gnome-base/librsvg-2.0.0 |
95 |
>=x11-misc/xdg-utils-1.0.2-r2" |
96 |
|
97 |
S=$WORKDIR/$PN |
98 |
|
99 |
pkg_setup() { |
100 |
python_set_active_version 2 |
101 |
} |
102 |
|
103 |
src_prepare() { |
104 |
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
105 |
# calls xdg-* (bug #258938). |
106 |
sed -e "s:'xdg-desktop-menu', 'install':'xdg-desktop-menu', 'install', '--mode', 'user':" \ |
107 |
-e "s:xdg-icon-resource install:xdg-icon-resource install --mode user:" \ |
108 |
-e "s:xdg-mime install:xdg-mime install --mode user:" \ |
109 |
-i src/calibre/linux.py || die "sed'ing in the IMAGE path failed" |
110 |
|
111 |
# Disable unnecessary privilege dropping for bug #287067. |
112 |
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
113 |
-i setup/install.py || die "sed'ing in the IMAGE path failed" |
114 |
|
115 |
distutils_src_prepare |
116 |
} |
117 |
|
118 |
src_install() { |
119 |
|
120 |
# Bypass kbuildsycoca and update-mime-database in order to |
121 |
# avoid sandbox violations if xdg-mime tries to call them. |
122 |
cat - > "${T}/kbuildsycoca" <<-EOF |
123 |
#!$BASH |
124 |
exit 0 |
125 |
EOF |
126 |
|
127 |
cp "${T}"/{kbuildsycoca,update-mime-database} |
128 |
chmod +x "${T}"/{kbuildsycoca,update-mime-database} |
129 |
|
130 |
# --bindir and --sharedir don't seem to work. |
131 |
# Pass them in anyway so we'll know when they are fixed. |
132 |
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
133 |
# violation with kbuildsycoca as in bug #287067, comment #13. |
134 |
export -n DISPLAY |
135 |
|
136 |
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
137 |
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
138 |
# return _parse_localename(localename) |
139 |
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
140 |
# raise ValueError, 'unknown locale: %s' % localename |
141 |
#ValueError: unknown locale: 46 |
142 |
export -n LANGUAGE |
143 |
|
144 |
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
145 |
# variables to point to our fake temporary $HOME. |
146 |
export HOME="$T/fake_homedir" |
147 |
export XDG_CONFIG_HOME="$HOME/.config" |
148 |
export XDG_DATA_HOME="$HOME/.local/share" |
149 |
export CALIBRE_CONFIG_DIRECTORY="$XDG_CONFIG_HOME/calibre" |
150 |
mkdir -p "$XDG_CONFIG_HOME" "$CALIBRE_CONFIG_DIRECTORY" |
151 |
|
152 |
# Bug #334243 - respect LDFLAGS when building calibre-mount-helper |
153 |
export OVERRIDE_CFLAGS="$CFLAGS $LDFLAGS" |
154 |
|
155 |
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
156 |
distutils_src_install --bindir="${D}usr/bin" --sharedir="${D}usr/share" |
157 |
|
158 |
grep -rlZ "${D}" "${D}" | xargs -0 sed -e "s:${D}:/:g" -i || |
159 |
die "failed to fix harcoded \$D in paths" |
160 |
|
161 |
# Python modules are no longer installed in |
162 |
# site-packages, so remove empty dirs. |
163 |
find "${D}$(python_get_libdir)" -type d -empty -delete |
164 |
|
165 |
# This code may fail if behavior of --root, --bindir or |
166 |
# --sharedir changes in the future. |
167 |
local libdir=$(get_libdir) |
168 |
dodir /usr/$libdir |
169 |
mv "${D}lib/calibre" "${D}usr/$libdir/" || |
170 |
die "failed to move libdir" |
171 |
find "${D}"lib -type d -empty -delete |
172 |
grep -rlZ "/usr/lib/calibre" "${D}" | \ |
173 |
xargs -0 sed -e "s:/usr/lib/calibre:/usr/$libdir/calibre:g" -i || |
174 |
die "failed to fix harcoded libdir paths" |
175 |
|
176 |
find "${D}"share/calibre/man -type f -print0 | \ |
177 |
while read -r -d $'\0' ; do |
178 |
if [[ $REPLY = *.[0-9]calibre.bz2 ]] ; then |
179 |
newname=${REPLY%calibre.bz2}.bz2 |
180 |
mv "$REPLY" "$newname" |
181 |
doman "$newname" || die "doman failed" |
182 |
rm -f "$newname" || die "rm failed" |
183 |
fi |
184 |
done |
185 |
rmdir "${D}"share/calibre/man/* || \ |
186 |
die "could not remove redundant man subdir(s)" |
187 |
rmdir "${D}"share/calibre/man || \ |
188 |
die "could not remove redundant man dir" |
189 |
|
190 |
dodir /usr/bin |
191 |
mv "${D}bin/"* "${D}usr/bin/" || |
192 |
die "failed to move bin dir" |
193 |
find "${D}"bin -type d -empty -delete |
194 |
|
195 |
dodir /usr/share |
196 |
mv "${D}share/"* "${D}usr/share/" || |
197 |
die "failed to move share dir" |
198 |
find "${D}"share -type d -empty -delete |
199 |
|
200 |
# The menu entries end up here due to '--mode user' being added to |
201 |
# xdg-* options in src_prepare. |
202 |
dodir /usr/share/mime/packages |
203 |
chmod -fR a+rX,u+w,g-w,o-w "$HOME"/.local |
204 |
mv "$HOME"/.local/share/mime/packages/* "$D"usr/share/mime/packages/ || |
205 |
die "failed to register mime types" |
206 |
dodir /usr/share/icons |
207 |
mv "$HOME"/.local/share/icons/* "$D"usr/share/icons/ || |
208 |
die "failed to install icon files" |
209 |
domenu "$HOME"/.local/share/applications/*.desktop || |
210 |
die "failed to install .desktop menu files" |
211 |
|
212 |
dobashcompletion "$D"etc/bash_completion.d/calibre |
213 |
rm -r "${D}"etc/bash_completion.d |
214 |
find "${D}"etc -type d -empty -delete |
215 |
|
216 |
python_convert_shebangs -r 2 "$D" |
217 |
} |
218 |
|
219 |
pkg_postinst() { |
220 |
fdo-mime_desktop_database_update |
221 |
fdo-mime_mime_database_update |
222 |
distutils_pkg_postinst |
223 |
bash-completion_pkg_postinst |
224 |
} |