# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit perl-module DESCRIPTION="SAX2 Driver for Expat" HOMEPAGE="http://search.cpan.org/~bjoern/${PN}/" SRC_URI="mirror://cpan/authors/id/B/BJ/BJOERN/${P}.tar.gz" LICENSE="|| ( Artistic GPL-2 )" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=dev-perl/XML-SAX-0.15-r1 >=dev-perl/XML-NamespaceSupport-1.09 dev-perl/XML-Parser dev-lang/perl" src_compile() { export SKIP_SAX_INSTALL=1 perl-module_src_compile } pkg_postinst() { perl-module_pkg_postinst perl -MXML::SAX \ -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()" \ || die "error adding parser" }