1 |
zmedico 09/09/08 21:08:05 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-0.6.11.ebuild |
5 |
Removed: calibre-0.6.7.ebuild calibre-0.6.8.ebuild |
6 |
Log: |
7 |
0.6.11 version bump, and remove old. |
8 |
(Portage version: 2.2_rc40_p14215/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.47 app-text/calibre/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.47&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.47&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?r1=1.46&r2=1.47 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
20 |
retrieving revision 1.46 |
21 |
retrieving revision 1.47 |
22 |
diff -u -r1.46 -r1.47 |
23 |
--- ChangeLog 3 Sep 2009 08:07:52 -0000 1.46 |
24 |
+++ ChangeLog 8 Sep 2009 21:08:05 -0000 1.47 |
25 |
@@ -1,6 +1,12 @@ |
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.46 2009/09/03 08:07:52 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.47 2009/09/08 21:08:05 zmedico Exp $ |
30 |
+ |
31 |
+*calibre-0.6.11 (08 Sep 2009) |
32 |
+ |
33 |
+ 08 Sep 2009; Zac Medico <zmedico@g.o> -calibre-0.6.7.ebuild, |
34 |
+ -calibre-0.6.8.ebuild, +calibre-0.6.11.ebuild: |
35 |
+ 0.6.11 version bump, and remove old. |
36 |
|
37 |
*calibre-0.6.10 (03 Sep 2009) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 app-text/calibre/calibre-0.6.11.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.11.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.11.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: calibre-0.6.11.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.11.ebuild,v 1.1 2009/09/08 21:08:05 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 |
src_prepare() { |
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 |
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
108 |
# calls xdg-desktop-menu (bug #258938). This also prevents |
109 |
# "${D}"/usr/share/applications/{mimeinfo.cache,defaults.list} |
110 |
# from being installed (we don't want them anyway). |
111 |
sed -i -e "s:xdg-desktop-menu install:xdg-desktop-menu install --mode user:" \ |
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 |
PATH="${T}:${PATH}" KDEDIRS="${D}/usr" XDG_DATA_DIRS="${D}/usr/share" DESTDIR="${D}" PYTHONPATH="${S}/build/lib" \ |
145 |
python "${S}"/src/${PN}/linux.py \ |
146 |
--use-destdir --do-not-reload-udev-hal \ |
147 |
--group-file="${ROOT}"/etc/group --dont-check-root \ |
148 |
|| die "post-installation failed." |
149 |
|
150 |
# The menu entries end up here due to '--mode user' being added to |
151 |
# xdg-desktop-menu options in src_prepare. |
152 |
domenu "$HOME"/.local/share/applications/*.desktop || \ |
153 |
die "failed to install .desktop menu files" |
154 |
|
155 |
dobashcompletion "$D"usr/share/bash-completion/calibre |
156 |
find "${D}"/etc -type d -empty -delete |
157 |
|
158 |
# Removing junk. |
159 |
# Bundled python modules: Module | Package |
160 |
# ---------------------------- |
161 |
# encutils | cssutils |
162 |
# odf | odfpy |
163 |
rm -r "${D}"/usr/share/mime/{subclasses,XMLnamespaces,globs{,2},mime.cache,magic,aliases,types,treemagic,{generic-,}icons} \ |
164 |
"${D}"/usr/share/{applnk,desktop-directories} \ |
165 |
"${D}$(python_get_sitedir)"/{cherrypy,cssutils,encutils,odf,pyPdf} |
166 |
} |
167 |
|
168 |
pkg_postinst() { |
169 |
fdo-mime_desktop_database_update |
170 |
fdo-mime_mime_database_update |
171 |
distutils_pkg_postinst |
172 |
bash-completion_pkg_postinst |
173 |
} |