summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2011-01-30 07:54:17 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2011-01-30 07:54:17 +0000
commit37369ac46d54e248a0b7502ec5298f858db5a213 (patch)
tree8da1097673aeabcd05218f15eb8f45334d139824 /media-gfx
parentFix RDEPS (bug #352938). Thanks for reporting Pacho. (diff)
downloadgentoo-2-37369ac46d54e248a0b7502ec5298f858db5a213.tar.gz
gentoo-2-37369ac46d54e248a0b7502ec5298f858db5a213.tar.bz2
gentoo-2-37369ac46d54e248a0b7502ec5298f858db5a213.zip
Fix dependencies wrt #352927. Fix python.eclass handling wrt #322249.
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/gnome-specimen/ChangeLog8
-rw-r--r--media-gfx/gnome-specimen/gnome-specimen-0.4.ebuild37
2 files changed, 30 insertions, 15 deletions
diff --git a/media-gfx/gnome-specimen/ChangeLog b/media-gfx/gnome-specimen/ChangeLog
index 6d3b1448a0b4..ca64b9306a2d 100644
--- a/media-gfx/gnome-specimen/ChangeLog
+++ b/media-gfx/gnome-specimen/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-gfx/gnome-specimen
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gnome-specimen/ChangeLog,v 1.5 2010/05/31 15:06:58 arfrever Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gnome-specimen/ChangeLog,v 1.6 2011/01/30 07:54:17 ssuominen Exp $
+
+ 30 Jan 2011; Samuli Suominen <ssuominen@gentoo.org>
+ gnome-specimen-0.4.ebuild:
+ Fix dependencies wrt #352927. Fix python.eclass handling wrt #322249.
31 May 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
gnome-specimen-0.4.ebuild:
diff --git a/media-gfx/gnome-specimen/gnome-specimen-0.4.ebuild b/media-gfx/gnome-specimen/gnome-specimen-0.4.ebuild
index 734d3edb2419..b27f13a65834 100644
--- a/media-gfx/gnome-specimen/gnome-specimen-0.4.ebuild
+++ b/media-gfx/gnome-specimen/gnome-specimen-0.4.ebuild
@@ -1,10 +1,13 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/gnome-specimen/gnome-specimen-0.4.ebuild,v 1.2 2010/05/31 15:06:58 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/gnome-specimen/gnome-specimen-0.4.ebuild,v 1.3 2011/01/30 07:54:17 ssuominen Exp $
+
+EAPI=3
GCONF_DEBUG=no
+PYTHON_DEPEND="2:2.6"
-inherit gnome2 multilib python
+inherit gnome2 python
DESCRIPTION="Font preview application"
HOMEPAGE="http://uwstopia.nl"
@@ -15,30 +18,38 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
-RDEPEND=">=gnome-base/gconf-2
- dev-python/gnome-python"
+RDEPEND="dev-python/gconf-python
+ dev-python/libgnome-python
+ dev-python/pygtk
+ dev-python/pygobject"
DEPEND="${RDEPEND}
- dev-util/pkgconfig
dev-util/intltool
+ dev-util/pkgconfig
sys-devel/gettext"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- ln -nfs $(type -P true) py-compile || die "ln failed."
+pkg_setup() {
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_prepare() {
+ rm -f py-compile
+ ln -s $(type -P true) py-compile
}
src_install() {
- emake DESTDIR="${D}" install || die "emake install failed."
+ emake DESTDIR="${D}" install || die
dodoc AUTHORS ChangeLog NEWS README TODO
+
+ python_convert_shebangs 2 "${D}"/usr/bin/${PN}
}
pkg_postinst() {
- python_mod_optimize $(python_get_sitedir)/specimen
+ python_mod_optimize specimen
gnome2_pkg_postinst
}
pkg_postrm() {
- python_mod_cleanup $(python_get_sitedir)/specimen
+ python_mod_cleanup specimen
gnome2_pkg_postrm
}