summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-04-05 13:57:53 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-04-05 13:57:53 +0000
commite8ab46393d9f2f8245390498c8b3cc155740a6b5 (patch)
treeef30669c4ee0aca4196532d3937bce773a373fd5 /textproc
parent229487fddb72e3e90fc9b3da10464424bfbfc0a6 (diff)
downloadpkgsrc-e8ab46393d9f2f8245390498c8b3cc155740a6b5.tar.gz
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.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/lua-expat/DESCR8
-rw-r--r--textproc/lua-expat/MESSAGE13
-rw-r--r--textproc/lua-expat/Makefile24
-rw-r--r--textproc/lua-expat/PLIST3
-rw-r--r--textproc/lua-expat/distinfo6
-rw-r--r--textproc/lua-expat/patches/patch-aa34
-rw-r--r--textproc/lua-expat/patches/patch-ab13
7 files changed, 101 insertions, 0 deletions
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 <stdlib.h>
+ #include <string.h>
+
+-#include <xmlparse.h>
++#include <expat.h>
+
+ #include <lua.h>
+ #include <lauxlib.h>