1 |
zmedico 09/10/01 03:14:01 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-0.6.14-r1.ebuild |
5 |
Removed: calibre-0.6.14.ebuild |
6 |
Log: |
7 |
0.6.14-r1 revbump. Install python modules in /usr/lib/calibre, including bundled modules, since that's how upstream wants it. |
8 |
(Portage version: 2.2_rc42_p14468/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.49 app-text/calibre/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.49&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.49&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?r1=1.48&r2=1.49 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
20 |
retrieving revision 1.48 |
21 |
retrieving revision 1.49 |
22 |
diff -u -r1.48 -r1.49 |
23 |
--- ChangeLog 1 Oct 2009 02:19:34 -0000 1.48 |
24 |
+++ ChangeLog 1 Oct 2009 03:14:01 -0000 1.49 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-text/calibre |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.48 2009/10/01 02:19:34 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.49 2009/10/01 03:14:01 zmedico Exp $ |
30 |
+ |
31 |
+*calibre-0.6.14-r1 (01 Oct 2009) |
32 |
+ |
33 |
+ 01 Oct 2009; Zac Medico <zmedico@g.o> -calibre-0.6.14.ebuild, |
34 |
+ +calibre-0.6.14-r1.ebuild: |
35 |
+ Install python modules in /usr/lib/calibre, including bundled modules, |
36 |
+ since that's how upstream wants it. |
37 |
|
38 |
*calibre-0.6.14 (01 Oct 2009) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 app-text/calibre/calibre-0.6.14-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.14-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.14-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: calibre-0.6.14-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 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.6.14-r1.ebuild,v 1.1 2009/10/01 03:14:01 zmedico Exp $ |
53 |
|
54 |
EAPI=2 |
55 |
NEED_PYTHON=2.6 |
56 |
|
57 |
inherit python distutils eutils fdo-mime bash-completion |
58 |
|
59 |
DESCRIPTION="Ebook management application." |
60 |
HOMEPAGE="http://calibre.kovidgoyal.net" |
61 |
SRC_URI="http://calibre.kovidgoyal.net/downloads/$P.tar.gz" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
|
65 |
KEYWORDS="~amd64 ~x86" |
66 |
|
67 |
SLOT="0" |
68 |
|
69 |
IUSE="" |
70 |
|
71 |
# libusb-compat is untested |
72 |
SHARED_DEPEND=">=dev-lang/python-2.6[sqlite] |
73 |
>=dev-python/setuptools-0.6_rc5 |
74 |
>=dev-python/imaging-1.1.6 |
75 |
dev-libs/libusb:0 |
76 |
>=dev-python/PyQt4-4.5[X,svg,webkit] |
77 |
>=dev-python/mechanize-0.1.11 |
78 |
>=media-gfx/imagemagick-6.3.5 |
79 |
>=x11-misc/xdg-utils-1.0.2 |
80 |
>=dev-python/dbus-python-0.82.2 |
81 |
>=dev-python/lxml-2.1.5 |
82 |
>=dev-python/python-dateutil-1.4.1 |
83 |
>=dev-python/beautifulsoup-3.0.5 |
84 |
>=dev-python/dnspython-1.6.0 |
85 |
>=sys-apps/help2man-1.36.4 |
86 |
|| ( app-text/podofo >=app-text/pdftk-1.12 )" |
87 |
|
88 |
RDEPEND="$SHARED_DEPEND |
89 |
>=dev-python/reportlab-2.1" |
90 |
|
91 |
DEPEND="$SHARED_DEPEND |
92 |
dev-python/setuptools |
93 |
>=gnome-base/librsvg-2.0.0 |
94 |
>=x11-misc/xdg-utils-1.0.2-r2 |
95 |
sys-apps/help2man" |
96 |
|
97 |
S=$WORKDIR/$PN |
98 |
|
99 |
src_prepare() { |
100 |
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
101 |
# calls xdg-* (bug #258938). |
102 |
sed -e "s:'xdg-desktop-menu', 'install':'xdg-desktop-menu', 'install', '--mode', 'user':" \ |
103 |
-e "s:xdg-icon-resource install:xdg-icon-resource install --mode user:" \ |
104 |
-e "s:xdg-mime install:xdg-mime install --mode user:" \ |
105 |
-e "s:old_udev = '/etc:old_udev = '${D}etc:" \ |
106 |
-i src/calibre/linux.py || die "sed'ing in the IMAGE path failed" |
107 |
distutils_src_prepare |
108 |
} |
109 |
|
110 |
src_install() { |
111 |
# --bindir and --sharedir don't seem to work. |
112 |
# Pass them in anyway so we'll know when they are fixed. |
113 |
PYTHONPATH=${S}/src${PYTHONPATH:+:}${PYTHONPATH} \ |
114 |
distutils_src_install --bindir="${D}usr/bin" --sharedir="${D}usr/share" |
115 |
|
116 |
grep -rlZ "${D}" "${D}" | xargs -0 sed -e "s:${D}:/:g" -i || |
117 |
die "failed to fix harcoded \$D in paths" |
118 |
|
119 |
# This code may fail if behavior of --root, --bindir or |
120 |
# --sharedir changes in the future. |
121 |
dodir /usr/lib |
122 |
mv "${D}lib/calibre" "${D}usr/lib/" || |
123 |
die "failed to move lib dir" |
124 |
find "${D}"lib -type d -empty -delete |
125 |
|
126 |
dodir /usr/bin |
127 |
mv "${D}bin/"* "${D}usr/bin/" || |
128 |
die "failed to move bin dir" |
129 |
find "${D}"bin -type d -empty -delete |
130 |
|
131 |
dodir /usr/share |
132 |
mv "${D}share/"* "${D}usr/share/" || |
133 |
die "failed to move share dir" |
134 |
find "${D}"share -type d -empty -delete |
135 |
|
136 |
# The menu entries end up here due to '--mode user' being added to |
137 |
# xdg-* options in src_prepare. |
138 |
dodir /usr/share/mime/packages |
139 |
mv "$HOME"/.local/share/mime/packages/* "$D"usr/share/mime/packages/ || |
140 |
die "failed to register mime types" |
141 |
dodir /usr/share/icons |
142 |
mv "$HOME"/.local/share/icons/* "$D"usr/share/icons/ || |
143 |
die "failed to install icon files" |
144 |
domenu "$HOME"/.local/share/applications/*.desktop || |
145 |
die "failed to install .desktop menu files" |
146 |
|
147 |
dobashcompletion "$D"etc/bash_completion.d/calibre |
148 |
rm -r "${D}"etc/bash_completion.d |
149 |
find "${D}"etc -type d -empty -delete |
150 |
} |
151 |
|
152 |
pkg_postinst() { |
153 |
fdo-mime_desktop_database_update |
154 |
fdo-mime_mime_database_update |
155 |
distutils_pkg_postinst |
156 |
bash-completion_pkg_postinst |
157 |
} |