summaryrefslogtreecommitdiff
path: root/textproc/p5-XML-Xerces
diff options
context:
space:
mode:
authorjlam <jlam>2003-06-23 08:46:06 +0000
committerjlam <jlam>2003-06-23 08:46:06 +0000
commit3481bccc089e98b1f7c44d6cb20ce218aaebfbbf (patch)
treeaf5e196f157964c77624c08ca29874c51c46223a /textproc/p5-XML-Xerces
parentcba1ed9552dfe2edf42b3f5e4d14ed663a13e03e (diff)
downloadpkgsrc-3481bccc089e98b1f7c44d6cb20ce218aaebfbbf.tar.gz
Rename textproc/xerces-p to textproc/p5-XML-Xerces.
Diffstat (limited to 'textproc/p5-XML-Xerces')
-rw-r--r--textproc/p5-XML-Xerces/DESCR18
-rw-r--r--textproc/p5-XML-Xerces/Makefile28
-rw-r--r--textproc/p5-XML-Xerces/PLIST1
-rw-r--r--textproc/p5-XML-Xerces/distinfo5
-rw-r--r--textproc/p5-XML-Xerces/patches/patch-aa24
5 files changed, 76 insertions, 0 deletions
diff --git a/textproc/p5-XML-Xerces/DESCR b/textproc/p5-XML-Xerces/DESCR
new file mode 100644
index 00000000000..967c1e2f6c1
--- /dev/null
+++ b/textproc/p5-XML-Xerces/DESCR
@@ -0,0 +1,18 @@
+The Xerces Perl project has created a Perl module, Xerces.pm, as the Perl
+API to the Apache project's Xerces XML parser. It is implemented using
+the Xerces C++ API, and it provides access to all of the C++ API from
+Perl.
+
+Because it is based on Xerces-C, Xerces.pm provides a validating XML parser
+that makes it easy to give your application the ability to read and write
+XML data. A shared library is provided for parsing, generating, manipulating,
+and validating XML documents. Xerces.pm is faithful to the XML 1.0
+recommendation and associated standards ( DOM 1.0, DOM 2.0. SAX 1.0, SAX
+2.0, Namespaces), The parser provides high performance, modularity, and
+scalability. Source code, samples and API documentation are provided with
+the parser.
+
+The majority of the API is created automatically using Simplified Wrapper
+Interface Generator (SWIG). However, care has been taken to make most
+method invocations natural to perl programmers, so a number of rough C++
+edges have been smoothed over (See the Special Perl API Features section).
diff --git a/textproc/p5-XML-Xerces/Makefile b/textproc/p5-XML-Xerces/Makefile
new file mode 100644
index 00000000000..29c36acee61
--- /dev/null
+++ b/textproc/p5-XML-Xerces/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/06/23 08:46:06 jlam Exp $
+#
+
+DISTNAME= XML-Xerces-1.7.0-3
+PKGNAME= p5-${DISTNAME:C/-([0-9]*)$/.\1/}
+CATEGORIES= textproc
+MASTER_SITES= http://xml.apache.org/dist/xerces-p/stable/archives/
+
+MAINTAINER= manu@netbsd.org
+HOMEPAGE= http://xml.apache.org/xerces-p/
+COMMENT= Validating XML parser API for Perl
+
+CONFLICTS+= XML-Xerces-[0-9]*
+
+USE_BUILDLINK2= YES
+USE_GMAKE= YES
+PERL5_REQD= 5.6.0
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/XML/Xerces/.packlist
+
+MAKE_ENV+= XERCESCROOT="${BUILDLINK_PREFIX.xerces-c}"
+MAKE_ENV+= ICUROOT="${BUILDLINK_PREFIX.icu}"
+
+# Xerces-C is built unthreaded in pkgsrc (for now).
+BUILDLINK_TRANSFORM+= s:-lpthread:
+
+.include "../../lang/perl5/module.mk"
+.include "../../textproc/xerces-c/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/p5-XML-Xerces/PLIST b/textproc/p5-XML-Xerces/PLIST
new file mode 100644
index 00000000000..b7012ff6e4e
--- /dev/null
+++ b/textproc/p5-XML-Xerces/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/06/23 08:46:06 jlam Exp $
diff --git a/textproc/p5-XML-Xerces/distinfo b/textproc/p5-XML-Xerces/distinfo
new file mode 100644
index 00000000000..0b92cc3d2bb
--- /dev/null
+++ b/textproc/p5-XML-Xerces/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/06/23 08:46:06 jlam Exp $
+
+SHA1 (XML-Xerces-1.7.0-3.tar.gz) = dc86f655be431a0900dbb632bb86d59118bf54ea
+Size (XML-Xerces-1.7.0-3.tar.gz) = 148103 bytes
+SHA1 (patch-aa) = ad9dbf00b84cdad0ea5357ecb2261b65a0f4026c
diff --git a/textproc/p5-XML-Xerces/patches/patch-aa b/textproc/p5-XML-Xerces/patches/patch-aa
new file mode 100644
index 00000000000..9e8c297e16d
--- /dev/null
+++ b/textproc/p5-XML-Xerces/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/06/23 08:46:06 jlam Exp $
+
+--- Makefile.PL.orig Fri Oct 11 14:25:00 2002
++++ Makefile.PL
+@@ -4,6 +4,7 @@ use Env qw(XERCES_LIB
+ XERCES_INCLUDE
+ XERCESCROOT
+ XERCES_DEVEL
++ ICUROOT
+ SWIG);
+ use strict;
+ use vars qw($INCLUDES);
+@@ -130,6 +131,11 @@ my $XERCES_VERSION = "$XERCES_LIB_VERSIO
+ $XERCES_LIB_VERSION =~ s/\./_/g;
+ my $LIBXERCES = "-lxerces-c$XERCES_LIB_VERSION";
+ $LIBS .= " $LIBXERCES";
++
++if (defined $ICUROOT) {
++ my $ICULIBS = "-L$ICUROOT/lib -licudata -licuuc -lm";
++ $LIBS .= " $ICULIBS";
++}
+
+ # now we ensure that libxerces is in the library path
+ # if not we die()