aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-05-29 13:32:26 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-05-29 13:32:26 +0000
commitbb1357e92345ea3077a5d950efe6a1bf1021bb55 (patch)
tree9a6c3a51996e50961c4c21dec5ec6d4011dd48b6
parentd854d3ad2b1776dcd8e08c36ee5b4a181c05c54a (diff)
downloadports-bb1357e92345ea3077a5d950efe6a1bf1021bb55.tar.gz
ports-bb1357e92345ea3077a5d950efe6a1bf1021bb55.zip
Notes
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/mini-xml/Makefile39
-rw-r--r--textproc/mini-xml/distinfo2
-rw-r--r--textproc/mini-xml/files/patch-configure16
-rw-r--r--textproc/mini-xml/pkg-descr22
-rw-r--r--textproc/mini-xml/pkg-plist17
6 files changed, 97 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 7768a0a4383c..4981c6eb4d52 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -199,6 +199,7 @@
SUBDIR += mguesser
SUBDIR += mi-aspell
SUBDIR += mifluz
+ SUBDIR += mini-xml
SUBDIR += minidom
SUBDIR += mkcatalog
SUBDIR += modlogan
diff --git a/textproc/mini-xml/Makefile b/textproc/mini-xml/Makefile
new file mode 100644
index 000000000000..e05cb19a2656
--- /dev/null
+++ b/textproc/mini-xml/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: mini-xml
+# Date created: 01 Jan 2004
+# Whom: Vladimir Osintsev <oc@nm.ru>
+# $FreeBSD$
+
+PORTNAME= mini-xml
+PORTVERSION= 2.0.r1
+CATEGORIES= textproc
+MASTER_SITES= http://www.easysw.com/~mike/mxml/swfiles/
+DISTNAME= mxml-${PORTVERSION:S/.r/rc/}
+
+MAINTAINER= oc@nm.ru
+COMMENT= Lightweight XML parsing library
+
+USE_GNOME= pkgconfig
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/${PORTNAME}
+
+MAN1= mxmldoc.1
+MAN3= mxml.3
+CAT1= mxmldoc.1
+CAT3= mxml.3
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
+ ${WRKSRC}/Makefile.in
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/test.xml ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}/samples
+.for SN in class enum function struct
+ ${INSTALL_MAN} ${WRKSRC}/test/${SN}.cxx ${DOCSDIR}/samples/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/textproc/mini-xml/distinfo b/textproc/mini-xml/distinfo
new file mode 100644
index 000000000000..8d63fca1e76b
--- /dev/null
+++ b/textproc/mini-xml/distinfo
@@ -0,0 +1,2 @@
+MD5 (mxml-2.0rc1.tar.gz) = f3f3e2c55c0cd7f725f8600b7da86a15
+SIZE (mxml-2.0rc1.tar.gz) = 725395
diff --git a/textproc/mini-xml/files/patch-configure b/textproc/mini-xml/files/patch-configure
new file mode 100644
index 000000000000..17569fc01323
--- /dev/null
+++ b/textproc/mini-xml/files/patch-configure
@@ -0,0 +1,16 @@
+--- configure.orig Fri May 21 05:10:33 2004
++++ configure Sat May 29 15:23:32 2004
+@@ -3028,13 +3028,6 @@
+ fi
+
+ case "$uname" in
+- *BSD* | Darwin*)
+- # *BSD
+- CAT1EXT="0"
+- MAN1EXT="1"
+- CAT3EXT="0"
+- MAN3EXT="3"
+- ;;
+ *)
+ # All others
+ CAT1EXT="1"
diff --git a/textproc/mini-xml/pkg-descr b/textproc/mini-xml/pkg-descr
new file mode 100644
index 000000000000..bc8bdc1bf14c
--- /dev/null
+++ b/textproc/mini-xml/pkg-descr
@@ -0,0 +1,22 @@
+Mini-XML is a small XML parsing library that you can use to read XML and
+XML-like data files in your application without requiring large non-standard
+libraries. Mini-XML only requires an ANSI C compatible compiler (GCC works,
+as do most vendors' ANSI C compilers) and a "make" program.
+
+Mini-XML provides the following functionality:
+
+- Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded XML files and
+ strings.
+- Data is stored in a linked-list tree structure, preserving the XML data
+ hierarchy.
+- Supports arbitrary element names, attributes, and attribute values with no
+ preset limits, just available memory.
+- Supports integer, real, opaque ("cdata"), and text data types in "leaf"
+ nodes.
+- Functions for creating and managing trees of data.
+- "Find" and "walk" functions for easily locating and navigating trees of data.
+
+WWW: http://www.easysw.com/~mike/mxml
+
+- Michael Sweet
+mxml@easysw.com
diff --git a/textproc/mini-xml/pkg-plist b/textproc/mini-xml/pkg-plist
new file mode 100644
index 000000000000..0c57c60f8185
--- /dev/null
+++ b/textproc/mini-xml/pkg-plist
@@ -0,0 +1,17 @@
+bin/mxmldoc
+include/mxml.h
+lib/libmxml.a
+libdata/pkgconfig/mxml.pc
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/mxml.html
+%%PORTDOCS%%%%DOCSDIR%%/mxml.pdf
+%%PORTDOCS%%%%DOCSDIR%%/mxmldoc.xsd
+%%PORTDOCS%%%%DOCSDIR%%/test.xml
+%%PORTDOCS%%%%DOCSDIR%%/samples/class.cxx
+%%PORTDOCS%%%%DOCSDIR%%/samples/enum.cxx
+%%PORTDOCS%%%%DOCSDIR%%/samples/function.cxx
+%%PORTDOCS%%%%DOCSDIR%%/samples/struct.cxx
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/samples
+%%PORTDOCS%%@dirrm %%DOCSDIR%%