diff options
author | Rémi Cardona <remi@gentoo.org> | 2008-06-24 08:37:03 +0000 |
---|---|---|
committer | Rémi Cardona <remi@gentoo.org> | 2008-06-24 08:37:03 +0000 |
commit | c31792cc9f6570b15cbed48e07b5babaf05b5722 (patch) | |
tree | 9deda48df9089865630104847d08efcbde01e344 /dev-python/gnome-python-extras | |
parent | added latest release with wxpython gui support, QA fixes, etc (diff) | |
download | gentoo-2-c31792cc9f6570b15cbed48e07b5babaf05b5722.tar.gz gentoo-2-c31792cc9f6570b15cbed48e07b5babaf05b5722.tar.bz2 gentoo-2-c31792cc9f6570b15cbed48e07b5babaf05b5722.zip |
dev-python/gnome-python-extras: add missing deps that were being automagically detected
(Portage version: 2.2_rc1/cvs/Linux 2.6.25-gentoo-r5 x86_64)
Diffstat (limited to 'dev-python/gnome-python-extras')
-rw-r--r-- | dev-python/gnome-python-extras/ChangeLog | 8 | ||||
-rw-r--r-- | dev-python/gnome-python-extras/gnome-python-extras-2.19.1-r2.ebuild | 93 |
2 files changed, 100 insertions, 1 deletions
diff --git a/dev-python/gnome-python-extras/ChangeLog b/dev-python/gnome-python-extras/ChangeLog index 094728ee6ec9..f555990674c6 100644 --- a/dev-python/gnome-python-extras/ChangeLog +++ b/dev-python/gnome-python-extras/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-python/gnome-python-extras # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/gnome-python-extras/ChangeLog,v 1.75 2008/06/02 21:06:04 eva Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/gnome-python-extras/ChangeLog,v 1.76 2008/06/24 08:37:03 remi Exp $ + +*gnome-python-extras-2.19.1-r2 (24 Jun 2008) + + 24 Jun 2008; Rémi Cardona <remi@gentoo.org> + +gnome-python-extras-2.19.1-r2.ebuild: + add missing deps that were being automagically detected 02 Jun 2008; Gilles Dartiguelongue <eva@gentoo.org> gnome-python-extras-2.19.1-r1.ebuild: diff --git a/dev-python/gnome-python-extras/gnome-python-extras-2.19.1-r2.ebuild b/dev-python/gnome-python-extras/gnome-python-extras-2.19.1-r2.ebuild new file mode 100644 index 000000000000..240dc9bc576b --- /dev/null +++ b/dev-python/gnome-python-extras/gnome-python-extras-2.19.1-r2.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/gnome-python-extras/gnome-python-extras-2.19.1-r2.ebuild,v 1.1 2008/06/24 08:37:03 remi Exp $ + +inherit eutils gnome2 python virtualx autotools + +DESCRIPTION="GNOME 2 Bindings for Python" +HOMEPAGE="http://www.pygtk.org" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc firefox seamonkey xulrunner" + +RDEPEND=">=x11-libs/gtk+-2.4 + >=dev-libs/glib-2.6 + >=dev-python/gnome-python-2.10 + >=dev-python/pygtk-2.4 + =gnome-extra/gtkhtml-2* + xulrunner? ( =net-libs/xulrunner-1.8* ) + !xulrunner? ( firefox? ( =www-client/mozilla-firefox-2* ) ) + !xulrunner? ( !firefox? ( seamonkey? ( =www-client/seamonkey-1* ) ) ) + >=x11-libs/libgksu-2.0.4 + >=dev-libs/gdl-0.6.1 + >=app-text/gtkspell-2" + # =gnome-extra/libgda-3* + # This used to be wrongly libgda-1*, but as configure is automagic, + # it just didn't build libgda bindings before as libgda-3 is p.masked. + # Leaving it automagic and dep lacking as there are no notable users of + # these bindings as testified by the lack of bug reports for this + # breakage. Should be fixed after libgda-3 gets unmasked or this ebuild + # is split into many per bug 108479 + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +DOCS="AUTHORS COPYING* ChangeLog INSTALL NEWS README" + +# Tests are broken and not that useful anyway, see bug #209846 +RESTRICT="test" + +pkg_setup() { + if ! built_with_use --missing true dev-libs/gdl gnome; then + eerror "If you want to build ${PN} with >=dev-libs/gdl-0.7.1, you" + eerror "need to build dev-libs/gdl with the the 'gnome' USE flag." + die "gdl must be built with USE='gnome'" + fi + + # only controls linking, can't disable w/o a patch :) + if use xulrunner; then + G2CONF="${G2CONF} --with-gtkmozembed=xulrunner" + elif use firefox; then + G2CONF="${G2CONF} --with-gtkmozembed=firefox" + elif use seamonkey; then + G2CONF="${G2CONF} --with-gtkmozembed=seamonkey" + fi +} + +src_unpack() { + gnome2_src_unpack + + # change mozilla to seamonkey + sed -i -e 's:1.2b):1.0.0):;s:mozilla):seamonkey):' configure.ac + + # disable pyc compiling + mv py-compile py-compile.orig + ln -s $(type -P true) py-compile + + eautoreconf +} + +src_test() { + Xemake check || die "tests failed" +} + +src_install() { + gnome2_src_install + + if use doc; then + insinto /usr/share/doc/${PF} + doins -r examples + fi +} + +pkg_postinst() { + python_version + python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0 +} + +pkg_postrm() { + python_version + python_mod_cleanup "${ROOT}usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0" +} |