1 |
zmedico 12/07/06 23:31:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-0.8.59.ebuild |
5 |
Removed: calibre-0.8.57.ebuild |
6 |
Log: |
7 |
0.8.59 version bump. |
8 |
|
9 |
(Portage version: 2.2.0_alpha116/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.214 app-text/calibre/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.214&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?rev=1.214&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/ChangeLog?r1=1.213&r2=1.214 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
21 |
retrieving revision 1.213 |
22 |
retrieving revision 1.214 |
23 |
diff -u -r1.213 -r1.214 |
24 |
--- ChangeLog 29 Jun 2012 20:17:28 -0000 1.213 |
25 |
+++ ChangeLog 6 Jul 2012 23:31:34 -0000 1.214 |
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.213 2012/06/29 20:17:28 zmedico Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.214 2012/07/06 23:31:34 zmedico Exp $ |
31 |
+ |
32 |
+*calibre-0.8.59 (06 Jul 2012) |
33 |
+ |
34 |
+ 06 Jul 2012; Zac Medico <zmedico@g.o> +calibre-0.8.59.ebuild, |
35 |
+ -calibre-0.8.57.ebuild: |
36 |
+ 0.8.59 version bump. |
37 |
|
38 |
*calibre-0.8.58 (29 Jun 2012) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 app-text/calibre/calibre-0.8.59.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-0.8.59.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/calibre/calibre-0.8.59.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: calibre-0.8.59.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.59.ebuild,v 1.1 2012/07/06 23:31:34 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.9 |
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-libs/qt-dbus:4 |
91 |
x11-libs/qt-svg:4 |
92 |
>=x11-misc/xdg-utils-1.0.2-r2" |
93 |
|
94 |
RDEPEND="${COMMON_DEPEND} |
95 |
udisks? ( sys-fs/udisks:0 )" |
96 |
|
97 |
DEPEND="${COMMON_DEPEND} |
98 |
>=dev-python/setuptools-0.6_rc5" |
99 |
|
100 |
S=${WORKDIR}/${PN} |
101 |
|
102 |
pkg_setup() { |
103 |
python_set_active_version 2.7 |
104 |
python_pkg_setup |
105 |
} |
106 |
|
107 |
src_prepare() { |
108 |
# Fix outdated version constant. |
109 |
#sed -e "s#\\(^numeric_version =\\).*#\\1 (${PV//./, })#" \ |
110 |
# -i src/calibre/constants.py || \ |
111 |
# die "sed failed to patch constants.py" |
112 |
|
113 |
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
114 |
# calls xdg-* (bug #258938). |
115 |
sed -e "s:'xdg-desktop-menu', 'install':\\0, '--mode', 'user':" \ |
116 |
-e "s:check_call(\\['xdg-desktop-menu', 'forceupdate'\\]):#\\0:" \ |
117 |
-e "s|\\(CurrentDir(tdir)\\), \\\\\$|\\1:|" \ |
118 |
-e "s|PreserveMIMEDefaults():||" \ |
119 |
-e "s:xdg-icon-resource install:\\0 --mode user:" \ |
120 |
-e "s:xdg-mime install:\\0 --mode user:" \ |
121 |
-i src/calibre/linux.py || die "sed failed to patch linux.py" |
122 |
|
123 |
# Disable unnecessary privilege dropping for bug #287067. |
124 |
sed -e "s:if os.geteuid() == 0:if False and os.geteuid() == 0:" \ |
125 |
-i setup/install.py || die "sed failed to patch install.py" |
126 |
|
127 |
sed -e "/^ self\\.check_call(qmc + \\[.*\\.pro'\\])$/a\ |
128 |
\\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ self.check_call(['sed', \ |
129 |
'-e', 's|^CFLAGS .*|\\\\\\\\0 ${CFLAGS}|', \ |
130 |
'-e', 's|^CXXFLAGS .*|\\\\\\\\0 ${CXXFLAGS}|', \ |
131 |
'-e', 's|^LFLAGS .*|\\\\\\\\0 ${LDFLAGS}|', \ |
132 |
'-i', 'Makefile'])" \ |
133 |
-i setup/extensions.py || die "sed failed to patch extensions.py" |
134 |
|
135 |
distutils_src_prepare |
136 |
} |
137 |
|
138 |
src_install() { |
139 |
|
140 |
# Bypass kbuildsycoca and update-mime-database in order to |
141 |
# avoid sandbox violations if xdg-mime tries to call them. |
142 |
cat - > "${T}/kbuildsycoca" <<-EOF |
143 |
#!${BASH} |
144 |
exit 0 |
145 |
EOF |
146 |
|
147 |
cp "${T}"/{kbuildsycoca,update-mime-database} |
148 |
chmod +x "${T}"/{kbuildsycoca,update-mime-database} |
149 |
|
150 |
# Unset DISPLAY in order to prevent xdg-mime from triggering a sandbox |
151 |
# violation with kbuildsycoca as in bug #287067, comment #13. |
152 |
export -n DISPLAY |
153 |
|
154 |
# Bug #352625 - Some LANGUAGE values can trigger the following ValueError: |
155 |
# File "/usr/lib/python2.6/locale.py", line 486, in getdefaultlocale |
156 |
# return _parse_localename(localename) |
157 |
# File "/usr/lib/python2.6/locale.py", line 418, in _parse_localename |
158 |
# raise ValueError, 'unknown locale: %s' % localename |
159 |
#ValueError: unknown locale: 46 |
160 |
export -n LANGUAGE |
161 |
|
162 |
# Bug #295672 - Avoid sandbox violation in ~/.config by forcing |
163 |
# variables to point to our fake temporary $HOME. |
164 |
export HOME="${T}/fake_homedir" |
165 |
export XDG_CONFIG_HOME="${HOME}/.config" |
166 |
export XDG_DATA_HOME="${HOME}/.local/share" |
167 |
export CALIBRE_CONFIG_DIRECTORY="${XDG_CONFIG_HOME}/calibre" |
168 |
mkdir -p "${XDG_CONFIG_HOME}" "${CALIBRE_CONFIG_DIRECTORY}" |
169 |
|
170 |
# Bug #334243 - respect LDFLAGS when building calibre-mount-helper |
171 |
export OVERRIDE_CFLAGS="$CFLAGS" OVERRIDE_LDFLAGS="$LDFLAGS" |
172 |
local libdir=$(get_libdir) |
173 |
[[ -n $libdir ]] || die "get_libdir returned an empty string" |
174 |
|
175 |
dodir "$(python_get_sitedir)" # for init_calibre.py |
176 |
PATH=${T}:${PATH} PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
177 |
distutils_src_install \ |
178 |
--prefix="${EPREFIX}/usr" \ |
179 |
--libdir="${EPREFIX}/usr/${libdir}" \ |
180 |
--staging-root="${ED}usr" \ |
181 |
--staging-libdir="${ED}usr/${libdir}" |
182 |
|
183 |
grep -rlZ "${ED}" "${ED}" | xargs -0 sed -e "s:${D}:/:g" -i || |
184 |
die "failed to fix harcoded \$D in paths" |
185 |
|
186 |
# Remove dummy calibre-mount-helper which is unused since calibre-0.8.25 |
187 |
# due to bug #389515 (instead, calibre now calls udisks via dbus). |
188 |
rm "${ED}usr/bin/calibre-mount-helper" || die |
189 |
|
190 |
# The menu entries end up here due to '--mode user' being added to |
191 |
# xdg-* options in src_prepare. |
192 |
dodir /usr/share/mime/packages |
193 |
chmod -fR a+rX,u+w,g-w,o-w "${HOME}"/.local |
194 |
mv "${HOME}"/.local/share/mime/packages/* "${ED}"usr/share/mime/packages/ || |
195 |
die "failed to register mime types" |
196 |
dodir /usr/share/icons |
197 |
mv "${HOME}"/.local/share/icons/* "${ED}"usr/share/icons/ || |
198 |
die "failed to install icon files" |
199 |
|
200 |
domenu "${HOME}"/.local/share/applications/*.desktop || |
201 |
die "failed to install .desktop menu files" |
202 |
|
203 |
dobashcomp "${ED}"usr/etc/bash_completion.d/calibre |
204 |
rm -r "${ED}"usr/etc/bash_completion.d |
205 |
find "${ED}"usr/etc -type d -empty -delete |
206 |
|
207 |
python_convert_shebangs -r $(python_get_version) "${ED}" |
208 |
|
209 |
newinitd "${FILESDIR}"/calibre-server.init calibre-server |
210 |
newconfd "${FILESDIR}"/calibre-server.conf calibre-server |
211 |
} |
212 |
|
213 |
pkg_postinst() { |
214 |
fdo-mime_desktop_database_update |
215 |
fdo-mime_mime_database_update |
216 |
python_mod_optimize /usr/$(get_libdir)/${PN} |
217 |
} |
218 |
|
219 |
pkg_postrm() { |
220 |
python_mod_cleanup /usr/$(get_libdir)/${PN} |
221 |
} |