summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2012-04-15 01:50:08 +0000
committerobache <obache@pkgsrc.org>2012-04-15 01:50:08 +0000
commit3b1dd61f0d384564d74c3a539c1d1b2578c335b7 (patch)
tree77e5f835f6d75b2826dc2f9edf29d76b614619af /textproc
parent9aa92fd6fccb32711ccb26def956e579ea696169 (diff)
downloadpkgsrc-3b1dd61f0d384564d74c3a539c1d1b2578c335b7.tar.gz
Import p5-XML-SAX-ExpatXS-1.31 as textproc/p5-XML-SAX-ExpatXS.
Based on packaged by tnozaki@. This module is a direct XS implementation of Perl SAX parser using Expat. XML::SAX::Expat is implemented as a layer over XML::Parser.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/p5-XML-SAX-ExpatXS/DEINSTALL11
-rw-r--r--textproc/p5-XML-SAX-ExpatXS/DESCR3
-rw-r--r--textproc/p5-XML-SAX-ExpatXS/INSTALL11
-rw-r--r--textproc/p5-XML-SAX-ExpatXS/Makefile28
-rw-r--r--textproc/p5-XML-SAX-ExpatXS/distinfo6
-rw-r--r--textproc/p5-XML-SAX-ExpatXS/patches/patch-Makefile.PL15
6 files changed, 74 insertions, 0 deletions
diff --git a/textproc/p5-XML-SAX-ExpatXS/DEINSTALL b/textproc/p5-XML-SAX-ExpatXS/DEINSTALL
new file mode 100644
index 00000000000..63fb727726d
--- /dev/null
+++ b/textproc/p5-XML-SAX-ExpatXS/DEINSTALL
@@ -0,0 +1,11 @@
+# $NetBSD: DEINSTALL,v 1.1.1.1 2012/04/15 01:50:08 obache Exp $
+
+case ${STAGE} in
+
+DEINSTALL)
+ ${PERL5} -I@PERL5_INSTALLVENDORLIB@ -MXML::SAX -e "XML::SAX->remove_parser(q(XML::SAX::ExpatXS))->save_parsers()"
+ ${ECHO} "Removed parser from XML::SAX registry."
+ ;;
+
+esac
+
diff --git a/textproc/p5-XML-SAX-ExpatXS/DESCR b/textproc/p5-XML-SAX-ExpatXS/DESCR
new file mode 100644
index 00000000000..3bbbd688f28
--- /dev/null
+++ b/textproc/p5-XML-SAX-ExpatXS/DESCR
@@ -0,0 +1,3 @@
+This module is a direct XS implementation of Perl SAX parser
+using Expat. XML::SAX::Expat is implemented as a layer over
+XML::Parser.
diff --git a/textproc/p5-XML-SAX-ExpatXS/INSTALL b/textproc/p5-XML-SAX-ExpatXS/INSTALL
new file mode 100644
index 00000000000..a40d5c23071
--- /dev/null
+++ b/textproc/p5-XML-SAX-ExpatXS/INSTALL
@@ -0,0 +1,11 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2012/04/15 01:50:08 obache Exp $
+
+case ${STAGE} in
+
+POST-INSTALL)
+ ${PERL5} -I@PERL5_INSTALLVENDORLIB@ -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::ExpatXS))->save_parsers()"
+ ${ECHO} "Added parser to XML::SAX registry."
+ ;;
+
+esac
+
diff --git a/textproc/p5-XML-SAX-ExpatXS/Makefile b/textproc/p5-XML-SAX-ExpatXS/Makefile
new file mode 100644
index 00000000000..c38d9a60e8f
--- /dev/null
+++ b/textproc/p5-XML-SAX-ExpatXS/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/04/15 01:50:08 obache Exp $
+#
+
+DISTNAME= XML-SAX-ExpatXS-1.31
+PKGNAME= p5-${DISTNAME}
+SVR4_PKGNAME= p5xsx
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=XML/}
+
+MAINTAINER= tnozaki@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/XML-SAX-ExpatXS/
+COMMENT= Perl SAX 2 XS extension to Expat parser
+LICENSE= ${PERL5_LICENSE}
+
+DEPENDS+= p5-XML-SAX>=0.13:../../textproc/p5-XML-SAX
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PERL5_PACKLIST= auto/XML/SAX/ExpatXS/.packlist
+MAKE_PARAMS+= EXPATLIBPATH=${BUILDLINK_PREFIX.expat}/lib
+MAKE_PARAMS+= EXPATINCPATH=${BUILDLINK_PREFIX.expat}/include
+
+FILES_SUBST+= PERL5_INSTALLVENDORLIB=${PERL5_INSTALLVENDORLIB:Q}
+
+.include "../../lang/perl5/module.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/p5-XML-SAX-ExpatXS/distinfo b/textproc/p5-XML-SAX-ExpatXS/distinfo
new file mode 100644
index 00000000000..38bead9a92a
--- /dev/null
+++ b/textproc/p5-XML-SAX-ExpatXS/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/04/15 01:50:08 obache Exp $
+
+SHA1 (XML-SAX-ExpatXS-1.31.tar.gz) = d21f226a024f802d37ee04730d4fff88007d70ba
+RMD160 (XML-SAX-ExpatXS-1.31.tar.gz) = c3744680c34fea258c9a227a7d3cfccfebd608c5
+Size (XML-SAX-ExpatXS-1.31.tar.gz) = 170540 bytes
+SHA1 (patch-Makefile.PL) = a8baf01fc0551c3367c6db787a72fabb9823a892
diff --git a/textproc/p5-XML-SAX-ExpatXS/patches/patch-Makefile.PL b/textproc/p5-XML-SAX-ExpatXS/patches/patch-Makefile.PL
new file mode 100644
index 00000000000..6e1a695ec4b
--- /dev/null
+++ b/textproc/p5-XML-SAX-ExpatXS/patches/patch-Makefile.PL
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile.PL,v 1.1.1.1 2012/04/15 01:50:08 obache Exp $
+
+* registration is prepared by pkgsrc INSTALL/DEINSTALL script
+
+--- Makefile.PL.orig 2007-07-02 07:59:45.000000000 +0000
++++ Makefile.PL
+@@ -103,7 +103,7 @@ WriteMakefile(
+ sub MY::install {
+ package MY;
+ my $script = shift->SUPER::install(@_);
+- if (ExtUtils::MakeMaker::prompt("Do you want to alter ParserDetails.ini?", "Y") =~ /^y/i) {
++ if (ExtUtils::MakeMaker::prompt("Do you want to alter ParserDetails.ini?", "N") =~ /^y/i) {
+ $script =~ s/install :: (.*)$/install :: $1 install_expat_xs/m;
+ $script .= <<"INSTALL";
+