summaryrefslogtreecommitdiff
path: root/textproc/ezxml
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2005-08-01 00:25:04 +0000
committeragc <agc@pkgsrc.org>2005-08-01 00:25:04 +0000
commit8ae641df5b5cd82959c0aeb8cdfca755971acd6e (patch)
treed45912d53f87b516a9e54627f7cd00568972b474 /textproc/ezxml
parentfd12c4404cc76393458df41a8eef0e8632adc3ee (diff)
downloadpkgsrc-8ae641df5b5cd82959c0aeb8cdfca755971acd6e.tar.gz
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
Diffstat (limited to 'textproc/ezxml')
-rw-r--r--textproc/ezxml/DESCR10
-rw-r--r--textproc/ezxml/Makefile24
-rw-r--r--textproc/ezxml/PLIST5
-rw-r--r--textproc/ezxml/distinfo6
-rw-r--r--textproc/ezxml/patches/patch-aa24
5 files changed, 69 insertions, 0 deletions
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) *~