7020451 Move lua to Userland
authorSrinivasa Sarva <srinivasa.sarva@oracle.com>
Mon, 21 Feb 2011 15:51:40 -0800
changeset 97 c27cb2d7067c
parent 96 0cad26ba1671
child 98 7eea11439375
7020451 Move lua to Userland
components/lua/1.Makefile.patch
components/lua/2.lua.pc.patch
components/lua/3.headers.patch
components/lua/Makefile
components/lua/SUNWlua.p5m
components/lua/lua.license
components/lua/lua.p5m
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/lua/1.Makefile.patch	Mon Feb 21 15:51:40 2011 -0800
@@ -0,0 +1,199 @@
+--- lua-5.1.4/Makefile.orig	Mon Aug 11 17:40:48 2008
++++ lua-5.1.4/Makefile	Fri Feb 18 13:00:25 2011
+@@ -5,15 +5,17 @@
+ # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
+ 
+ # Your platform. See PLATS for possible values.
+-PLAT= none
++PLAT= solaris
+ 
+ # Where to install. The installation starts in the src and doc directories,
+ # so take care if INSTALL_TOP is not an absolute path.
+-INSTALL_TOP= /usr/local
++INSTALL_TOP= $(ROOT)/usr
+ INSTALL_BIN= $(INSTALL_TOP)/bin
+ INSTALL_INC= $(INSTALL_TOP)/include
+ INSTALL_LIB= $(INSTALL_TOP)/lib
+-INSTALL_MAN= $(INSTALL_TOP)/man/man1
++INSTALL_MAN= $(INSTALL_TOP)/share/man/man1
++INSTALL_DOC= $(INSTALL_TOP)/share/doc/lua
++INSTALL_TEST= $(INSTALL_TOP)/demo/lua/test
+ #
+ # You probably want to make INSTALL_LMOD and INSTALL_CMOD consistent with
+ # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h (and also with etc/lua.pc).
+@@ -22,9 +24,9 @@
+ 
+ # How to install. If your install program does not support "-p", then you
+ # may have to run ranlib on the installed liblua.a (do "make ranlib").
+-INSTALL= install -p
+-INSTALL_EXEC= $(INSTALL) -m 0755
+-INSTALL_DATA= $(INSTALL) -m 0644
++INSTALL= ginstall -p
++INSTALL_EXEC= $(INSTALL) -m 0555
++INSTALL_DATA= $(INSTALL) -m 0444
+ #
+ # If you don't have install you can use cp instead.
+ # INSTALL= cp -p
+@@ -38,13 +40,15 @@
+ # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
+ 
+ # Convenience platforms targets.
+-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
++PLATS= solaris
+ 
+ # What to install.
+ TO_BIN= lua luac
+-TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
+-TO_LIB= liblua.a
++TO_INC= lua.h luaconf.h lualib.h lauxlib.h
++TO_LIB= liblua.so
+ TO_MAN= lua.1 luac.1
++TO_DOC= amazon.gif contents.html cover.png logo.gif lua.css lua.html luac.html manual.css manual.html readme.html
++TO_TEST= bisect.lua cf.lua echo.lua env.lua factorial.lua fib.lua fibfor.lua globals.lua hello.lua life.lua luac.lua printf.lua readonly.lua sieve.lua sort.lua table.lua trace-calls.lua trace-globals.lua xd.lua
+ 
+ # Lua version and release.
+ V= 5.1
+@@ -55,16 +59,18 @@
+ $(PLATS) clean:
+ 	cd src && $(MAKE) $@
+ 
++check:  test
+ test:	dummy
+ 	src/lua test/hello.lua
+ 
+ install: dummy
+-	cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
++	cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_DOC) $(INSTALL_MAN) $(INSTALL_TEST)
+ 	cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
+ 	cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
+-	cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
++	cd src && $(INSTALL_EXEC) $(TO_LIB) $(INSTALL_LIB)
+ 	cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
+-
++	cd doc && $(INSTALL_DATA) $(TO_DOC) $(INSTALL_DOC)
++	cd test && $(INSTALL_DATA) $(TO_TEST) $(INSTALL_TEST)
+ ranlib:
+ 	cd src && cd $(INSTALL_LIB) && $(RANLIB) $(TO_LIB)
+
+--- lua-5.1.4/src/Makefile.orig	Sat Jan 19 11:37:58 2008
++++ lua-5.1.4/src/Makefile	Wed Feb 16 15:43:24 2011
+@@ -4,25 +4,24 @@
+ 
+ # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
+ 
+-# Your platform. See PLATS for possible values.
+-PLAT= none
+-
+-CC= gcc
+-CFLAGS= -O2 -Wall $(MYCFLAGS)
++CC=$(CC)
++CFLAGS= -xO3 -Xc -Kpic $(MYCFLAGS)
++FLAG_SPARC:sh=	if [ ${MACH64} = "sparcv9" ]; then echo -xcode=pic13; fi
++CFLAGS= $(FLAG_SPARC)
+ AR= ar rcu
+ RANLIB= ranlib
+ RM= rm -f
+-LIBS= -lm $(MYLIBS)
++LIBS= -lm -lc $(MYLIBS)
+ 
+ MYCFLAGS=
+-MYLDFLAGS=
++MYLDFLAGS= -zdefs -ztext
+ MYLIBS=
+ 
+ # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
+ 
+-PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
++PLATS= solaris
+ 
+-LUA_A=	liblua.a
++LUA_SO=	liblua.so
+ CORE_O=	lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
+ 	lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o  \
+ 	lundump.o lvm.o lzio.o
+@@ -36,10 +35,10 @@
+ LUAC_O=	luac.o print.o
+ 
+ ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
+-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
+-ALL_A= $(LUA_A)
++ALL_T= $(LUA_SO) $(LUA_T) $(LUAC_T)
++ALL_A= $(LUA_SO)
+ 
+-default: $(PLAT)
++default: solaris
+ 
+ all:	$(ALL_T)
+ 
+@@ -47,15 +46,15 @@
+ 
+ a:	$(ALL_A)
+ 
+-$(LUA_A): $(CORE_O) $(LIB_O)
+-	$(AR) $@ $?
+-	$(RANLIB) $@
++$(LUA_SO): $(CORE_O) $(LIB_O)
++	$(CC) -o $(LUA_SO) -G -h $(LUA_SO) $(CFLAGS) $(MYLDFLAGS) $(CORE_O) \
++	$(LIB_O) $(LIBS)
+ 
+-$(LUA_T): $(LUA_O) $(LUA_A)
+-	$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
++$(LUA_T): $(LUA_O) $(LUA_SO)
++	$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_SO) $(LIBS)
+ 
+-$(LUAC_T): $(LUAC_O) $(LUA_A)
+-	$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
++$(LUAC_T): $(LUAC_O) $(LUA_SO)
++	$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_SO) $(LIBS)
+ 
+ clean:
+ 	$(RM) $(ALL_T) $(ALL_O)
+@@ -74,46 +73,8 @@
+ 	@echo "MYLDFLAGS = $(MYLDFLAGS)"
+ 	@echo "MYLIBS = $(MYLIBS)"
+ 
+-# convenience targets for popular platforms
+-
+-none:
+-	@echo "Please choose a platform:"
+-	@echo "   $(PLATS)"
+-
+-aix:
+-	$(MAKE) all CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS="-brtl -bexpall"
+-
+-ansi:
+-	$(MAKE) all MYCFLAGS=-DLUA_ANSI
+-
+-bsd:
+-	$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E"
+-
+-freebsd:
+-	$(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lreadline"
+-
+-generic:
+-	$(MAKE) all MYCFLAGS=
+-
+-linux:
+-	$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
+-
+-macosx:
+-	$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-lreadline"
+-# use this on Mac OS X 10.3-
+-#	$(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX
+-
+-mingw:
+-	$(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \
+-	"AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
+-	"MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe
+-	$(MAKE) "LUAC_T=luac.exe" luac.exe
+-
+-posix:
+-	$(MAKE) all MYCFLAGS=-DLUA_USE_POSIX
+-
+ solaris:
+-	$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl"
++	$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -D__EXTENSIONS__" MYLIBS="-ldl"
+ 
+ # list targets that do not create files (but not all makes understand .PHONY)
+ .PHONY: all $(PLATS) default o a clean depend echo none
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/lua/2.lua.pc.patch	Mon Feb 21 15:51:40 2011 -0800
@@ -0,0 +1,35 @@
+--- lua-5.1.4/etc/lua.pc.orig	Fri Aug  8 05:46:11 2008
++++ lua-5.1.4/etc/lua.pc	Tue Feb 15 18:30:23 2011
+@@ -1,22 +1,6 @@
+ # lua.pc -- pkg-config data for Lua
+ 
+-# vars from install Makefile
+-
+-# grep '^V=' ../Makefile
+-V= 5.1
+-# grep '^R=' ../Makefile
+-R= 5.1.4
+-
+-# grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/'
+-prefix= /usr/local
+-INSTALL_BIN= ${prefix}/bin
+-INSTALL_INC= ${prefix}/include
+-INSTALL_LIB= ${prefix}/lib
+-INSTALL_MAN= ${prefix}/man/man1
+-INSTALL_LMOD= ${prefix}/share/lua/${V}
+-INSTALL_CMOD= ${prefix}/lib/lua/${V}
+-
+-# canonical vars
++prefix=${PROTO_DIR}/usr
+ exec_prefix=${prefix}
+ libdir=${exec_prefix}/lib
+ includedir=${prefix}/include
+@@ -23,7 +7,7 @@
+ 
+ Name: Lua
+ Description: An Extensible Extension Language
+-Version: ${R}
++Version: 5.1.4
+ Requires: 
+ Libs: -L${libdir} -llua -lm
+ Cflags: -I${includedir}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/lua/3.headers.patch	Mon Feb 21 15:51:40 2011 -0800
@@ -0,0 +1,67 @@
+--- lua-5.1.4/src/lua.h.orig	2009-01-06 02:15:11.179130113 -0800
++++ lua-5.1.4/src/lua.h	2009-01-06 02:15:56.570695998 -0800
+@@ -9,6 +9,10 @@
+ #ifndef lua_h
+ #define lua_h
+ 
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ #include <stdarg.h>
+ #include <stddef.h>
+ 
+@@ -384,5 +388,8 @@
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ ******************************************************************************/
+ 
++#ifdef __cplusplus
++}
++#endif
+ 
+ #endif
+--- lua-5.1.4/src/lualib.h.orig	2009-01-06 02:15:19.193417835 -0800
++++ lua-5.1.4/src/lualib.h	2009-01-06 02:16:20.502288036 -0800
+@@ -8,6 +8,10 @@
+ #ifndef lualib_h
+ #define lualib_h
+ 
++#ifdef __cplusplus
++extern "C" {
++#endif
++
+ #include "lua.h"
+ 
+ 
+@@ -49,5 +53,8 @@
+ #define lua_assert(x)	((void)0)
+ #endif
+ 
++#ifdef __cplusplus
++}
++#endif
+ 
+ #endif
+--- lua-5.1.4/src/lauxlib.h.orig	2009-01-06 02:15:37.967244620 -0800
++++ lua-5.1.4/src/lauxlib.h	2009-01-06 02:16:26.398180986 -0800
+@@ -8,6 +8,9 @@
+ #ifndef lauxlib_h
+ #define lauxlib_h
+ 
++#ifdef __cplusplus
++extern "C" {
++#endif
+ 
+ #include <stddef.h>
+ #include <stdio.h>
+@@ -169,6 +172,10 @@
+ 
+ #define luaL_reg	luaL_Reg
+ 
++#ifdef __cplusplus
++}
++#endif
++
+ #endif
+ 
+ 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/lua/Makefile	Mon Feb 21 15:51:40 2011 -0800
@@ -0,0 +1,63 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+include ../../make-rules/shared-macros.mk
+
+COMPONENT_NAME=		lua
+COMPONENT_VERSION=	5.1.4
+COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH=	sha1:2b11c8e60306efb7f0734b747588f57995493db7
+COMPONENT_ARCHIVE_URL=	http://www.lua.org/ftp/$(COMPONENT_ARCHIVE)
+
+include ../../make-rules/prep.mk
+include ../../make-rules/justmake.mk
+include ../../make-rules/ips.mk
+
+CFLAGS +=-KPIC -D_FILE_OFFSET_BITS=64 
+
+COMPONENT_BUILD_ENV += CC="$(CC)"
+COMPONENT_BUILD_TARGETS += CC="$(CC)"
+COMPONENT_BUILD_TARGETS += CFLAGS="$(CFLAGS)"
+COMPONENT_INSTALL_TARGETS += INSTALL_TOP=$(PROTOUSRDIR)
+
+include ../../make-rules/shared-targets.mk
+
+# common targets
+build:		$(BUILD_32_and_64)
+
+	
+install:	build $(INSTALL_32)
+		$(MKDIR) $(PROTOUSRDIR)/lib/pkgconfig
+		$(CP) $(SOURCE_DIR)/etc/lua.pc $(PROTOUSRDIR)/lib/pkgconfig
+		$(MKDIR) $(PROTOUSRLIBDIR64) 
+		$(INSTALL) $(BUILD_DIR_64)/src/liblua.so $(PROTOUSRLIBDIR64)
+		
+test:  build
+	@cd $(BUILD_DIR_32); $(MAKE) check
+	@cd $(BUILD_DIR_64); $(MAKE) check
+
+		
+BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
+
+include ../../make-rules/depend.mk
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/lua/SUNWlua.p5m	Mon Feb 21 15:51:40 2011 -0800
@@ -0,0 +1,33 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+
+#
+# Legacy package information for renamed SUNWlua package
+#
+
+set name=pkg.fmri value=pkg:/[email protected],5.11-0.133
+set name=pkg.renamed value=true
+
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+depend fmri=runtime/[email protected] type=require
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/lua/lua.license	Mon Feb 21 15:51:40 2011 -0800
@@ -0,0 +1,34 @@
+Lua License
+-----------
+
+Lua is licensed under the terms of the MIT license reproduced below.
+This means that Lua is free software and can be used for both academic
+and commercial purposes at absolutely no cost.
+
+For details and rationale, see http://www.lua.org/license.html .
+
+===============================================================================
+
+Copyright (C) 1994-2008 Lua.org, PUC-Rio.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+===============================================================================
+
+(end of COPYRIGHT)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/lua/lua.p5m	Mon Feb 21 15:51:40 2011 -0800
@@ -0,0 +1,93 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+#
+set name=pkg.fmri value=pkg:/runtime/lua@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="Lua Programming language"
+set name=pkg.description value="Lua is a powerful, fast, lightweight, embeddable scripting language."
+set name=info.classification value="org.opensolaris.category.2008:Development/Other Languages"
+set name=info.upstream_url value=http://www.lua.org
+set name=info.source_url value=$(COMPONENT_ARCHIVE_URL)
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+
+dir path=usr
+dir path=usr
+dir path=usr/bin
+dir path=usr/demo
+dir path=usr/demo/lua
+dir path=usr/demo/lua/test
+dir path=usr/include
+dir path=usr/lib
+dir path=usr/lib/$(MACH64)
+dir path=usr/lib/pkgconfig
+dir path=usr/share
+dir path=usr/share/doc
+dir path=usr/share/doc/lua
+dir path=usr/share/man
+dir path=usr/share/man/man1
+file path=usr/share/doc/lua/manual.html
+file path=usr/bin/lua 
+file path=usr/share/doc/lua/readme.html 
+file path=usr/share/doc/lua/lua.html 
+file path=usr/demo/lua/test/table.lua
+file path=usr/share/man/man1/luac.1 
+file path=usr/demo/lua/test/trace-globals.lua 
+file path=usr/share/doc/lua/logo.gif 
+file path=usr/include/lauxlib.h 
+file path=usr/lib/pkgconfig/lua.pc 
+file path=usr/share/doc/lua/luac.html
+file path=usr/demo/lua/test/globals.lua 
+file path=usr/demo/lua/test/readonly.lua
+file path=usr/demo/lua/test/hello.lua 
+file path=usr/demo/lua/test/cf.lua 
+file path=usr/demo/lua/test/fib.lua 
+file path=usr/demo/lua/test/fibfor.lua 
+file path=usr/lib/liblua.so 
+file path=usr/share/doc/lua/manual.css
+file path=usr/demo/lua/test/luac.lua 
+file path=usr/demo/lua/test/life.lua 
+file path=usr/demo/lua/test/sieve.lua 
+file path=usr/demo/lua/test/sort.lua 
+file path=usr/share/man/man1/lua.1 
+file path=usr/demo/lua/test/echo.lua 
+file path=usr/bin/luac 
+file path=usr/share/doc/lua/lua.css 
+file path=usr/demo/lua/test/trace-calls.lua 
+file path=usr/share/doc/lua/cover.png 
+file path=usr/share/doc/lua/amazon.gif 
+file path=usr/include/luaconf.h 
+file path=usr/demo/lua/test/env.lua 
+file path=usr/share/doc/lua/contents.html 
+file path=usr/include/lua.h 
+file path=usr/demo/lua/test/xd.lua 
+file path=usr/lib/$(MACH64)/liblua.so 
+file path=usr/include/lualib.h 
+file path=usr/demo/lua/test/bisect.lua 
+file path=usr/demo/lua/test/factorial.lua 
+file path=usr/demo/lua/test/printf.lua 
+
+
+license lua.license license="MIT"
+
+legacy  pkg=SUNWlua \
+	name="lua - Lua Programming language" \
+	desc="lua - Lua Programming language 5.1.4" 
+