summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2002-04-08 16:20:26 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2002-04-08 16:20:26 +0000
commitf84ef2d75c154c3ea44f4da471d920170b81d648 (patch)
tree593965e2ee9812b15fde7c30a1875f7e08901f94 /textproc
parentUpdated to 0.30. (diff)
Added post-install script to register XML::SAX::Expat as a SAX parser.
Approved by: markm
Notes
Notes: svn path=/head/; revision=57449
Diffstat (limited to 'textproc')
-rw-r--r--textproc/p5-XML-SAX-Expat/Makefile3
-rw-r--r--textproc/p5-XML-SAX-Expat/pkg-descr15
-rw-r--r--textproc/p5-XML-SAX-Expat/pkg-install6
3 files changed, 17 insertions, 7 deletions
diff --git a/textproc/p5-XML-SAX-Expat/Makefile b/textproc/p5-XML-SAX-Expat/Makefile
index afda3714b986..575369555199 100644
--- a/textproc/p5-XML-SAX-Expat/Makefile
+++ b/textproc/p5-XML-SAX-Expat/Makefile
@@ -7,12 +7,13 @@
PORTNAME= XML-SAX-Expat
PORTVERSION= 0.30
+PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= XML
PKGNAMEPREFIX= p5-
-MAINTAINER= skv@protey.ru
+MAINTAINER= skv@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/SAX.pm:${PORTSDIR}/textproc/p5-XML-SAX \
diff --git a/textproc/p5-XML-SAX-Expat/pkg-descr b/textproc/p5-XML-SAX-Expat/pkg-descr
index 723bc03b8e19..f092f2af7c58 100644
--- a/textproc/p5-XML-SAX-Expat/pkg-descr
+++ b/textproc/p5-XML-SAX-Expat/pkg-descr
@@ -1,8 +1,11 @@
-XML::SAX consists of several framework classes for using and building
-Perl SAX2 XML parsers, filters, and drivers. It is designed around the
-need to be able to "plug in" different SAX parsers to an application
-without requiring programmer intervention. Those of you familiar with
-the DBI will be right at home. Some of the designs come from the Java
-JAXP specification (SAX part), only without the javaness.
+XML::SAX consists of several framework classes for using and building Perl SAX2
+XML parsers, filters, and drivers. It is designed around the need to be able
+to "plug in" different SAX parsers to an application without requiring
+programmer intervention. Those of you familiar with the DBI will be right at
+home. Some of the designs come from the Java JAXP specification (SAX part),
+only without the javaness.
WWW: http://search.cpan.org/search?dist=XML-SAX-Expat
+
+-- Sergey Skvortsov
+skv@FreeBSD.org
diff --git a/textproc/p5-XML-SAX-Expat/pkg-install b/textproc/p5-XML-SAX-Expat/pkg-install
new file mode 100644
index 000000000000..e733316cf409
--- /dev/null
+++ b/textproc/p5-XML-SAX-Expat/pkg-install
@@ -0,0 +1,6 @@
+#!/usr/bin/perl
+if('POST-INSTALL' eq $ARGV[1]) {
+ eval "use XML::SAX;";
+ die $@ if $@;
+ XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers();
+}