aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-09-08 10:30:58 +0800
committeredwin <edwin@FreeBSD.org>2003-09-08 10:30:58 +0800
commit1f3109d9f949e70c3bce439e8e5f7cedb9a9d1ef (patch)
tree6ed182ab968ce3ccb99d2800a4ab36963df25a53 /devel
parent6c703be83933b5634b159a4fd5bb161fec002675 (diff)
downloadfreebsd-ports-graphics-1f3109d9f949e70c3bce439e8e5f7cedb9a9d1ef.tar.gz
freebsd-ports-graphics-1f3109d9f949e70c3bce439e8e5f7cedb9a9d1ef.tar.zst
freebsd-ports-graphics-1f3109d9f949e70c3bce439e8e5f7cedb9a9d1ef.zip
New port: PEAR Swiss-army knive for reading and writing XML files
XML_Serializer serializes complex data structures like arrays or object as XML documents. This class helps you generating any XML document you require without the need for DOM. Furthermore this package can be used as a replacement to serialize() und unserialize() as it comes with a matching XML_Unserializer that is able to create PHP data strcutures (like arrays and objects) from XML documents, if type hints are available. PR: ports/56448 Submitted by: Alex Miller <asm@asm.kiev.ua>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/pear-XML_Serializer/Makefile37
-rw-r--r--devel/pear-XML_Serializer/distinfo1
-rw-r--r--devel/pear-XML_Serializer/pkg-descr9
-rw-r--r--devel/pear-XML_Serializer/pkg-plist11
5 files changed, 59 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 3157704fef6..8d5a49a56d9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -804,6 +804,7 @@
SUBDIR += pear-I18N
SUBDIR += pear-PEAR
SUBDIR += pear-XML_Parser
+ SUBDIR += pear-XML_Serializer
SUBDIR += pear-XML_Tree
SUBDIR += pear-XML_Util
SUBDIR += pear-XML_XPath
diff --git a/devel/pear-XML_Serializer/Makefile b/devel/pear-XML_Serializer/Makefile
new file mode 100644
index 00000000000..7a00e504184
--- /dev/null
+++ b/devel/pear-XML_Serializer/Makefile
@@ -0,0 +1,37 @@
+# Ports collection makefile for: pear-XML_Serializer
+# Date created: 04 September 2003
+# Whom: Alex Miller (<asm@asm.kiev.ua>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= XML_Serializer
+PORTVERSION= 0.6
+CATEGORIES= devel www
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= PEAR Swiss-army knive for reading and writing XML files
+
+BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
+RUN_DEPENDS= ${BUILD_DEPENDS} \
+ ${PEARDIR}/XML/Parser.php:${PORTSDIR}/devel/pear-XML_Parser \
+ ${PEARDIR}/XML/Util.php:${PORTSDIR}/devel/pear-XML_Util
+
+.include <bsd.port.pre.mk>
+.include "${.CURDIR}/../../devel/pear-PEAR/Makefile.common"
+
+MANIFEST= Serializer.php Unserializer.php
+
+do-install:
+ @${MKDIR} ${PEARDIR}/XML
+.for FILE in ${MANIFEST}
+ @${CP} -p ${WRKSRC}/${FILE} ${PEARDIR}/XML
+ @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/XML/${FILE}
+.endfor
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${CP} -Rp ${WRKSRC}/examples/* ${DOCSDIR}
+ @${ECHO_MSG} "===> Examples installed in ${DOCSDIR}."
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/pear-XML_Serializer/distinfo b/devel/pear-XML_Serializer/distinfo
new file mode 100644
index 00000000000..866a362f0ef
--- /dev/null
+++ b/devel/pear-XML_Serializer/distinfo
@@ -0,0 +1 @@
+MD5 (PEAR/XML_Serializer-0.6.tgz) = ce61d1748974199d3be85a3a8bdac7b3
diff --git a/devel/pear-XML_Serializer/pkg-descr b/devel/pear-XML_Serializer/pkg-descr
new file mode 100644
index 00000000000..81d56a85ee6
--- /dev/null
+++ b/devel/pear-XML_Serializer/pkg-descr
@@ -0,0 +1,9 @@
+XML_Serializer serializes complex data structures like arrays or object
+as XML documents. This class helps you generating any XML document you
+require without the need for DOM.
+Furthermore this package can be used as a replacement to serialize()
+und unserialize() as it comes with a matching XML_Unserializer that is
+able to create PHP data strcutures (like arrays and objects) from XML
+documents, if type hints are available.
+
+WWW: http://pear.php.net/package-info.php?package=XML_Serializer
diff --git a/devel/pear-XML_Serializer/pkg-plist b/devel/pear-XML_Serializer/pkg-plist
new file mode 100644
index 00000000000..316932ce23a
--- /dev/null
+++ b/devel/pear-XML_Serializer/pkg-plist
@@ -0,0 +1,11 @@
+%%PEARDIR%%/XML/Serializer.php
+%%PEARDIR%%/XML/Unserializer.php
+%%PKGREGDIR%%/package.xml
+%%PORTDOCS%%%%PEARDIR%%/docs/XML_Serializer/serializeObject.php
+%%PORTDOCS%%%%PEARDIR%%/docs/XML_Serializer/serializeRDF.php
+%%PORTDOCS%%%%PEARDIR%%/docs/XML_Serializer/unserializeAnyXML.php
+%%PORTDOCS%%%%PEARDIR%%/docs/XML_Serializer/unserializeObject.php
+%%PORTDOCS%%%%PEARDIR%%/docs/XML_Serializer/unserializeRDF.php
+@unexec rmdir %D/%%PEARDIR%%/XML 2>/dev/null || true
+@dirrm %%PKGREGDIR%%
+%%PORTDOCS%%@dirrm %%PEARDIR%%/docs/XML_Serializer