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