# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ EAPI="1" G_PY_PN="gnome-python-extras" inherit confutils gnome-python-common PVP="$(get_version_component_range 1-2)" SRC_URI="mirror://gnome/sources/${G_PY_PN}/${PVP}/${G_PY_PN}-${PV}.tar.bz2 mirror://gentoo/${G_PY_PN}-${PV}-split.patch.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" IUSE="doc firefox seamonkey +xulrunner" RDEPEND="xulrunner? ( =net-libs/xulrunner-1.9* ) !xulrunner? ( firefox? ( =www-client/mozilla-firefox-2* ) ) !xulrunner? ( !firefox? ( seamonkey? ( =www-client/seamonkey-1* ) ) )" DEPEND="${RDEPEND}" pkg_setup() { gnome-python-common_pkg_setup confutils_require_any "firefox" "seamonkey" "xulrunner" 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() { gnome-python-common_src_unpack # change mozilla to seamonkey sed -e 's:1.2b):1.0.0):;s:mozilla):seamonkey):' -i configure.ac epatch "${WORKDIR}/${G_PY_PN}-${PV}-split.patch" # Build against xulrunner-1.9 epatch "${FILESDIR}"/${PN}-${PV}-xulrunner-1.9.patch epatch "${FILESDIR}"/libtool-2.patch eautoreconf }