1 |
zmedico 09/07/31 15:37:28 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: calibre-0.6.3.ebuild |
5 |
Log: |
6 |
Version bump to 0.6.3. |
7 |
(Portage version: 2.2_rc33_p13863/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.39 app-text/calibre/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.39&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?rev=1.39&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/ChangeLog?r1=1.38&r2=1.39 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v |
19 |
retrieving revision 1.38 |
20 |
retrieving revision 1.39 |
21 |
diff -u -r1.38 -r1.39 |
22 |
--- ChangeLog 26 Jul 2009 20:20:37 -0000 1.38 |
23 |
+++ ChangeLog 31 Jul 2009 15:37:28 -0000 1.39 |
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.38 2009/07/26 20:20:37 zmedico Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-text/calibre/ChangeLog,v 1.39 2009/07/31 15:37:28 zmedico Exp $ |
29 |
+ |
30 |
+*calibre-0.6.3 (31 Jul 2009) |
31 |
+ |
32 |
+ 31 Jul 2009; Zac Medico <zmedico@g.o> +calibre-0.6.3.ebuild: |
33 |
+ Version bump. |
34 |
|
35 |
*calibre-0.6.0 (26 Jul 2009) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 app-text/calibre/calibre-0.6.3.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.3.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-text/calibre/calibre-0.6.3.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: calibre-0.6.3.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.3.ebuild,v 1.1 2009/07/31 15:37:28 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 |
>=dev-python/pyPdf-1.12 |
84 |
|| ( app-text/podofo >=app-text/pdftk-1.12 ) |
85 |
>=dev-python/cherrypy-3.0.2-r1 |
86 |
>=dev-python/cssutils-0.9.5.1 |
87 |
>=dev-python/odfpy-0.7" |
88 |
|
89 |
RDEPEND="$SHARED_DEPEND |
90 |
>=dev-python/reportlab-2.1 |
91 |
!dev-python/django-tagging" |
92 |
|
93 |
DEPEND="$SHARED_DEPEND |
94 |
dev-python/setuptools |
95 |
>=gnome-base/librsvg-2.0.0 |
96 |
>=x11-misc/xdg-utils-1.0.2-r2 |
97 |
sys-apps/help2man" |
98 |
|
99 |
src_prepare() { |
100 |
# Removing the post_install call. We'll do that stuff in src_install. |
101 |
sed -i -e "/if 'install'/,/subprocess.check_call/d" \ |
102 |
setup.py || die "couldn't remove post_install call" |
103 |
# For help2man to succeed, we need to tell it the path to the tools. |
104 |
sed -i -e "s:\('help2man',\) \(prog\):\1 \'PYTHONPATH=\"${D}$(python_get_sitedir)\" \' + \'${D}usr/bin/\' + \2:" \ |
105 |
src/calibre/linux.py || die "sed'ing in the IMAGE path failed" |
106 |
# Avoid sandbox violation in /usr/share/gnome/apps when linux.py |
107 |
# calls xdg-desktop-menu (bug #258938). This also prevents |
108 |
# "${D}"/usr/share/applications/{mimeinfo.cache,defaults.list} |
109 |
# from being installed (we don't want them anyway). |
110 |
sed -i -e "s:xdg-desktop-menu install:xdg-desktop-menu install --mode user:" \ |
111 |
src/calibre/linux.py || die "sed'ing in the IMAGE path failed" |
112 |
distutils_src_prepare |
113 |
} |
114 |
|
115 |
src_install() { |
116 |
pushd "${S}"/build |
117 |
ln -s lib\.* lib |
118 |
popd |
119 |
distutils_src_install |
120 |
|
121 |
# Create directory before running the postinst script |
122 |
# otherwise it will bail out. |
123 |
dodir /usr/share/icons/hicolor |
124 |
dodir /etc/xdg/menus |
125 |
dodir /usr/share/applications |
126 |
dodir /usr/share/desktop-directories |
127 |
dodir /usr/share/applnk |
128 |
dodir /usr/share/mime/packages |
129 |
|
130 |
# Bypass the default kde-config output, and force it to |
131 |
# tell xdg-mime to use a different path. |
132 |
cat - > "${T}/kde-config" <<EOF |
133 |
#!/bin/bash |
134 |
|
135 |
case \$1:\$2 in |
136 |
--version:) echo -e "Qt: 3.3.8\nKDE: 3.5.8\nkde-config: 1.0" ;; |
137 |
--path:mime) echo "${D}/usr/share/mimelnk/" ;; |
138 |
esac |
139 |
EOF |
140 |
|
141 |
chmod +x "${T}/kde-config" |
142 |
|
143 |
PATH="${T}:${PATH}" KDEDIRS="${D}/usr" XDG_DATA_DIRS="${D}/usr/share" DESTDIR="${D}" PYTHONPATH="${S}/build/lib" \ |
144 |
python "${S}"/src/${PN}/linux.py \ |
145 |
--use-destdir --do-not-reload-udev-hal \ |
146 |
--group-file="${ROOT}"/etc/group --dont-check-root \ |
147 |
|| die "post-installation failed." |
148 |
|
149 |
# The menu entries end up here due to '--mode user' being added to |
150 |
# xdg-desktop-menu options in src_prepare. |
151 |
domenu "$HOME"/.local/share/applications/*.desktop || \ |
152 |
die "failed to install .desktop menu files" |
153 |
|
154 |
dobashcompletion "$D"usr/share/bash-completion/calibre |
155 |
find "${D}"/etc -type d -empty -delete |
156 |
|
157 |
# Removing junk. |
158 |
# Bundled python modules: Module | Package |
159 |
# ---------------------------- |
160 |
# encutils | cssutils |
161 |
# odf | odfpy |
162 |
rm -r "${D}"/usr/share/mime/{subclasses,XMLnamespaces,globs{,2},mime.cache,magic,aliases,types,treemagic,{generic-,}icons} \ |
163 |
"${D}"/usr/share/{applnk,desktop-directories} \ |
164 |
"${D}$(python_get_sitedir)"/{cherrypy,cssutils,encutils,odf,pyPdf} |
165 |
} |
166 |
|
167 |
pkg_postinst() { |
168 |
fdo-mime_desktop_database_update |
169 |
fdo-mime_mime_database_update |
170 |
distutils_pkg_postinst |
171 |
bash-completion_pkg_postinst |
172 |
} |