From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jul 3 04:30:05 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37096106564A for ; Fri, 3 Jul 2009 04:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 08BAA8FC14 for ; Fri, 3 Jul 2009 04:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n634U4V0099413 for ; Fri, 3 Jul 2009 04:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n634U4TS099410; Fri, 3 Jul 2009 04:30:04 GMT (envelope-from gnats) Resent-Date: Fri, 3 Jul 2009 04:30:04 GMT Resent-Message-Id: <200907030430.n634U4TS099410@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Lewis Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C4081065670 for ; Fri, 3 Jul 2009 04:20:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 192AA8FC08 for ; Fri, 3 Jul 2009 04:20:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n634JxG8010034 for ; Fri, 3 Jul 2009 04:19:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n634JxJG010033; Fri, 3 Jul 2009 04:19:59 GMT (envelope-from nobody) Message-Id: <200907030419.n634JxJG010033@www.freebsd.org> Date: Fri, 3 Jul 2009 04:19:59 GMT From: Andrew Lewis To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/136265: New port: textproc/luaexpat XML Parser for Lua using the Expat library X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jul 2009 04:30:05 -0000 >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 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 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: