Gentoo Archives: gentoo-commits

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