From nobody@FreeBSD.org  Fri Jul  3 04:20:00 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2C4081065670
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <dru@silenceisdefeat.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: textproc/luaexpat XML Parser for Lua using the Expat library
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:    pgollucci
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 03 04:30:04 UTC 2009
>Closed-Date:    Tue Jul 14 06:03:43 UTC 2009
>Last-Modified:  Tue Jul 14 06:10:01 UTC 2009
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->pgollucci 
Responsible-Changed-By: pgollucci 
Responsible-Changed-When: Wed Jul 8 03:21:24 UTC 2009 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=136265 

From: Andrew Lewis <freeghb@gmail.com>
To: bug-followup@freebsd.org
Cc: dru@silenceisdefeat.net
Subject: Re: ports/136265: New port: textproc/luaexpat XML Parser for Lua using the Expat library
Date: Sat, 11 Jul 2009 01:30:02 +0200

 --Boundary-00=_678VKpZQWFxYkQY
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Patch to change e-mail address. I think this will be better in the long run. 
 Apologies for the inconvenience.
 
 --Boundary-00=_678VKpZQWFxYkQY
 Content-Type: text/plain;
   charset="UTF-8";
   name="luaexpat.Makefile.patch.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="luaexpat.Makefile.patch.txt"
 
 --- Makefile.orig	2009-07-10 22:59:47.000000000 +0000
 +++ Makefile	2009-07-10 23:00:23.000000000 +0000
 @@ -1,6 +1,6 @@
  # New ports collection makefile for:    luaexpat
  # Date created:				25 June 2009
 -# Whom:					Andrew Lewis <dru@silenceisdefeat.net>
 +# Whom:					Andrew Lewis <freeghb@gmail.com>
  #
  # $FreeBSD$
  #
 @@ -11,7 +11,7 @@
  MASTER_SITES=	http://luaforge.net/frs/download.php/2469/
  PKGNAMEPREFIX=  ${LUA_PKGNAMEPREFIX}
  
 -MAINTAINER=	dru@silenceisdefeat.net
 +MAINTAINER=	freeghb@gmail.com
  COMMENT=	LuaExpat is a SAX XML parser based on the Expat library.
  
  MAKEFILE=	makefile
 
 --Boundary-00=_678VKpZQWFxYkQY--
State-Changed-From-To: open->closed 
State-Changed-By: pgollucci 
State-Changed-When: Tue Jul 14 06:03:42 UTC 2009 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=136265 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/136265: commit references a PR
Date: Tue, 14 Jul 2009 06:03:04 +0000 (UTC)

 pgollucci    2009-07-14 06:02:55 UTC
 
   FreeBSD ports repository
 
   Modified files:
     textproc             Makefile 
   Added files:
     textproc/luaexpat    Makefile distinfo pkg-descr pkg-plist 
     textproc/luaexpat/files patch-config patch-makefile 
   Log:
   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>
   
   Revision  Changes    Path
   1.1355    +1 -0      ports/textproc/Makefile
   1.1       +32 -0     ports/textproc/luaexpat/Makefile (new)
   1.1       +3 -0      ports/textproc/luaexpat/distinfo (new)
   1.1       +32 -0     ports/textproc/luaexpat/files/patch-config (new)
   1.1       +19 -0     ports/textproc/luaexpat/files/patch-makefile (new)
   1.1       +15 -0     ports/textproc/luaexpat/pkg-descr (new)
   1.1       +4 -0      ports/textproc/luaexpat/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
