# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit perl-module DESCRIPTION="This module wraps the Mozilla DOM interface in Perl." HOMEPAGE="http://search.cpan.org/~slanning/Mozilla-DOM/" SRC_URI="mirror://cpan/authors/id/S/SL/SLANNING/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="firefox seamonkey" RDEPEND="firefox? ( >=www-client/mozilla-firefox-2.0 ) !firefox? ( seamonkey? ( www-client/seamonkey ) )" DEPEND="${RDEPEND} >=dev-perl/extutils-depends-0.205 >=dev-perl/extutils-pkgconfig-1.07" src_unpack() { unpack ${A} epatch "${FILESDIR}/${PV}_Makefile.incdir_necko.diff" if use firefox || use seamonkey ; then if use seamonkey ; then epatch "${FILESDIR}/${PV}_Makefile.add_seamonkey.diff" fi else die "Need 'firefox' or 'semonkey' installed and set in USE flags!" fi } pkg_postinst() { ewarn "For this module to be useful, you'll probably also want" ewarn "to (re)install Gtk2::MozEmbed *after* you install this." }