/[gentoo-x86]/net-misc/blogtk/blogtk-2.0.ebuild
Gentoo

Contents of /net-misc/blogtk/blogtk-2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Jan 13 20:34:39 2011 UTC (3 years, 11 months ago) by ranger
Branch: MAIN
Changes since 1.4: +3 -3 lines
stable ppc, bug 345137

(Portage version: 2.1.9.25/cvs/Linux ppc64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/blogtk/blogtk-2.0.ebuild,v 1.4 2010/11/14 11:24:17 maekke Exp $
4
5 EAPI="2"
6 PYTHON_DEPEND="2:2.6"
7
8 inherit eutils fdo-mime python
9
10 DESCRIPTION="GTK Blog - post entries to your blog"
11 HOMEPAGE="http://blogtk.sourceforge.net"
12 SRC_URI="http://launchpad.net/${PN}/${PV}/${PV}/+download/${PF}.tar.gz"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="amd64 ppc x86"
17 IUSE=""
18
19 RESTRICT="mirror"
20
21 RDEPEND=">=dev-python/pygtk-2
22 >=dev-python/pygobject-2
23 >=gnome-base/gconf-2.2
24 >=gnome-base/libgnome-2
25 dev-python/gdata
26 dev-python/feedparser
27 dev-python/libgnome-python
28 dev-python/gtkspell-python
29 dev-python/pywebkitgtk
30 dev-python/pygtksourceview"
31 DEPEND="${RDEPEND}
32 dev-util/pkgconfig
33 sys-devel/gettext"
34
35 DOCS="AUTHORS ChangeLog COPYING README INSTALL NEWS TODO"
36
37 src_prepare() {
38 # Respect DESTDIR
39 epatch "${FILESDIR}/${P}-destdir.patch"
40
41 # Respect multilib
42 sed -i "s:lib/blogtk:$(get_libdir)/blogtk:g" Makefile || die "sed 1 failed"
43 sed -i "s:blogtk2', 'lib')):blogtk2', '$(get_libdir)')):g" bin/blogtk2 \
44 || die "sed 2 failed"
45 if [ "$(get_libdir)" != "lib" ]; then
46 mv share/blogtk2/lib share/blogtk2/$(get_libdir) || die
47 fi
48
49 # Remove unwanted files
50 find -name "*~" -delete || die
51 find -name "*.pyc" -delete || die
52 }
53
54 src_compile() {
55 return
56 }
57
58 src_install() {
59 emake DESTDIR="${D}" install || die "Unable to compile blogtk"
60 }
61
62 pkg_postinst() {
63 fdo-mime_desktop_database_update
64 python_mod_optimize /usr/share/${PN}2/$(get_libdir)/${PN}2
65 }
66
67 pkg_postrm() {
68 fdo-mime_desktop_database_update
69 python_mod_cleanup /usr/share/${PN}2/$(get_libdir)/${PN}2
70 }

  ViewVC Help
Powered by ViewVC 1.1.20