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