summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2003-10-14 16:14:12 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2003-10-14 16:14:12 +0000
commite01868d0f5deb8b79efdafe011f0da1c5bf8b8f4 (patch)
treedcb6c19a4ecebed6dd0aa4ea152cd45490822873 /textproc
parentUpdate to 0.9. (diff)
Add p5-XML-STX 0.42, a pure Perl STX processor.
Notes
Notes: svn path=/head/; revision=91217
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/p5-XML-STX/Makefile50
-rw-r--r--textproc/p5-XML-STX/distinfo1
-rw-r--r--textproc/p5-XML-STX/pkg-descr9
-rw-r--r--textproc/p5-XML-STX/pkg-plist24
5 files changed, 85 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 9c58b42e58f5..b89a9c591ec8 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -311,6 +311,7 @@
SUBDIR += p5-XML-SAX-Simple
SUBDIR += p5-XML-SAX-Writer
SUBDIR += p5-XML-SAXDriver-Sablotron
+ SUBDIR += p5-XML-STX
SUBDIR += p5-XML-Sablotron
SUBDIR += p5-XML-Schematron
SUBDIR += p5-XML-Simple
diff --git a/textproc/p5-XML-STX/Makefile b/textproc/p5-XML-STX/Makefile
new file mode 100644
index 000000000000..68a4f3b574bd
--- /dev/null
+++ b/textproc/p5-XML-STX/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: XML-STX
+# Date created: 12 October 2003
+# Whom: Sergey Skvortsov <skv@protey.ru>
+#
+# $FreeBSD$
+#
+
+PORTNAME= XML-STX
+PORTVERSION= 0.42
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
+MASTER_SITE_SUBDIR= XML
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= skv@FreeBSD.org
+COMMENT= A pure Perl STX processor
+
+BUILD_DEPENDS= ${SITE_PERL}/XML/SAX.pm:${PORTSDIR}/textproc/p5-XML-SAX \
+ ${SITE_PERL}/${PERL_ARCH}/Clone.pm:${PORTSDIR}/devel/p5-Clone \
+ ${SITE_PERL}/XML/NamespaceSupport.pm:${PORTSDIR}/textproc/p5-XML-NamespaceSupport
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= XML::STX.3 XML::STX::Base.3 XML::STX::Buffer.3 \
+ XML::STX::Functions.3 XML::STX::Parser.3 XML::STX::Runtime.3 \
+ XML::STX::STXPath.3 XML::STX::Stylesheet.3 XML::STX::TrAX.3 \
+ XML::STX::Writer.3
+
+post-extract:
+ @${MKDIR} ${WRKSRC}/scripts
+ @${MV} ${WRKSRC}/stx*.pl ${WRKSRC}/scripts
+
+post-patch:
+ @${PERL} -pi -e 's!(?=stx\w+\.pl)!scripts/!g' ${WRKSRC}/Makefile.PL
+
+post-configure:
+ @${PERL} -pi -e 's/^(POD2MAN_EXE.*)$$/\1 --lax/;' ${WRKSRC}/Makefile
+
+post-install:
+.ifndef(NOPORTDOCS)
+ @${ECHO_MSG} "===> Installing additional documentation for ${PKGNAME}"
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
+ @${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/textproc/p5-XML-STX/distinfo b/textproc/p5-XML-STX/distinfo
new file mode 100644
index 000000000000..c1a137f89940
--- /dev/null
+++ b/textproc/p5-XML-STX/distinfo
@@ -0,0 +1 @@
+MD5 (XML-STX-0.42.tar.gz) = 312f97ac14f397ba3d7345c563191900
diff --git a/textproc/p5-XML-STX/pkg-descr b/textproc/p5-XML-STX/pkg-descr
new file mode 100644
index 000000000000..ea58dbd8581d
--- /dev/null
+++ b/textproc/p5-XML-STX/pkg-descr
@@ -0,0 +1,9 @@
+XML::STX is a pure Perl implementation of STX processor. Streaming
+Transformations for XML (STX) is a one-pass transformation language for
+XML documents that builds on the Simple API for XML (SAX).
+
+WWW: http://search.cpan.org/dist/XML-STX/
+WWW: http://stx.sourceforge.net/
+
+-- Sergey Skvortsov
+skv@FreeBSD.org
diff --git a/textproc/p5-XML-STX/pkg-plist b/textproc/p5-XML-STX/pkg-plist
new file mode 100644
index 000000000000..56e94ed278a7
--- /dev/null
+++ b/textproc/p5-XML-STX/pkg-plist
@@ -0,0 +1,24 @@
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/STX/.packlist
+bin/stxcmd.pl
+bin/stxview.pl
+%%SITE_PERL%%/XML/STX.pm
+%%SITE_PERL%%/XML/STX/Base.pm
+%%SITE_PERL%%/XML/STX/Buffer.pm
+%%SITE_PERL%%/XML/STX/Functions.pm
+%%SITE_PERL%%/XML/STX/Parser.pm
+%%SITE_PERL%%/XML/STX/Runtime.pm
+%%SITE_PERL%%/XML/STX/STXPath.pm
+%%SITE_PERL%%/XML/STX/Stylesheet.pm
+%%SITE_PERL%%/XML/STX/TrAX.pm
+%%SITE_PERL%%/XML/STX/Writer.pm
+@dirrm %%SITE_PERL%%/XML/STX
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/XML/STX
+@unexec rmdir %D/%%SITE_PERL%%/XML 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/XML 2>/dev/null || true
+%%PORTDOCS%%%%EXAMPLESDIR%%/stx-filter.pl
+%%PORTDOCS%%%%EXAMPLESDIR%%/tester.pl
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
+%%PORTDOCS%%%%DOCSDIR%%/STX.html
+%%PORTDOCS%%%%DOCSDIR%%/TrAXref.html
+%%PORTDOCS%%%%DOCSDIR%%/TrAXref.pod
+%%PORTDOCS%%@dirrm %%DOCSDIR%%