1 |
zmedico 09/04/29 07:22:48 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-0.5.9-r2.ebuild |
5 |
Removed: calibre-0.5.9-r1.ebuild |
6 |
Log: |
7 |
29 Apr 2009; Zac Medico <zmedico@g.o> -calibre-0.5.9-r1.ebuild, |
8 |
+calibre-0.5.9-r2.ebuild: |
9 |
Revbump with blockers for bundled odfpy, cherrypy, cssutils and |
10 |
django-tagging libraries. TODO: Unbundle these libraries. |
11 |
(Portage version: 2.2_rc31_p13404/cvs/Linux i686) |
12 |
|
13 |
Revision Changes Path |
14 |
1.16 app-text/calibre/ChangeLog |
15 |
|
16 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.16&view=markup |
17 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.16&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?r1=1.15&r2=1.16 |
19 |
|
20 |
Index: ChangeLog |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
23 |
retrieving revision 1.15 |
24 |
retrieving revision 1.16 |
25 |
diff -u -r1.15 -r1.16 |
26 |
--- ChangeLog 29 Apr 2009 06:32:48 -0000 1.15 |
27 |
+++ ChangeLog 29 Apr 2009 07:22:48 -0000 1.16 |
28 |
@@ -1,6 +1,13 @@ |
29 |
# ChangeLog for app-text/calibre |
30 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.15 2009/04/29 06:32:48 zmedico Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.16 2009/04/29 07:22:48 zmedico Exp $ |
33 |
+ |
34 |
+*calibre-0.5.9-r2 (29 Apr 2009) |
35 |
+ |
36 |
+ 29 Apr 2009; Zac Medico <zmedico@g.o> -calibre-0.5.9-r1.ebuild, |
37 |
+ +calibre-0.5.9-r2.ebuild: |
38 |
+ Revbump with blockers for bundled odfpy, cherrypy, cssutils and |
39 |
+ django-tagging libraries. TODO: Unbundle these libraries. |
40 |
|
41 |
29 Apr 2009; Zac Medico <zmedico@g.o> calibre-0.5.9-r1.ebuild: |
42 |
Move sed calls from src_compile to src_prepare, and call |
43 |
|
44 |
|
45 |
|
46 |
1.1 app-text/calibre/calibre-0.5.9-r2.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.5.9-r2.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.5.9-r2.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: calibre-0.5.9-r2.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2009 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/calibre-0.5.9-r2.ebuild,v 1.1 2009/04/29 07:22:48 zmedico Exp $ |
56 |
|
57 |
EAPI=2 |
58 |
NEED_PYTHON=2.6 |
59 |
|
60 |
inherit python distutils eutils fdo-mime bash-completion |
61 |
|
62 |
MY_P="${P/_p/-p}" |
63 |
S="${WORKDIR}/${MY_P}" |
64 |
|
65 |
DESCRIPTION="Ebook management application." |
66 |
HOMEPAGE="http://calibre.kovidgoyal.net" |
67 |
SRC_URI="http://calibre.kovidgoyal.net/downloads/${MY_P}.tar.gz" |
68 |
|
69 |
LICENSE="GPL-2" |
70 |
|
71 |
KEYWORDS="~amd64 ~x86" |
72 |
|
73 |
SLOT="0" |
74 |
|
75 |
IUSE="" |
76 |
|
77 |
SHARED_DEPEND=">=dev-lang/python-2.6[sqlite] |
78 |
>=dev-python/setuptools-0.6_rc5 |
79 |
>=dev-python/imaging-1.1.6 |
80 |
>=dev-libs/libusb-0.1.12 |
81 |
>=dev-python/PyQt4-4.4.2[webkit] |
82 |
>=dev-python/mechanize-0.1.11 |
83 |
>=media-gfx/imagemagick-6.3.5 |
84 |
>=x11-misc/xdg-utils-1.0.2 |
85 |
>=dev-python/dbus-python-0.82.2 |
86 |
>=dev-python/lxml-2.1.5 |
87 |
>=dev-python/python-dateutil-1.4.1 |
88 |
>=dev-python/beautifulsoup-3.0.5 |
89 |
>=dev-python/dnspython-1.6.0 |
90 |
>=sys-apps/help2man-1.36.4 |
91 |
>=dev-python/pyPdf-1.12" |
92 |
|
93 |
RDEPEND="$SHARED_DEPEND |
94 |
>=dev-python/reportlab-2.1 |
95 |
!dev-python/cherrypy |
96 |
!dev-python/cssutils |
97 |
!dev-python/django-tagging |
98 |
!dev-python/odfpy" |
99 |
|
100 |
DEPEND="$SHARED_DEPEND |
101 |
dev-python/setuptools |
102 |
>=gnome-base/librsvg-2.0.0 |
103 |
>=x11-misc/xdg-utils-1.0.2-r2 |
104 |
sys-apps/help2man" |
105 |
|
106 |
src_prepare() { |
107 |
# Removing the post_install call. We'll do that stuff in src_install. |
108 |
sed -i -e "/if 'install'/,/subprocess.check_call/d" \ |
109 |
setup.py || die "couldn't remove post_install call" |
110 |
# For help2man to succeed, we need to tell it the path to the tools. |
111 |
sed -i -e "s:\('help2man',\) \(prog\):\1 \'PYTHONPATH=\"${D}$(python_get_sitedir)\" \' + \'${D}usr/bin/\' + \2:" \ |
112 |
src/calibre/linux.py || die "sed'ing in the IMAGE path failed" |
113 |
distutils_src_prepare |
114 |
} |
115 |
|
116 |
src_install() { |
117 |
pushd "${S}"/build |
118 |
ln -s lib\.* lib |
119 |
popd |
120 |
distutils_src_install |
121 |
|
122 |
# Create directory before running the postinst script |
123 |
# otherwise it will bail out. |
124 |
dodir /usr/share/icons/hicolor |
125 |
dodir /etc/xdg/menus |
126 |
dodir /usr/share/applications |
127 |
dodir /usr/share/desktop-directories |
128 |
dodir /usr/share/applnk |
129 |
dodir /usr/share/mime/packages |
130 |
|
131 |
# Bypass the default kde-config output, and force it to |
132 |
# tell xdg-mime to use a different path. |
133 |
cat - > "${T}/kde-config" <<EOF |
134 |
#!/bin/bash |
135 |
|
136 |
case \$1:\$2 in |
137 |
--version:) echo -e "Qt: 3.3.8\nKDE: 3.5.8\nkde-config: 1.0" ;; |
138 |
--path:mime) echo "${D}/usr/share/mimelnk/" ;; |
139 |
esac |
140 |
EOF |
141 |
|
142 |
chmod +x "${T}/kde-config" |
143 |
|
144 |
# Sandbox violation when linux.py calls xdg-desktop-menu (bug #258938). |
145 |
addpredict /usr/share/gnome/apps |
146 |
PATH="${T}:${PATH}" KDEDIRS="${D}/usr" XDG_DATA_DIRS="${D}/usr/share" DESTDIR="${D}" PYTHONPATH="${S}/build/lib" \ |
147 |
python "${S}"/src/${PN}/linux.py \ |
148 |
--use-destdir --do-not-reload-udev-hal \ |
149 |
--group-file="${ROOT}"/etc/group --dont-check-root \ |
150 |
|| die "post-installation failed." |
151 |
|
152 |
# Move the bash-completion file and properly install it. |
153 |
mv "${D}"/etc/bash_completion.d/calibre "${S}/" \ |
154 |
|| die "cannot move the bash-completion file" |
155 |
dobashcompletion "${S}"/calibre |
156 |
find "${D}"/etc -type d -empty -delete |
157 |
|
158 |
# Removing junk. |
159 |
rm -r "${D}"/usr/share/applications/{mimeinfo.cache,defaults.list} \ |
160 |
"${D}"/usr/share/mime/{subclasses,XMLnamespaces,globs{,2},mime.cache,magic,aliases,{generic-,}icons} \ |
161 |
"${D}"/usr/share/{applnk,desktop-directories} \ |
162 |
"${D}$(python_get_sitedir)"/pyPdf |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
fdo-mime_desktop_database_update |
167 |
fdo-mime_mime_database_update |
168 |
distutils_pkg_postinst |
169 |
bash-completion_pkg_postinst |
170 |
} |