From 34f91d9b24d712c62b4b57dd29cc52ca372cc275 Mon Sep 17 00:00:00 2001 From: xtraeme Date: Mon, 5 Apr 2004 13:57:53 +0000 Subject: Initial import of lua-expat from pkgsrc-wip, packaged by pancake. LuaExpat is a XML parser based on the Expat XML parser. It allows Lua programs to: - Process a XML document incrementally , thus being able to handle huge documents without memory penalties; - Register handler functions wich are called by the parser during the processing of the document, handling the document elements or text. --- textproc/lua-expat/DESCR | 8 ++++++++ textproc/lua-expat/MESSAGE | 13 +++++++++++++ textproc/lua-expat/Makefile | 24 ++++++++++++++++++++++++ textproc/lua-expat/PLIST | 3 +++ textproc/lua-expat/distinfo | 6 ++++++ textproc/lua-expat/patches/patch-aa | 34 ++++++++++++++++++++++++++++++++++ textproc/lua-expat/patches/patch-ab | 13 +++++++++++++ 7 files changed, 101 insertions(+) create mode 100644 textproc/lua-expat/DESCR create mode 100644 textproc/lua-expat/MESSAGE create mode 100644 textproc/lua-expat/Makefile create mode 100644 textproc/lua-expat/PLIST create mode 100644 textproc/lua-expat/distinfo create mode 100644 textproc/lua-expat/patches/patch-aa create mode 100644 textproc/lua-expat/patches/patch-ab (limited to 'textproc') diff --git a/textproc/lua-expat/DESCR b/textproc/lua-expat/DESCR new file mode 100644 index 00000000000..118981c06d7 --- /dev/null +++ b/textproc/lua-expat/DESCR @@ -0,0 +1,8 @@ +LuaExpat is a XML parser based on the Expat XML parser. +It allows Lua programs to: + +- Process a XML document incrementally , thus being able to handle + huge documents without memory penalties; + +- Register handler functions wich are called by the parser during + the processing of the document, handling the document elements or text. diff --git a/textproc/lua-expat/MESSAGE b/textproc/lua-expat/MESSAGE new file mode 100644 index 00000000000..af976f9b875 --- /dev/null +++ b/textproc/lua-expat/MESSAGE @@ -0,0 +1,13 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2004/04/05 13:57:53 xtraeme Exp $ + +To use luaexpat in your lua programs you must set this environment +variable: + + LUA_INIT = "loadlib('${PREFIX}/lib/liblualxp.so','luaopen_lxp')();" + +Examples were installed on: + + ${PREFIX}/share/examples/lua + +=========================================================================== diff --git a/textproc/lua-expat/Makefile b/textproc/lua-expat/Makefile new file mode 100644 index 00000000000..473b22e4208 --- /dev/null +++ b/textproc/lua-expat/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/04/05 13:57:53 xtraeme Exp $ +# + +DISTNAME= luaexpat-1.0a +PKGNAME= ${DISTNAME:S/lua/lua-/} +CATEGORIES= textproc +MASTER_SITES= http://www.keplerproject.org/luaexpat/ + +MAINTAINER= pancake@phreaker.net +HOMEPAGE= http://www.tecgraf.puc-rio.br/~diego/luasocket/new/ +COMMENT= XML parser for LUA based on expat + +USE_GNU_TOOLS+= make +USE_BUILDLINK3= yes +MAKEFILE= makefile + +do-install: + ${INSTALL_DATA} ${WRKSRC}/liblxp.so ${PREFIX}/lib/liblualxp.so + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lua + ${INSTALL_DATA} ${WRKSRC}/test.lua ${PREFIX}/share/examples/lua/lxp.lua + +.include "../../textproc/expat/buildlink3.mk" +.include "../../lang/lua/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/lua-expat/PLIST b/textproc/lua-expat/PLIST new file mode 100644 index 00000000000..ed58c87a4ff --- /dev/null +++ b/textproc/lua-expat/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/04/05 13:57:53 xtraeme Exp $ +lib/liblualxp.so +share/examples/lua/lxp.lua diff --git a/textproc/lua-expat/distinfo b/textproc/lua-expat/distinfo new file mode 100644 index 00000000000..7e18b05095f --- /dev/null +++ b/textproc/lua-expat/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/04/05 13:57:53 xtraeme Exp $ + +SHA1 (luaexpat-1.0a.tar.gz) = f9393bf4cc1f41b34336b4f2e14fdbf7adf06c55 +Size (luaexpat-1.0a.tar.gz) = 16460 bytes +SHA1 (patch-aa) = 6c7d49c6d153170b6475b4fcbfedc67cd8e34cd7 +SHA1 (patch-ab) = 3e083f15ef99fc6e0931416f092093ed821f4927 diff --git a/textproc/lua-expat/patches/patch-aa b/textproc/lua-expat/patches/patch-aa new file mode 100644 index 00000000000..6ef6534f47a --- /dev/null +++ b/textproc/lua-expat/patches/patch-aa @@ -0,0 +1,34 @@ +$NetBSD: patch-aa,v 1.1.1.1 2004/04/05 13:57:53 xtraeme Exp $ + +--- makefile.orig 2004-01-29 22:54:22.000000000 +0000 ++++ makefile 2004-01-29 22:58:13.000000000 +0000 +@@ -1,5 +1,5 @@ + # Compilation parameters +-CC = gcc ++#CC= gcc + CWARNS = -Wall -pedantic \ + -Waggregate-return \ + -Wcast-align \ +@@ -11,8 +11,8 @@ + -Wwrite-strings + + +-CFLAGS = $(CONFIG) $(CWARNS) -ansi -g -O2 -I/usr/local/include/lua5 \ +- -L./expat/xmlparse ++CFLAGS+= $(CONFIG) -O2 -I${PREFIX}/include \ ++ -L${PREFIX}/lib + + VERSION= 1.0a + PKG = luaexpat-$(VERSION) +@@ -23,9 +23,10 @@ + test.lua \ + index.html manual.html lua.png + ++all: liblxp.so + + liblxp.so : lxplib.o +- ld -o liblxp.so -shared lxplib.o -lexpat ++ ld -o liblxp.so -L${PREFIX}/lib -Wl,${RPATH_FLAG}${PREFIX}/lib -shared lxplib.o -lexpat + + liblxp.dylib : lxplib.o + gcc -o liblxp.dylib -dynamiclib lxplib.o -lexpat -llua.5.0 -llualib.5.0 diff --git a/textproc/lua-expat/patches/patch-ab b/textproc/lua-expat/patches/patch-ab new file mode 100644 index 00000000000..1c4cd29c76a --- /dev/null +++ b/textproc/lua-expat/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2004/04/05 13:57:53 xtraeme Exp $ + +--- lxplib.c.orig 2004-01-29 22:56:49.000000000 +0000 ++++ lxplib.c 2004-01-29 22:56:56.000000000 +0000 +@@ -9,7 +9,7 @@ + #include + #include + +-#include ++#include + + #include + #include -- cgit v1.2.3