diff options
author | minskim <minskim> | 2004-02-12 02:41:18 +0000 |
---|---|---|
committer | minskim <minskim> | 2004-02-12 02:41:18 +0000 |
commit | 347ae53760e94cdcec6d8c84cb3f48f14d81397c (patch) | |
tree | 62259042251cd59690d2646bd261a80aa9489e24 | |
parent | 4e85cabc1c163ea2780c37e373cd563a72a2f768 (diff) | |
download | pkgsrc-347ae53760e94cdcec6d8c84cb3f48f14d81397c.tar.gz |
Import libpathan-1.2.2 from pkgsrc-wip.
The Pathan project grew out of DecisionSoft's work on XMLScript, an
XML transformation language.
XPath was adopted as a node selection language by XMLScript when the
XPath specification was ratified by the W3C. DecisionSoft's XMLScript
processor is based on Xerces-C, a Document Object Model compliant XML
parser. Pathan therefore was designed from the base up to be fully
compatible with the Xerces parser.
Pathan 1 represents the open sourcing of the XPath component of
DecisionSoft's XMLScript processor. Pathan 1 features a full
implementation of the XPath 1.0 Specification. Pathan 1 implements
the W3C DOM Level 3 XPath Specification (Working Draft February 08
2002) providing a powerful and coherent interface between XPath and
DOM and hence a standardised interface with Xerces.
-rw-r--r-- | textproc/libpathan/DESCR | 15 | ||||
-rw-r--r-- | textproc/libpathan/Makefile | 27 | ||||
-rw-r--r-- | textproc/libpathan/PLIST | 16 | ||||
-rw-r--r-- | textproc/libpathan/buildlink2.mk | 25 | ||||
-rw-r--r-- | textproc/libpathan/buildlink3.mk | 22 | ||||
-rw-r--r-- | textproc/libpathan/distinfo | 6 | ||||
-rw-r--r-- | textproc/libpathan/patches/patch-aa | 13 | ||||
-rw-r--r-- | textproc/libpathan/patches/patch-ab | 33 |
8 files changed, 157 insertions, 0 deletions
diff --git a/textproc/libpathan/DESCR b/textproc/libpathan/DESCR new file mode 100644 index 00000000000..f2da4038369 --- /dev/null +++ b/textproc/libpathan/DESCR @@ -0,0 +1,15 @@ +The Pathan project grew out of DecisionSoft's work on XMLScript, an +XML transformation language. + +XPath was adopted as a node selection language by XMLScript when the +XPath specification was ratified by the W3C. DecisionSoft's XMLScript +processor is based on Xerces-C, a Document Object Model compliant XML +parser. Pathan therefore was designed from the base up to be fully +compatible with the Xerces parser. + +Pathan 1 represents the open sourcing of the XPath component of +DecisionSoft's XMLScript processor. Pathan 1 features a full +implementation of the XPath 1.0 Specification. Pathan 1 implements +the W3C DOM Level 3 XPath Specification (Working Draft February 08 +2002) providing a powerful and coherent interface between XPath and +DOM and hence a standardised interface with Xerces. diff --git a/textproc/libpathan/Makefile b/textproc/libpathan/Makefile new file mode 100644 index 00000000000..e48a66cca16 --- /dev/null +++ b/textproc/libpathan/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/02/12 02:41:18 minskim Exp $ + +DISTNAME= libpathan-1.2-2-src +PKGNAME= ${DISTNAME:S/-2-src/.2/} +CATEGORIES= textproc +MASTER_SITES= http://software.decisionsoft.com/software/pathan-1.2r2/ + +MAINTAINER= minskim@NetBSD.org +HOMEPAGE= http://software.decisionsoft.com/ +COMMENT= Library to parse and evaluate XPath expressions + +BUILD_DEPENDS+= bison-[0-9]*:../../devel/bison + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +WRKSRC= ${WRKDIR}/${DISTNAME:S/-2-src//} +USE_BUILDLINK3= YES +GNU_CONFIGURE= YES +USE_GNU_TOOLS+= make +USE_LIBTOOL= YES +LIBTOOL_OVERRIDE= ${WRKSRC}/libtool + +CONFIGURE_ARGS+= XERCESCROOT=${LOCALBASE} +CONFIGURE_ARGS+= YACC=${LOCALBASE}/bin/bison + +.include "../../textproc/xerces-c/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/libpathan/PLIST b/textproc/libpathan/PLIST new file mode 100644 index 00000000000..614e949cb44 --- /dev/null +++ b/textproc/libpathan/PLIST @@ -0,0 +1,16 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/02/12 02:41:18 minskim Exp $ +include/pathan/Pathan.hpp +include/pathan/XPathEvaluator.hpp +include/pathan/XPathException.hpp +include/pathan/XPathExpression.hpp +include/pathan/XPathNSResolver.hpp +include/pathan/XPathNamespace.hpp +include/pathan/XPathResult.hpp +include/pathan/ext/XPathEvaluatorExt.hpp +lib/libpathan.a +lib/libpathan.la +lib/libpathan.so +lib/libpathan.so.2 +lib/libpathan.so.2.2 +@dirrm include/pathan/ext +@dirrm include/pathan diff --git a/textproc/libpathan/buildlink2.mk b/textproc/libpathan/buildlink2.mk new file mode 100644 index 00000000000..4a755b8b5e3 --- /dev/null +++ b/textproc/libpathan/buildlink2.mk @@ -0,0 +1,25 @@ +# $NetBSD: buildlink2.mk,v 1.1.1.1 2004/02/12 02:41:18 minskim Exp $ +# +# This Makefile fragment is included by packages that use libpathan. +# + +.if !defined(LIBPATHAN_BUILDLINK2_MK) +LIBPATHAN_BUILDLINK2_MK= # defined + +BUILDLINK_PACKAGES+= libpathan +BUILDLINK_DEPENDS.libpathan?= libpathan>=1.2.2 +BUILDLINK_PKGSRCDIR.libpathan?= ../../wip/libpathan + +EVAL_PREFIX+= BUILDLINK_PREFIX.libpathan=libpathan +BUILDLINK_PREFIX.libpathan_DEFAULT= ${LOCALBASE} +BUILDLINK_FILES.libpathan+= include/pathan/*.hpp +BUILDLINK_FILES.libpathan+= include/pathan/ext/*.hpp +BUILDLINK_FILES.libpathan+= lib/libpathan.* + +.include "../../textproc/xerces-c/buildlink2.mk" + +BUILDLINK_TARGETS+= libpathan-buildlink + +libpathan-buildlink: _BUILDLINK_USE + +.endif # LIBPATHAN_BUILDLINK2_MK diff --git a/textproc/libpathan/buildlink3.mk b/textproc/libpathan/buildlink3.mk new file mode 100644 index 00000000000..a6f65249588 --- /dev/null +++ b/textproc/libpathan/buildlink3.mk @@ -0,0 +1,22 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/02/12 02:41:18 minskim Exp $ +# +# This Makefile fragment is included by packages that use libpathan. +# + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +LIBPATHAN_BUILDLINK3_MK:= ${LIBPATHAN_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= libpathan +.endif + +.if !empty(LIBPATHAN_BUILDLINK3_MK:M+) +BUILDLINK_PACKAGES+= libpathan +BUILDLINK_DEPENDS.libpathan+= libpathan>=1.2.2 +BUILDLINK_PKGSRCDIR.libpathan?= ../../wip/libpathan + +.include "../../textproc/xerces-c/buildlink3.mk" + +.endif # LIBPATHAN_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/textproc/libpathan/distinfo b/textproc/libpathan/distinfo new file mode 100644 index 00000000000..6b35bfd6296 --- /dev/null +++ b/textproc/libpathan/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/02/12 02:41:18 minskim Exp $ + +SHA1 (libpathan-1.2-2-src.tar.gz) = 7354de9e5ffd192366b498ee99103899b0995247 +Size (libpathan-1.2-2-src.tar.gz) = 547460 bytes +SHA1 (patch-aa) = 43656156022b24ece265b161703c3f7fc9dfa90f +SHA1 (patch-ab) = 5c0e91f5ce235ed12cacff207dc56097082000d4 diff --git a/textproc/libpathan/patches/patch-aa b/textproc/libpathan/patches/patch-aa new file mode 100644 index 00000000000..70d657b6176 --- /dev/null +++ b/textproc/libpathan/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/02/12 02:41:18 minskim Exp $ + +--- configure.orig 2003-08-28 08:11:54.000000000 -0500 ++++ configure +@@ -1506,7 +1506,7 @@ echo "$as_me: error: Please set \$XERCES + fi + + xerces_include=${XERCESCROOT}/include +-xerces_src=${XERCESCROOT}/src ++xerces_src=${XERCESCROOT}/include + xerces_lib=${XERCESCROOT}/lib + + diff --git a/textproc/libpathan/patches/patch-ab b/textproc/libpathan/patches/patch-ab new file mode 100644 index 00000000000..31e706e1b5d --- /dev/null +++ b/textproc/libpathan/patches/patch-ab @@ -0,0 +1,33 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/02/12 02:41:18 minskim Exp $ + +--- src/defs/NumUtils.cpp.orig 2003-08-12 04:38:55.000000000 -0500 ++++ src/defs/NumUtils.cpp +@@ -3,7 +3,7 @@ + * Please see LICENSE.TXT for more information. + */ + #include "NumUtils.hpp" +-#include <strstream> ++#include <sstream> + #include <stdio.h> + #include <stdlib.h> + #include <string.h> +@@ -100,16 +100,16 @@ XMLCh *NumUtils::doubleAsString(XSFloat + } else if(NumUtils::isInfinite(d) && NumUtils::isNegative(d)) { + result = XERCES_CPP_NAMESPACE_QUALIFIER XMLString::transcode("-Infinity"); + } else { +- strstream number; ++ stringstream number; + + /* "precision" sets the fractional part to the maximum possible. */ + number.precision(15); //XXX: This might be 16.. + + number << d << ends; + +- result = XERCES_CPP_NAMESPACE_QUALIFIER XMLString::transcode(number.str()); ++ result = XERCES_CPP_NAMESPACE_QUALIFIER XMLString::transcode(number.str().c_str()); + +- number.freeze(0); ++ //number.freeze(0); + + // If "-0" then "0" + if(result[0]==XERCES_CPP_NAMESPACE_QUALIFIER chDash && result[1]==XERCES_CPP_NAMESPACE_QUALIFIER chDigit_0 && result[2]==XERCES_CPP_NAMESPACE_QUALIFIER chNull ) { |