/[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.9 - (hide annotations) (download)
Sat Mar 30 17:05:29 2013 UTC (19 months, 4 weeks ago) by eva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Clean up old revision.

(Portage version: 2.2.0_alpha166/cvs/Linux x86_64, signed Manifest commit with key C6085806)

1 floppym 1.7 # Copyright 1999-2012 Gentoo Foundation
2 eva 1.1 # Distributed under the terms of the GNU General Public License v2
3 eva 1.9 # $Header: /var/cvsroot/gentoo-x86/net-misc/blogtk/blogtk-2.0.ebuild,v 1.8 2012/05/05 03:20:40 jdhore Exp $
4 eva 1.1
5     EAPI="2"
6     PYTHON_DEPEND="2:2.6"
7    
8 floppym 1.7 inherit eutils fdo-mime multilib python
9 eva 1.1
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 ranger 1.5 KEYWORDS="amd64 ppc x86"
17 eva 1.1 IUSE=""
18    
19     RESTRICT="mirror"
20    
21     RDEPEND=">=dev-python/pygtk-2
22 tetromino 1.6 >=dev-python/pygobject-2:2
23 eva 1.1 >=gnome-base/gconf-2.2
24     >=gnome-base/libgnome-2
25 pacho 1.2 dev-python/gdata
26     dev-python/feedparser
27 eva 1.1 dev-python/libgnome-python
28     dev-python/gtkspell-python
29     dev-python/pywebkitgtk
30     dev-python/pygtksourceview"
31     DEPEND="${RDEPEND}
32 jdhore 1.8 virtual/pkgconfig
33 eva 1.1 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 pacho 1.2 if [ "$(get_libdir)" != "lib" ]; then
46     mv share/blogtk2/lib share/blogtk2/$(get_libdir) || die
47     fi
48 eva 1.1
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