summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2007-06-29 14:33:11 +0000
committerMichael Cummings <mcummings@gentoo.org>2007-06-29 14:33:11 +0000
commit4e668d72efb8c3770036708af0a9bb65e9e2a073 (patch)
treeeb9d83777806c92ce6e77095ca4d1f1ae23dde8f /dev-perl/XML-SAX/XML-SAX-0.16.ebuild
parentVersion bump (diff)
downloadgentoo-2-4e668d72efb8c3770036708af0a9bb65e9e2a073.tar.gz
gentoo-2-4e668d72efb8c3770036708af0a9bb65e9e2a073.tar.bz2
gentoo-2-4e668d72efb8c3770036708af0a9bb65e9e2a073.zip
Version bump
(Portage version: 2.1.3_rc5)
Diffstat (limited to 'dev-perl/XML-SAX/XML-SAX-0.16.ebuild')
-rw-r--r--dev-perl/XML-SAX/XML-SAX-0.16.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-perl/XML-SAX/XML-SAX-0.16.ebuild b/dev-perl/XML-SAX/XML-SAX-0.16.ebuild
new file mode 100644
index 000000000000..4436717dd09b
--- /dev/null
+++ b/dev-perl/XML-SAX/XML-SAX-0.16.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-perl/XML-SAX/XML-SAX-0.16.ebuild,v 1.1 2007/06/29 14:33:11 mcummings Exp $
+
+inherit perl-module eutils
+
+DESCRIPTION="Perl module for using and building Perl SAX2 XML parsers, filters, and drivers"
+SRC_URI="mirror://cpan/authors/id/G/GR/GRANTM/${P}.tar.gz"
+HOMEPAGE="http://search.cpan.org/~grantm/"
+
+LICENSE="Artistic"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND=">=dev-perl/XML-NamespaceSupport-1.04
+ >=dev-libs/libxml2-2.4.1
+ >=sys-apps/sed-4
+ dev-lang/perl"
+
+SRC_TEST="do"
+
+src_unpack() {
+ local installvendorlib
+ eval $(perl '-V:installvendorlib')
+ unpack ${A}
+ cd "${S}"
+ sed -i \
+ -e 's/if (\$write_ini_ok)/if (0 \&\& $write_ini_ok)/' \
+ Makefile.PL || die
+ epatch "${FILESDIR}"/encodings.patch
+}
+
+pkg_postinst() {
+ perl-module_pkg_postinst
+ perl -MXML::SAX \
+ -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()" \
+ || die "error adding parser"
+}
+