/[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.1 - (show annotations) (download)
Sat Sep 18 19:27:50 2010 UTC (3 years, 9 months ago) by eva
Branch: MAIN
Version bump, bug #297741.

(Portage version: 2.2_rc78/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/blogtk/blogtk-1.1.ebuild,v 1.7 2009/01/29 21:51:23 eva 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/libgnome-python
26 dev-python/gtkspell-python
27 dev-python/pywebkitgtk
28 dev-python/pygtksourceview"
29 DEPEND="${RDEPEND}
30 dev-util/pkgconfig
31 sys-devel/gettext"
32
33 DOCS="AUTHORS ChangeLog COPYING README INSTALL NEWS TODO"
34
35 src_prepare() {
36 # Respect DESTDIR
37 epatch "${FILESDIR}/${P}-destdir.patch"
38
39 # Respect multilib
40 sed -i "s:lib/blogtk:$(get_libdir)/blogtk:g" Makefile || die "sed 1 failed"
41 sed -i "s:blogtk2', 'lib')):blogtk2', '$(get_libdir)')):g" bin/blogtk2 \
42 || die "sed 2 failed"
43 mv share/blogtk2/lib share/blogtk2/$(get_libdir) || die
44
45 # Remove unwanted files
46 find -name "*~" -delete || die
47 find -name "*.pyc" -delete || die
48 }
49
50 src_compile() {
51 return
52 }
53
54 src_install() {
55 emake DESTDIR="${D}" install || die "Unable to compile blogtk"
56 }
57
58 pkg_postinst() {
59 fdo-mime_desktop_database_update
60 python_mod_optimize /usr/share/${PN}2/$(get_libdir)/${PN}2
61 }
62
63 pkg_postrm() {
64 fdo-mime_desktop_database_update
65 python_mod_cleanup /usr/share/${PN}2/$(get_libdir)/${PN}2
66 }

  ViewVC Help
Powered by ViewVC 1.1.20