1 |
zmedico 09/10/01 02:19:34 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-0.6.14.ebuild |
5 |
Log: |
6 |
0.6.14 version bump. |
7 |
(Portage version: 2.2_rc42_p14468/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.48 app-text/calibre/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.48&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.48&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?r1=1.47&r2=1.48 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
19 |
retrieving revision 1.47 |
20 |
retrieving revision 1.48 |
21 |
diff -u -r1.47 -r1.48 |
22 |
--- ChangeLog 8 Sep 2009 21:08:05 -0000 1.47 |
23 |
+++ ChangeLog 1 Oct 2009 02:19:34 -0000 1.48 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for app-text/calibre |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.47 2009/09/08 21:08:05 zmedico Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.48 2009/10/01 02:19:34 zmedico Exp $ |
29 |
+ |
30 |
+*calibre-0.6.14 (01 Oct 2009) |
31 |
+ |
32 |
+ 01 Oct 2009; Zac Medico <zmedico@g.o> +calibre-0.6.14.ebuild: |
33 |
+ 0.6.14 version bump. Pdf output seems to be broken in this release (at |
34 |
+ least it doesn't work with pyPdf-1.12), so skip this update if you need to |
35 |
+ convert to pdf format. |
36 |
|
37 |
*calibre-0.6.11 (08 Sep 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-text/calibre/calibre-0.6.14.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.14.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.14.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: calibre-0.6.14.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.6.14.ebuild,v 1.1 2009/10/01 02:19:34 zmedico Exp $ |
52 |
|
53 |
EAPI=2 |
54 |
NEED_PYTHON=2.6 |
55 |
|
56 |
inherit python distutils eutils fdo-mime bash-completion |
57 |
|
58 |
DESCRIPTION="Ebook management application." |
59 |
HOMEPAGE="http://calibre.kovidgoyal.net" |
60 |
SRC_URI="http://calibre.kovidgoyal.net/downloads/$P.tar.gz" |
61 |
|
62 |
LICENSE="GPL-2" |
63 |
|
64 |
KEYWORDS="~amd64 ~x86" |
65 |
|
66 |
SLOT="0" |
67 |
|
68 |
IUSE="" |
69 |
|
70 |
# libusb-compat is untested |
71 |
SHARED_DEPEND=">=dev-lang/python-2.6[sqlite] |
72 |
>=dev-python/setuptools-0.6_rc5 |
73 |
>=dev-python/imaging-1.1.6 |
74 |
dev-libs/libusb:0 |
75 |
>=dev-python/PyQt4-4.5[X,svg,webkit] |
76 |
>=dev-python/mechanize-0.1.11 |
77 |
>=media-gfx/imagemagick-6.3.5 |
78 |
>=x11-misc/xdg-utils-1.0.2 |
79 |
>=dev-python/dbus-python-0.82.2 |
80 |
>=dev-python/lxml-2.1.5 |
81 |
>=dev-python/python-dateutil-1.4.1 |
82 |
>=dev-python/beautifulsoup-3.0.5 |
83 |
>=dev-python/dnspython-1.6.0 |
84 |
>=sys-apps/help2man-1.36.4 |
85 |
>=dev-python/pyPdf-1.12 |
86 |
|| ( app-text/podofo >=app-text/pdftk-1.12 ) |
87 |
>=dev-python/cherrypy-3.0.2-r1 |
88 |
>=dev-python/cssutils-0.9.6_alpha4 |
89 |
>=dev-python/odfpy-0.7" |
90 |
|
91 |
RDEPEND="$SHARED_DEPEND |
92 |
>=dev-python/reportlab-2.1" |
93 |
|
94 |
DEPEND="$SHARED_DEPEND |
95 |
dev-python/setuptools |
96 |
>=gnome-base/librsvg-2.0.0 |
97 |
>=x11-misc/xdg-utils-1.0.2-r2 |
98 |
sys-apps/help2man" |
99 |
|
100 |
S=$WORKDIR/$PN |
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 |
distutils_src_prepare |
111 |
} |
112 |
|
113 |
src_install() { |
114 |
# --bindir and --sharedir don't seem to work. |
115 |
# Pass them in anyway so we'll know when they are fixed. |
116 |
PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
117 |
distutils_src_install --bindir="${D}usr/bin" --sharedir="${D}usr/share" |
118 |
|
119 |
grep -rlZ "${D}" "${D}" | xargs -0 sed -e "s:${D}:/:g" -i || |
120 |
die "failed to fix harcoded \$D in paths" |
121 |
sed -e "s:/usr/lib/calibre:$(python_get_sitedir):g" -i "${D}bin/"* || |
122 |
die "Failed to fix hardcoded /usr/lib/calibre paths" |
123 |
|
124 |
# This code should fail once --bindir and --sharedir are fixed. |
125 |
dodir /usr/bin |
126 |
mv "${D}bin/"* "${D}usr/bin/" || |
127 |
die "failed to move bin dir" |
128 |
find "${D}"bin -type d -empty -delete |
129 |
|
130 |
dodir /usr/share |
131 |
mv "${D}share/"* "${D}usr/share/" || |
132 |
die "failed to move share dir" |
133 |
find "${D}"share -type d -empty -delete |
134 |
|
135 |
dodir $(python_get_sitedir) |
136 |
mv "${D}lib/calibre/"* "${D}$(python_get_sitedir)"/ || |
137 |
die "failed to move python modules" |
138 |
|
139 |
# The menu entries end up here due to '--mode user' being added to |
140 |
# xdg-* options in src_prepare. |
141 |
dodir /usr/share/mime/packages |
142 |
mv "$HOME"/.local/share/mime/packages/* "$D"usr/share/mime/packages/ || |
143 |
die "failed to register mime types" |
144 |
dodir /usr/share/icons |
145 |
mv "$HOME"/.local/share/icons/* "$D"usr/share/icons/ || |
146 |
die "failed to install icon files" |
147 |
domenu "$HOME"/.local/share/applications/*.desktop || |
148 |
die "failed to install .desktop menu files" |
149 |
|
150 |
dobashcompletion "$D"etc/bash_completion.d/calibre |
151 |
rm -r "${D}"etc/bash_completion.d |
152 |
find "${D}"etc -type d -empty -delete |
153 |
|
154 |
# Removing junk. |
155 |
# Bundled python modules: Module | Package |
156 |
# ---------------------------- |
157 |
# cherrypy | cherrypy |
158 |
# cssutils | cssutils |
159 |
# encutils | cssutils |
160 |
# odf | odfpy |
161 |
# pyPdf | pyPdf |
162 |
rm -r "${D}$(python_get_sitedir)/"{cherrypy,cssutils,encutils,odf,pyPdf} |
163 |
|
164 |
} |
165 |
|
166 |
pkg_postinst() { |
167 |
fdo-mime_desktop_database_update |
168 |
fdo-mime_mime_database_update |
169 |
distutils_pkg_postinst |
170 |
bash-completion_pkg_postinst |
171 |
} |