diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2009-07-14 14:02:55 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2009-07-14 14:02:55 +0800 |
commit | 2c7ff3f498a59465afa117d52bd6b3ce2f564a10 (patch) | |
tree | 46176a1948ce151f1d61939063a51f477f9e7320 /textproc | |
parent | 0f585d7552ca52fecb3a333180afcf73b4085471 (diff) | |
download | freebsd-ports-gnome-2c7ff3f498a59465afa117d52bd6b3ce2f564a10.tar.gz freebsd-ports-gnome-2c7ff3f498a59465afa117d52bd6b3ce2f564a10.tar.zst freebsd-ports-gnome-2c7ff3f498a59465afa117d52bd6b3ce2f564a10.zip |
LuaExpat is a SAX XML parser based on the Expat library. SAX is the Simple API
for XML and allows programs to:
* process a XML document incrementally, thus being able to handle huge
documents without memory penalties;
* register handler functions which are called by the parser during the
processing of the document, handling the document elements or text.
With an event-based API like SAX the XML document can be fed to the parser in
chunks, and the parsing begins as soon as the parser receives the first
document chunk. LuaExpat reports parsing events (such as the start and end of
elements) directly to the application through callbacks. The parsing of huge
documents can benefit from this piecemeal operation.
WWW: http://www.keplerproject.org/luaexpat
PR: ports/136265
Submitted by: Andrew Lewis <dru at silenceisdefeat.net>
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/luaexpat/Makefile | 32 | ||||
-rw-r--r-- | textproc/luaexpat/distinfo | 3 | ||||
-rw-r--r-- | textproc/luaexpat/files/patch-config | 32 | ||||
-rw-r--r-- | textproc/luaexpat/files/patch-makefile | 19 | ||||
-rw-r--r-- | textproc/luaexpat/pkg-descr | 15 | ||||
-rw-r--r-- | textproc/luaexpat/pkg-plist | 4 |
7 files changed, 106 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index 6f916c654411..47e094f09254 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -339,6 +339,7 @@ SUBDIR += localize SUBDIR += lt-aspell SUBDIR += ltxml + SUBDIR += luaexpat SUBDIR += lucene SUBDIR += lv-aspell SUBDIR += m17n-contrib diff --git a/textproc/luaexpat/Makefile b/textproc/luaexpat/Makefile new file mode 100644 index 000000000000..75b7c427624d --- /dev/null +++ b/textproc/luaexpat/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: luaexpat +# Date created: 25 June 2009 +# Whom: Andrew Lewis <dru@silenceisdefeat.net> +# +# $FreeBSD$ +# + +PORTNAME= luaexpat +PORTVERSION= 1.1 +CATEGORIES= textproc +MASTER_SITES= http://luaforge.net/frs/download.php/2469/ +PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX} + +MAINTAINER= dru@silenceisdefeat.net +COMMENT= LuaExpat is a SAX XML parser based on the Expat library + +LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 + +ONLY_FOR_ARCHS= i386 + +MAKEFILE= makefile +ALL_TARGET= lib +USE_LUA= 5.0-5.1 +WANT_LUA_VER= 5.1 + +CFLAGS+= -fPIC + +.if ${USE_LUA} == 5.0 +BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:build +.endif + +.include <bsd.port.mk> diff --git a/textproc/luaexpat/distinfo b/textproc/luaexpat/distinfo new file mode 100644 index 000000000000..56338e484c1a --- /dev/null +++ b/textproc/luaexpat/distinfo @@ -0,0 +1,3 @@ +MD5 (luaexpat-1.1.tar.gz) = 6ecb895ccf5cff1e7f2facd438b1f8d0 +SHA256 (luaexpat-1.1.tar.gz) = 9d709ddc606630f9b9dc3f3aafcb2a7c1fcb2675000c09978d8a37974e74effd +SIZE (luaexpat-1.1.tar.gz) = 27907 diff --git a/textproc/luaexpat/files/patch-config b/textproc/luaexpat/files/patch-config new file mode 100644 index 000000000000..5202efab4a23 --- /dev/null +++ b/textproc/luaexpat/files/patch-config @@ -0,0 +1,32 @@ +--- config.orig 2006-06-08 20:41:48.000000000 +0000 ++++ config 2009-07-03 03:00:20.000000000 +0000 +@@ -1,15 +1,15 @@ + # Installation directories + # System's libraries directory (where binary libraries are installed) +-LUA_LIBDIR= /usr/local/lib/lua/5.0 ++LUA_LIBDIR= ${LUA_MODLIBDIR} + # System's lua directory (where Lua libraries are installed) +-LUA_DIR= /usr/local/share/lua/5.0 ++LUA_DIR= ${LUA_MODSHAREDIR} + # Lua includes directory +-LUA_INC= /usr/local/include ++LUA_INC= ${LUA_INCDIR} + # Expat includes directory +-EXPAT_INC= /usr/local/include ++EXPAT_INC= ${LOCALBASE}/include + + # OS dependent +-LIB_OPTION= -shared #for Linux ++LIB_OPTION= -L${LOCALBASE}/lib -shared #for Linux + #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X + + LIBNAME= $T.so.$V +@@ -18,7 +18,7 @@ + # first version digit * 100 + second version digit + # e.g. Lua 5.0.2 => 500, Lua 5.1 => 501, Lua 5.1.1 => 501) + LUA_VERSION_NUM= 500 +-COMPAT_DIR= ../compat/src ++COMPAT_DIR= ${LUA_MODLIBDIR} + + # Compilation parameters + CWARNS = -Wall -pedantic \ diff --git a/textproc/luaexpat/files/patch-makefile b/textproc/luaexpat/files/patch-makefile new file mode 100644 index 000000000000..b3f6b29101e4 --- /dev/null +++ b/textproc/luaexpat/files/patch-makefile @@ -0,0 +1,19 @@ +--- makefile.orig 2009-06-25 06:07:16.000000000 +0000 ++++ makefile 2009-06-25 06:23:06.000000000 +0000 +@@ -4,15 +4,11 @@ + + include $(CONFIG) + +-ifeq "$(LUA_VERSION_NUM)" "500" +-COMPAT_O= $(COMPAT_DIR)/compat-5.1.o +-endif +- + OBJS= src/lxplib.o $(COMPAT_O) + lib: src/$(LIBNAME) + + src/$(LIBNAME) : $(OBJS) +- export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) -lexpat ++ export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) lxplib.o $(COMPAT_O) -lexpat + + $(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c + $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c diff --git a/textproc/luaexpat/pkg-descr b/textproc/luaexpat/pkg-descr new file mode 100644 index 000000000000..0629aee6a9d7 --- /dev/null +++ b/textproc/luaexpat/pkg-descr @@ -0,0 +1,15 @@ +LuaExpat is a SAX XML parser based on the Expat library. SAX is the Simple API +for XML and allows programs to: + +* process a XML document incrementally, thus being able to handle huge + documents without memory penalties; +* register handler functions which are called by the parser during the + processing of the document, handling the document elements or text. + +With an event-based API like SAX the XML document can be fed to the parser in +chunks, and the parsing begins as soon as the parser receives the first +document chunk. LuaExpat reports parsing events (such as the start and end of +elements) directly to the application through callbacks. The parsing of huge +documents can benefit from this piecemeal operation. + +WWW: http://www.keplerproject.org/luaexpat diff --git a/textproc/luaexpat/pkg-plist b/textproc/luaexpat/pkg-plist new file mode 100644 index 000000000000..6913adc10267 --- /dev/null +++ b/textproc/luaexpat/pkg-plist @@ -0,0 +1,4 @@ +%%LUA_MODLIBDIR%%/lxp.so +%%LUA_MODLIBDIR%%/lxp.so.1.1.0 +%%LUA_MODSHAREDIR%%/lxp/lom.lua +@dirrm share/lua/5.1/lxp |