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