# Copyright 1999-2007 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.14.2.ebuild,v 1.2 2007/02/15 20:05:48 dev-zero Exp $ NEED_PYTHON=2.4 WANT_AUTOCONF=latest WANT_AUTOMAKE=1.9 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" 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.6* firefox? ( >=www-client/mozilla-firefox-1.0 ) !firefox? ( seamonkey? ( >=www-client/seamonkey-1.0 ) ) >=gnome-extra/libgda-1.2.0 >=app-text/gtkspell-2" DEPEND="${RDEPEND} dev-util/pkgconfig" DOCS="AUTHORS ChangeLog NEWS README" src_unpack() { gnome2_src_unpack # change mozilla to seamonkey sed -i -e 's:1.2b):1.0.0):;s:mozilla):seamonkey):' configure.ac eautoreconf } src_compile() { # only controls linking, can't disable w/o a patch :) if use firefox; then G2CONF="${G2CONF} --with-gtkmozembed=firefox" else use seamonkey && G2CONF="${G2CONF} --with-gtkmozembed=seamonkey" fi gnome2_src_configure ${G2CONF} emake || die "make failed!" } src_test() { Xmake 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 "${ROOT}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" }