diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-08 00:29:37 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-08 00:29:37 +0000 |
commit | 4c28ca343d11b2197a996ae2a73830e950028667 (patch) | |
tree | 5ecf5a5ad0cca5dac0d94aa563a337129d951948 /devel | |
parent | New port: PEAR XML utility class (diff) |
New port: PEAR XML parsing class based on PHP's bundled expat
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/56361
Submitted by: Alex Miller <asm@asm.kiev.ua>
Notes
Notes:
svn path=/head/; revision=88708
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/pear-XML_Parser/Makefile | 36 | ||||
-rw-r--r-- | devel/pear-XML_Parser/distinfo | 1 | ||||
-rw-r--r-- | devel/pear-XML_Parser/pkg-descr | 7 | ||||
-rw-r--r-- | devel/pear-XML_Parser/pkg-plist | 12 |
5 files changed, 57 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 94c15c00e874..6f0a3a04f12b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -801,6 +801,7 @@ SUBDIR += pear-HTML_Template_IT SUBDIR += pear-I18N SUBDIR += pear-PEAR + SUBDIR += pear-XML_Parser SUBDIR += pear-XML_Util SUBDIR += pedisassem SUBDIR += perforce diff --git a/devel/pear-XML_Parser/Makefile b/devel/pear-XML_Parser/Makefile new file mode 100644 index 000000000000..18ad5207da03 --- /dev/null +++ b/devel/pear-XML_Parser/Makefile @@ -0,0 +1,36 @@ +# Ports collection makefile for: pear-XML_Parser +# Date created: 03 September 2003 +# Whom: Alex Miller (<asm@asm.kiev.ua>) +# +# $FreeBSD$ +# + +PORTNAME= XML_Parser +PORTVERSION= 1.0.1 +CATEGORIES= devel www + +MAINTAINER= ports@FreeBSD.org +COMMENT= PEAR XML parsing class based on PHP's bundled expat + +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" + +TESTDIR= ${PEARDIR}/tests/${PORTNAME} + +do-install: + @${MKDIR} ${PEARDIR}/XML + @${CP} -p ${WRKSRC}/Parser.php ${PEARDIR}/XML + @${CHOWN} ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/XML/Parser.php +.if !defined(NOPORTDOCS) + @${MKDIR} ${TESTDIR} + @${CP} -Rp ${WRKSRC}/tests/* ${TESTDIR} + @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${TESTDIR} + @${ECHO_MSG} "===> Examples installed in ${TESTDIR}." + @${ECHO_MSG} " (These tests require PHPUnit - see" + @${ECHO_MSG} " <http://pear.php.net/package-info.php?package=PHPUnit>;;)." +.endif + +.include <bsd.port.post.mk> diff --git a/devel/pear-XML_Parser/distinfo b/devel/pear-XML_Parser/distinfo new file mode 100644 index 000000000000..3799eb8489f7 --- /dev/null +++ b/devel/pear-XML_Parser/distinfo @@ -0,0 +1 @@ +MD5 (PEAR/XML_Parser-1.0.1.tgz) = cd4d7a3d63c65a75859ae89096bf7dd1 diff --git a/devel/pear-XML_Parser/pkg-descr b/devel/pear-XML_Parser/pkg-descr new file mode 100644 index 000000000000..c789151c4d83 --- /dev/null +++ b/devel/pear-XML_Parser/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_Parser/pkg-plist b/devel/pear-XML_Parser/pkg-plist new file mode 100644 index 000000000000..05bf7bd8e3a7 --- /dev/null +++ b/devel/pear-XML_Parser/pkg-plist @@ -0,0 +1,12 @@ +%%PEARDIR%%/XML/Parser.php +%%PKGREGDIR%%/package.xml +%%PORTDOCS%%%%PEARDIR%%/tests/XML_Parser/001.phpt +%%PORTDOCS%%%%PEARDIR%%/tests/XML_Parser/002.phpt +%%PORTDOCS%%%%PEARDIR%%/tests/XML_Parser/003.phpt +%%PORTDOCS%%%%PEARDIR%%/tests/XML_Parser/004.phpt +%%PORTDOCS%%%%PEARDIR%%/tests/XML_Parser/005.phpt +%%PORTDOCS%%%%PEARDIR%%/tests/XML_Parser/test2.xml +%%PORTDOCS%%%%PEARDIR%%/tests/XML_Parser/test3.xml +@dirrm %%PEARDIR%%/XML +@dirrm %%PKGREGDIR%% +%%PORTDOCS%%@dirrm %%PEARDIR%%/tests/XML_Parser |