1 |
zmedico 10/11/09 03:34:42 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-0.7.27.ebuild |
5 |
Log: |
6 |
0.7.27 version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha4_p14/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.112 app-text/calibre/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.112&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.112&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?r1=1.111&r2=1.112 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
20 |
retrieving revision 1.111 |
21 |
retrieving revision 1.112 |
22 |
diff -u -r1.111 -r1.112 |
23 |
--- ChangeLog 9 Nov 2010 03:27:51 -0000 1.111 |
24 |
+++ ChangeLog 9 Nov 2010 03:34:42 -0000 1.112 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for app-text/calibre |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.111 2010/11/09 03:27:51 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.112 2010/11/09 03:34:42 zmedico Exp $ |
30 |
+ |
31 |
+*calibre-0.7.27 (09 Nov 2010) |
32 |
+ |
33 |
+ 09 Nov 2010; Zac Medico <zmedico@g.o> +calibre-0.7.27.ebuild: |
34 |
+ 0.7.27 version bump. |
35 |
|
36 |
09 Nov 2010; Zac Medico <zmedico@g.o> -calibre-0.7.23.ebuild, |
37 |
-calibre-0.7.24.ebuild, -calibre-0.7.24-r1.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-text/calibre/calibre-0.7.27.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-0.7.27.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-0.7.27.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: calibre-0.7.27.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 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.27.ebuild,v 1.1 2010/11/09 03:34:42 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-python/beautifulsoup-3.0.5 |
75 |
>=dev-python/dnspython-1.6.0 |
76 |
>=dev-python/cssutils-0.9.7_alpha3 |
77 |
>=dev-python/dbus-python-0.82.2 |
78 |
>=dev-python/imaging-1.1.6 |
79 |
>=dev-python/lxml-2.2.1 |
80 |
>=dev-python/mechanize-0.1.11 |
81 |
>=dev-python/python-dateutil-1.4.1 |
82 |
>=dev-python/PyQt4-4.7[X,svg,webkit] |
83 |
|| ( >=media-gfx/imagemagick-6.5.9 media-gfx/graphicsmagick[imagemagick] ) |
84 |
>=media-libs/libwmf-0.2.8 |
85 |
>=sys-apps/help2man-1.36.4 |
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 #295672 - Avoid sandbox violation in ~/.config by forcing |
137 |
# variables to point to our fake temporary $HOME. |
138 |
export HOME="$T/fake_homedir" |
139 |
export XDG_CONFIG_HOME="$HOME/.config" |
140 |
export XDG_DATA_HOME="$HOME/.local/share" |
141 |
export CALIBRE_CONFIG_DIRECTORY="$XDG_CONFIG_HOME/calibre" |
142 |
mkdir -p "$XDG_CONFIG_HOME" "$CALIBRE_CONFIG_DIRECTORY" |
143 |
|
144 |
# Bug #334243 - respect LDFLAGS when building calibre-mount-helper |
145 |
export OVERRIDE_CFLAGS="$CFLAGS $LDFLAGS" |
146 |
|
147 |
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
148 |
distutils_src_install --bindir="${D}usr/bin" --sharedir="${D}usr/share" |
149 |
|
150 |
grep -rlZ "${D}" "${D}" | xargs -0 sed -e "s:${D}:/:g" -i || |
151 |
die "failed to fix harcoded \$D in paths" |
152 |
|
153 |
# Python modules are no longer installed in |
154 |
# site-packages, so remove empty dirs. |
155 |
find "${D}$(python_get_libdir)" -type d -empty -delete |
156 |
|
157 |
# This code may fail if behavior of --root, --bindir or |
158 |
# --sharedir changes in the future. |
159 |
local libdir=$(get_libdir) |
160 |
dodir /usr/$libdir |
161 |
mv "${D}lib/calibre" "${D}usr/$libdir/" || |
162 |
die "failed to move libdir" |
163 |
find "${D}"lib -type d -empty -delete |
164 |
grep -rlZ "/usr/lib/calibre" "${D}" | \ |
165 |
xargs -0 sed -e "s:/usr/lib/calibre:/usr/$libdir/calibre:g" -i || |
166 |
die "failed to fix harcoded libdir paths" |
167 |
|
168 |
dodir /usr/bin |
169 |
mv "${D}bin/"* "${D}usr/bin/" || |
170 |
die "failed to move bin dir" |
171 |
find "${D}"bin -type d -empty -delete |
172 |
|
173 |
dodir /usr/share |
174 |
mv "${D}share/"* "${D}usr/share/" || |
175 |
die "failed to move share dir" |
176 |
find "${D}"share -type d -empty -delete |
177 |
|
178 |
# The menu entries end up here due to '--mode user' being added to |
179 |
# xdg-* options in src_prepare. |
180 |
dodir /usr/share/mime/packages |
181 |
chmod -fR a+rX,u+w,g-w,o-w "$HOME"/.local |
182 |
mv "$HOME"/.local/share/mime/packages/* "$D"usr/share/mime/packages/ || |
183 |
die "failed to register mime types" |
184 |
dodir /usr/share/icons |
185 |
mv "$HOME"/.local/share/icons/* "$D"usr/share/icons/ || |
186 |
die "failed to install icon files" |
187 |
domenu "$HOME"/.local/share/applications/*.desktop || |
188 |
die "failed to install .desktop menu files" |
189 |
|
190 |
dobashcompletion "$D"etc/bash_completion.d/calibre |
191 |
rm -r "${D}"etc/bash_completion.d |
192 |
find "${D}"etc -type d -empty -delete |
193 |
|
194 |
python_convert_shebangs -r 2 "$D" |
195 |
} |
196 |
|
197 |
pkg_postinst() { |
198 |
fdo-mime_desktop_database_update |
199 |
fdo-mime_mime_database_update |
200 |
distutils_pkg_postinst |
201 |
bash-completion_pkg_postinst |
202 |
} |