aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-09-08 10:28:24 +0800
committeredwin <edwin@FreeBSD.org>2003-09-08 10:28:24 +0800
commitb966b84669363811f7c3c0379213488702df7661 (patch)
tree574924547390c98981a6384a3aabf2a7b4d8c5eb /devel
parent439894a11ba4a0aee6cba949bbe3fb3dbca5b85e (diff)
downloadfreebsd-ports-graphics-b966b84669363811f7c3c0379213488702df7661.tar.gz
freebsd-ports-graphics-b966b84669363811f7c3c0379213488702df7661.tar.zst
freebsd-ports-graphics-b966b84669363811f7c3c0379213488702df7661.zip
New port: PEAR class provided an XPath/DOM XML manipulation
This is an XML parser based on PHP's built-in xml extension. It supports two basic modes of operation: "func" and "event". In "func" mode, it will look for a function named after each element (xmltag_ELEMENT for start tags and xmltag_ELEMENT_ for end tags), and in "event" mode it uses a set of generic callbacks. PR: ports/56446 Submitted by: Alex Miller <asm@asm.kiev.ua>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/pear-XML_XPath/Makefile37
-rw-r--r--devel/pear-XML_XPath/distinfo1
-rw-r--r--devel/pear-XML_XPath/pkg-descr7
-rw-r--r--devel/pear-XML_XPath/pkg-plist9
5 files changed, 55 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 0c11f9f4533..3157704fef6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -806,6 +806,7 @@
SUBDIR += pear-XML_Parser
SUBDIR += pear-XML_Tree
SUBDIR += pear-XML_Util
+ SUBDIR += pear-XML_XPath
SUBDIR += pedisassem
SUBDIR += perforce
SUBDIR += perltidy
diff --git a/devel/pear-XML_XPath/Makefile b/devel/pear-XML_XPath/Makefile
new file mode 100644
index 00000000000..c5eaeec4d1a
--- /dev/null
+++ b/devel/pear-XML_XPath/Makefile
@@ -0,0 +1,37 @@
+# Ports collection makefile for: pear-XML_XPath
+# Date created: 04 September 2003
+# Whom: Alex Miller (<asm@asm.kiev.ua>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= XML_XPath
+PORTVERSION= 1.2
+CATEGORIES= devel www
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= PEAR class provided an XPath/DOM XML manipulation
+
+BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
+
+MANIFEST= common.php error.php result.php
+
+do-install:
+ @${MKDIR} ${PEARDIR}/XPath
+ @${CP} -p ${WRKSRC}/XPath.php ${PEARDIR}
+.for FILE in ${MANIFEST}
+ @${CP} -p ${WRKSRC}/XPath/${FILE} ${PEARDIR}/XPath
+.endfor
+ @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/XPath.php
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/XPath
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${CP} -p ${WRKSRC}/docs/XML_XPath_example.php ${DOCSDIR}
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/pear-XML_XPath/distinfo b/devel/pear-XML_XPath/distinfo
new file mode 100644
index 00000000000..b2d4a043c49
--- /dev/null
+++ b/devel/pear-XML_XPath/distinfo
@@ -0,0 +1 @@
+MD5 (PEAR/XML_XPath-1.2.tgz) = 71362e0ef17bfd56c63c3955d5ce91b8
diff --git a/devel/pear-XML_XPath/pkg-descr b/devel/pear-XML_XPath/pkg-descr
new file mode 100644
index 00000000000..c789151c4d8
--- /dev/null
+++ b/devel/pear-XML_XPath/pkg-descr
@@ -0,0 +1,7 @@
+This is an XML parser based on PHP's built-in xml extension. It
+supports two basic modes of operation: "func" and "event". In "func"
+mode, it will look for a function named after each element
+(xmltag_ELEMENT for start tags and xmltag_ELEMENT_ for end tags), and
+in "event" mode it uses a set of generic callbacks.
+
+WWW: http://pear.php.net/package-info.php?package=XML_Parser
diff --git a/devel/pear-XML_XPath/pkg-plist b/devel/pear-XML_XPath/pkg-plist
new file mode 100644
index 00000000000..1cfe7c12589
--- /dev/null
+++ b/devel/pear-XML_XPath/pkg-plist
@@ -0,0 +1,9 @@
+%%PEARDIR%%/XPath.php
+%%PEARDIR%%/XPath/common.php
+%%PEARDIR%%/XPath/error.php
+%%PEARDIR%%/XPath/result.php
+%%PKGREGDIR%%/package.xml
+%%PORTDOCS%%%%PEARDIR%%/docs/XML_XPath/XML_XPath_example.php
+@dirrm %%PEARDIR%%/XPath
+@dirrm %%PKGREGDIR%%
+%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/XML_XPath