Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jul 2009 04:19:59 GMT
From:      Andrew Lewis <dru@silenceisdefeat.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/136265: New port: textproc/luaexpat XML Parser for Lua using the Expat library
Message-ID:  <200907030419.n634JxJG010033@www.freebsd.org>
Resent-Message-ID: <200907030430.n634U4TS099410@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         136265
>Category:       ports
>Synopsis:       New port: textproc/luaexpat XML Parser for Lua using the Expat library
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 03 04:30:04 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Lewis
>Release:        7.1-RELEASE-p6
>Organization:
Private
>Environment:
FreeBSD foo.bar 7.1-RELEASE-p6 FreeBSD 7.1-RELEASE-p6 #4: Wed Jun 24 14:25:56 UTC 2009     toor@foo.bar:/usr/obj/usr/src/sys/ADAMANTIUM71  i386
>Description:
Requires changes to devel/lua50-compat51 to build with Lua 5.0, see here:
http://www.freebsd.org/cgi/query-pr.cgi?pr=136264
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./pkg-descr
#	./distinfo
#	./Makefile
#	./files
#	./files/patch-makefile
#	./files/patch-config
#	./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << '0e313719ff012ceaf97a028d51caa8f5'
XLuaExpat is a SAX XML parser based on the Expat library. SAX is the Simple API
Xfor XML and allows programs to:
X
X* process a XML document incrementally, thus being able to handle huge
X  documents without memory penalties;
X* register handler functions which are called by the parser during the
X  processing of the document, handling the document elements or text.
X
XWith an event-based API like SAX the XML document can be fed to the parser in
Xchunks, and the parsing begins as soon as the parser receives the first
Xdocument chunk. LuaExpat reports parsing events (such as the start and end of
Xelements) directly to the application through callbacks. The parsing of huge
Xdocuments can benefit from this piecemeal operation.
X
XWWW: http://www.keplerproject.org/luaexpat
0e313719ff012ceaf97a028d51caa8f5
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'aec8793adfd5b7c3f00e62ae41a09ac2'
XMD5 (luaexpat-1.1.tar.gz) = 6ecb895ccf5cff1e7f2facd438b1f8d0
XSHA256 (luaexpat-1.1.tar.gz) = 9d709ddc606630f9b9dc3f3aafcb2a7c1fcb2675000c09978d8a37974e74effd
XSIZE (luaexpat-1.1.tar.gz) = 27907
aec8793adfd5b7c3f00e62ae41a09ac2
echo x - ./Makefile
sed 's/^X//' >./Makefile << '464ef7c6571951809b23e262cbe26e19'
X# New ports collection makefile for:    luaexpat
X# Date created:				25 June 2009
X# Whom:					Andrew Lewis <dru@silenceisdefeat.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	luaexpat
XPORTVERSION=	1.1
XCATEGORIES=	textproc
XMASTER_SITES=	http://luaforge.net/frs/download.php/2469/
XPKGNAMEPREFIX=  ${LUA_PKGNAMEPREFIX}
X
XMAINTAINER=	dru@silenceisdefeat.net
XCOMMENT=	LuaExpat is a SAX XML parser based on the Expat library.
X
XMAKEFILE=	makefile
XALL_TARGET=	lib
XUSE_LUA=	5.0-5.1
XWANT_LUA_VER=	5.1
XBUILD_DEPENDS=	${LOCALBASE}/lib/libexpat.so:${PORTSDIR}/textproc/expat2
X
X.if ${USE_LUA} == 5.0
X
XBUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/devel/lua50-compat51:build
X
X.endif
X
X.include <bsd.port.mk>
464ef7c6571951809b23e262cbe26e19
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-makefile
sed 's/^X//' >./files/patch-makefile << '96974221925946c67df7c2aa45724c60'
X--- makefile.orig	2009-06-25 06:07:16.000000000 +0000
X+++ makefile	2009-06-25 06:23:06.000000000 +0000
X@@ -4,15 +4,11 @@
X 
X include $(CONFIG)
X 
X-ifeq "$(LUA_VERSION_NUM)" "500"
X-COMPAT_O= $(COMPAT_DIR)/compat-5.1.o
X-endif
X-
X OBJS= src/lxplib.o $(COMPAT_O)
X lib: src/$(LIBNAME)
X 
X src/$(LIBNAME) : $(OBJS)
X-	export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) -lexpat
X+	export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) lxplib.o $(COMPAT_O) -lexpat
X 
X $(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
X 	$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
96974221925946c67df7c2aa45724c60
echo x - ./files/patch-config
sed 's/^X//' >./files/patch-config << 'f19ae8234b70b2ff339a59d27054f71b'
X--- config.orig	2006-06-08 20:41:48.000000000 +0000
X+++ config	2009-07-03 03:00:20.000000000 +0000
X@@ -1,15 +1,15 @@
X # Installation directories
X # System's libraries directory (where binary libraries are installed)
X-LUA_LIBDIR= /usr/local/lib/lua/5.0
X+LUA_LIBDIR= ${LUA_MODLIBDIR}
X # System's lua directory (where Lua libraries are installed)
X-LUA_DIR= /usr/local/share/lua/5.0
X+LUA_DIR= ${LUA_MODSHAREDIR}
X # Lua includes directory
X-LUA_INC= /usr/local/include
X+LUA_INC= ${LUA_INCDIR}
X # Expat includes directory
X-EXPAT_INC= /usr/local/include
X+EXPAT_INC= ${LOCALBASE}/include
X 
X # OS dependent
X-LIB_OPTION= -shared #for Linux
X+LIB_OPTION= -L${LOCALBASE}/lib -shared #for Linux
X #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
X 
X LIBNAME= $T.so.$V
X@@ -18,7 +18,7 @@
X # first version digit * 100 + second version digit
X # e.g. Lua 5.0.2 => 500, Lua 5.1 => 501, Lua 5.1.1 => 501)
X LUA_VERSION_NUM= 500
X-COMPAT_DIR= ../compat/src
X+COMPAT_DIR= ${LUA_MODLIBDIR}
X 
X # Compilation parameters
X CWARNS = -Wall -pedantic \
f19ae8234b70b2ff339a59d27054f71b
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'ef3e7f63841ae908ba397c2bef1fbad6'
X%%LUA_MODLIBDIR%%/lxp.so
X%%LUA_MODLIBDIR%%/lxp.so.1.1.0
X%%LUA_MODSHAREDIR%%/lxp/lom.lua
ef3e7f63841ae908ba397c2bef1fbad6
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907030419.n634JxJG010033>