pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/libpathan Import libpathan-1.2.2 from pkgsrc-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c08c32ca7c9
branches:  trunk
changeset: 468273:7c08c32ca7c9
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu Feb 12 02:41:18 2004 +0000

description:
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.

diffstat:

 textproc/libpathan/DESCR            |  15 +++++++++++++++
 textproc/libpathan/Makefile         |  27 +++++++++++++++++++++++++++
 textproc/libpathan/PLIST            |  16 ++++++++++++++++
 textproc/libpathan/buildlink2.mk    |  25 +++++++++++++++++++++++++
 textproc/libpathan/buildlink3.mk    |  22 ++++++++++++++++++++++
 textproc/libpathan/distinfo         |   6 ++++++
 textproc/libpathan/patches/patch-aa |  13 +++++++++++++
 textproc/libpathan/patches/patch-ab |  33 +++++++++++++++++++++++++++++++++
 8 files changed, 157 insertions(+), 0 deletions(-)

diffs (189 lines):

diff -r 79f82944dc7e -r 7c08c32ca7c9 textproc/libpathan/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libpathan/DESCR  Thu Feb 12 02:41:18 2004 +0000
@@ -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 -r 79f82944dc7e -r 7c08c32ca7c9 textproc/libpathan/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libpathan/Makefile       Thu Feb 12 02:41:18 2004 +0000
@@ -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@localhost
+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 -r 79f82944dc7e -r 7c08c32ca7c9 textproc/libpathan/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libpathan/PLIST  Thu Feb 12 02:41:18 2004 +0000
@@ -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 -r 79f82944dc7e -r 7c08c32ca7c9 textproc/libpathan/buildlink2.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libpathan/buildlink2.mk  Thu Feb 12 02:41:18 2004 +0000
@@ -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 -r 79f82944dc7e -r 7c08c32ca7c9 textproc/libpathan/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libpathan/buildlink3.mk  Thu Feb 12 02:41:18 2004 +0000
@@ -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 -r 79f82944dc7e -r 7c08c32ca7c9 textproc/libpathan/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libpathan/distinfo       Thu Feb 12 02:41:18 2004 +0000
@@ -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 -r 79f82944dc7e -r 7c08c32ca7c9 textproc/libpathan/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libpathan/patches/patch-aa       Thu Feb 12 02:41:18 2004 +0000
@@ -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 -r 79f82944dc7e -r 7c08c32ca7c9 textproc/libpathan/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/libpathan/patches/patch-ab       Thu Feb 12 02:41:18 2004 +0000
@@ -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 ) {



Home | Main Index | Thread Index | Old Index