From 3d547635d3375de725551437740c07058de19b26 Mon Sep 17 00:00:00 2001 From: agc Date: Mon, 1 Aug 2005 00:25:04 +0000 Subject: Import ezxml library, submitted in PR 30887 by Marcin Jessa. ezXML is a C library for parsing XML documents inspired by simpleXML for PHP. As the name implies, it's easy to use. It's ideal for parsing XML configuration files or REST web service responses. It's also fast and lightweight (less than 20k compiled). An example of how to use the ezXML library can be found in ${PREFIX}/share/doc/ezxml --- textproc/ezxml/DESCR | 10 ++++++++++ textproc/ezxml/Makefile | 24 ++++++++++++++++++++++++ textproc/ezxml/PLIST | 5 +++++ textproc/ezxml/distinfo | 6 ++++++ textproc/ezxml/patches/patch-aa | 24 ++++++++++++++++++++++++ 5 files changed, 69 insertions(+) create mode 100644 textproc/ezxml/DESCR create mode 100644 textproc/ezxml/Makefile create mode 100644 textproc/ezxml/PLIST create mode 100644 textproc/ezxml/distinfo create mode 100644 textproc/ezxml/patches/patch-aa (limited to 'textproc/ezxml') diff --git a/textproc/ezxml/DESCR b/textproc/ezxml/DESCR new file mode 100644 index 00000000000..5858f5202e1 --- /dev/null +++ b/textproc/ezxml/DESCR @@ -0,0 +1,10 @@ +ezXML is a C library for parsing XML documents inspired by simpleXML +for PHP. As the name implies, it's easy to use. It's ideal for +parsing XML configuration files or REST web service responses. It's +also fast and lightweight (less than 20k compiled). + +An example of how to use the ezXML library can be found in +${PREFIX}/share/doc/ezxml + +- Marcin Jessa +yazzy@yazzy.org diff --git a/textproc/ezxml/Makefile b/textproc/ezxml/Makefile new file mode 100644 index 00000000000..bb963db80a1 --- /dev/null +++ b/textproc/ezxml/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/08/01 00:25:04 agc Exp $ + +DISTNAME= ezxml-0.8.4 +CATEGORIES= textproc devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ezxml/} \ + http://www.yazzy.org/pkgsrc/ezxml/ + +MAINTAINER= yazzy@yazzy.org +HOMEPAGE= http://ezxml.sourceforge.net/ +COMMENT= Easy to use C library for parsing XML documents + +WRKSRC= ${WRKDIR}/${PKGNAME:C/-[^-]*$//} + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +INSTALLATION_DIRS+= share/doc/ezxml + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libezxml.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/ezxml.h ${PREFIX}/include + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ezxml + ${INSTALL_DATA} ${WRKSRC}/ezxml.txt ${PREFIX}/share/doc/ezxml + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/ezxml/PLIST b/textproc/ezxml/PLIST new file mode 100644 index 00000000000..03da308be69 --- /dev/null +++ b/textproc/ezxml/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/08/01 00:25:04 agc Exp $ +include/ezxml.h +lib/libezxml.a +share/doc/ezxml/ezxml.txt +@dirrm share/doc/ezxml diff --git a/textproc/ezxml/distinfo b/textproc/ezxml/distinfo new file mode 100644 index 00000000000..a93c7d728bb --- /dev/null +++ b/textproc/ezxml/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/08/01 00:25:04 agc Exp $ + +SHA1 (ezxml-0.8.4.tar.gz) = 95d323cacc9ea8f50b09095f872ca72bdc1393d8 +RMD160 (ezxml-0.8.4.tar.gz) = 6dbb2722f37c0b2b52f18c10d78e28628ed34eed +Size (ezxml-0.8.4.tar.gz) = 16394 bytes +SHA1 (patch-aa) = a33e3e815eb433e9f00468774bea73e23493740e diff --git a/textproc/ezxml/patches/patch-aa b/textproc/ezxml/patches/patch-aa new file mode 100644 index 00000000000..6793e9f89ca --- /dev/null +++ b/textproc/ezxml/patches/patch-aa @@ -0,0 +1,24 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/08/01 00:25:04 agc Exp $ + +--- Makefile.orig 2005-07-31 21:58:10.000000000 +0200 ++++ Makefile 2005-07-31 22:00:29.000000000 +0200 +@@ -21,10 +21,10 @@ + # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +-CC = gcc ++CC ?= gcc + AR = ar + RM = rm -f +-CFLAGS = -Wall -O2 ++CFLAGS ?= -Wall -O2 + OBJS = ezxml.o + LIB = libezxml.a + TEST = ezxmltest +@@ -59,4 +59,4 @@ + $(CC) $(CFLAGS) -c -o $@ $< + + clean: +- $(RM) $(OBJS) $(LIB) $(TEST) *~ +\ No newline at end of file ++ $(RM) $(OBJS) $(LIB) $(TEST) *~ -- cgit v1.2.3