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