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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 17 15:48:22 2013 UTC (18 months, 2 weeks ago) by pacho
Branch: MAIN
Bump to eapi5, use python-single-r1.eclass and fix desktop file (#451588 by G.Wolfe Woodbury)

(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2013 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.8 2012/05/05 03:20:40 jdhore Exp $
4
5 EAPI="5"
6 PYTHON_COMPAT=( python2_{6,7} )
7
8 inherit eutils fdo-mime multilib python-single-r1
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/${P}.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:2
22 >=dev-python/pygobject-2:2
23 >=gnome-base/gconf-2.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 virtual/pkgconfig
33 sys-devel/gettext"
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 if [ "$(get_libdir)" != "lib" ]; then
44 mv share/blogtk2/lib share/blogtk2/$(get_libdir) || die
45 fi
46
47 # Remove unwanted files
48 find -name "*~" -delete || die
49 find -name "*.pyc" -delete || die
50
51 # Fix desktop file
52 sed -i -e 's/.png//' data/blogtk.desktop || die
53 sed -i -e 's/Application;//' data/blogtk.desktop || die
54
55 python_fix_shebang .
56 }
57
58 src_compile() {
59 return
60 }

  ViewVC Help
Powered by ViewVC 1.1.20