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