1 |
zmedico 10/04/26 06:06:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-0.6.49.ebuild |
5 |
Log: |
6 |
0.6.49 version bump. |
7 |
(Portage version: 2.2_rc67_p75/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.84 app-text/calibre/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.84&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.84&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?r1=1.83&r2=1.84 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
19 |
retrieving revision 1.83 |
20 |
retrieving revision 1.84 |
21 |
diff -u -r1.83 -r1.84 |
22 |
--- ChangeLog 12 Apr 2010 00:26:11 -0000 1.83 |
23 |
+++ ChangeLog 26 Apr 2010 06:06:21 -0000 1.84 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for app-text/calibre |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.83 2010/04/12 00:26:11 zmedico Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.84 2010/04/26 06:06:21 zmedico Exp $ |
29 |
+ |
30 |
+*calibre-0.6.49 (26 Apr 2010) |
31 |
+ |
32 |
+ 26 Apr 2010; Zac Medico <zmedico@g.o> +calibre-0.6.49.ebuild: |
33 |
+ 0.6.49 version bump. |
34 |
|
35 |
12 Apr 2010; Zac Medico <zmedico@g.o> calibre-0.6.47.ebuild: |
36 |
Bug #314229 - Fix deps to pull in graphicsmagick instead of imagemagick if |
37 |
|
38 |
|
39 |
|
40 |
1.1 app-text/calibre/calibre-0.6.49.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.49.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.49.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: calibre-0.6.49.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.6.49.ebuild,v 1.1 2010/04/26 06:06:21 zmedico Exp $ |
50 |
|
51 |
EAPI=2 |
52 |
PYTHON_DEPEND=2:2.6 |
53 |
PYTHON_USE_WITH=sqlite |
54 |
|
55 |
inherit python distutils eutils fdo-mime bash-completion |
56 |
|
57 |
DESCRIPTION="Ebook management application." |
58 |
HOMEPAGE="http://calibre-ebook.com/" |
59 |
SRC_URI="http://calibre-ebook.com/downloads/$P.tar.gz" |
60 |
|
61 |
LICENSE="GPL-2" |
62 |
|
63 |
KEYWORDS="~amd64 ~x86" |
64 |
|
65 |
SLOT="0" |
66 |
|
67 |
IUSE="" |
68 |
|
69 |
SHARED_DEPEND=">=dev-python/cssutils-0.9.7_alpha2 |
70 |
>=dev-python/setuptools-0.6_rc5 |
71 |
>=dev-python/imaging-1.1.6 |
72 |
>=dev-libs/chmlib-0.40 |
73 |
virtual/libusb:0 |
74 |
>=dev-python/PyQt4-4.5[X,svg,webkit] |
75 |
>=dev-python/mechanize-0.1.11 |
76 |
|| ( >=media-gfx/imagemagick-6.3.5 media-gfx/graphicsmagick[imagemagick] ) |
77 |
>=x11-misc/xdg-utils-1.0.2 |
78 |
>=dev-python/dbus-python-0.82.2 |
79 |
>=dev-python/lxml-2.1.5 |
80 |
>=dev-python/python-dateutil-1.4.1 |
81 |
>=dev-python/beautifulsoup-3.0.5 |
82 |
>=dev-python/dnspython-1.6.0 |
83 |
>=app-text/poppler-0.12.3-r3[qt4,xpdf-headers] |
84 |
>=sys-apps/help2man-1.36.4 |
85 |
app-text/podofo" |
86 |
|
87 |
RDEPEND="$SHARED_DEPEND |
88 |
>=dev-python/reportlab-2.1" |
89 |
|
90 |
DEPEND="$SHARED_DEPEND |
91 |
dev-python/setuptools |
92 |
>=gnome-base/librsvg-2.0.0 |
93 |
>=x11-misc/xdg-utils-1.0.2-r2 |
94 |
sys-apps/help2man" |
95 |
|
96 |
S=$WORKDIR/$PN |
97 |
|
98 |
pkg_setup() { |
99 |
python_set_active_version 2 |
100 |
} |
101 |
|
102 |
src_prepare() { |
103 |
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
104 |
# calls xdg-* (bug #258938). |
105 |
sed -e "s:'xdg-desktop-menu', 'install':'xdg-desktop-menu', 'install', '--mode', 'user':" \ |
106 |
-e "s:xdg-icon-resource install:xdg-icon-resource install --mode user:" \ |
107 |
-e "s:xdg-mime install:xdg-mime install --mode user:" \ |
108 |
-e "s:old_udev = '/etc:old_udev = '${D}etc:" \ |
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 - Aavoid sandbox violation in ~/.config by forcing |
137 |
# variables to point to our fake temporary $HOME. |
138 |
export XDG_CONFIG_HOME="$HOME/.config" |
139 |
export CALIBRE_CONFIG_DIRECTORY="$XDG_CONFIG_HOME/calibre" |
140 |
mkdir -p "$XDG_CONFIG_HOME" "$CALIBRE_CONFIG_DIRECTORY" |
141 |
|
142 |
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
143 |
distutils_src_install --bindir="${D}usr/bin" --sharedir="${D}usr/share" |
144 |
|
145 |
grep -rlZ "${D}" "${D}" | xargs -0 sed -e "s:${D}:/:g" -i || |
146 |
die "failed to fix harcoded \$D in paths" |
147 |
|
148 |
# Python modules are no longer installed in |
149 |
# site-packages, so remove empty dirs. |
150 |
find "${D}$(python_get_libdir)" -type d -empty -delete |
151 |
|
152 |
# This code may fail if behavior of --root, --bindir or |
153 |
# --sharedir changes in the future. |
154 |
dodir /usr/lib |
155 |
mv "${D}lib/calibre" "${D}usr/lib/" || |
156 |
die "failed to move lib dir" |
157 |
find "${D}"lib -type d -empty -delete |
158 |
|
159 |
dodir /usr/bin |
160 |
mv "${D}bin/"* "${D}usr/bin/" || |
161 |
die "failed to move bin dir" |
162 |
find "${D}"bin -type d -empty -delete |
163 |
|
164 |
dodir /usr/share |
165 |
mv "${D}share/"* "${D}usr/share/" || |
166 |
die "failed to move share dir" |
167 |
find "${D}"share -type d -empty -delete |
168 |
|
169 |
# The menu entries end up here due to '--mode user' being added to |
170 |
# xdg-* options in src_prepare. |
171 |
dodir /usr/share/mime/packages |
172 |
chmod -fR a+rX,u+w,g-w,o-w "$HOME"/.local |
173 |
mv "$HOME"/.local/share/mime/packages/* "$D"usr/share/mime/packages/ || |
174 |
die "failed to register mime types" |
175 |
dodir /usr/share/icons |
176 |
mv "$HOME"/.local/share/icons/* "$D"usr/share/icons/ || |
177 |
die "failed to install icon files" |
178 |
domenu "$HOME"/.local/share/applications/*.desktop || |
179 |
die "failed to install .desktop menu files" |
180 |
|
181 |
dobashcompletion "$D"etc/bash_completion.d/calibre |
182 |
rm -r "${D}"etc/bash_completion.d |
183 |
find "${D}"etc -type d -empty -delete |
184 |
|
185 |
python_convert_shebangs -r 2 "$D" |
186 |
} |
187 |
|
188 |
pkg_postinst() { |
189 |
fdo-mime_desktop_database_update |
190 |
fdo-mime_mime_database_update |
191 |
distutils_pkg_postinst |
192 |
bash-completion_pkg_postinst |
193 |
} |