diff options
author | jtb <jtb@pkgsrc.org> | 2001-06-19 14:47:22 +0000 |
---|---|---|
committer | jtb <jtb@pkgsrc.org> | 2001-06-19 14:47:22 +0000 |
commit | 5bbe12b3e20bb1e8b122364886db1240eef359ff (patch) | |
tree | a73b78e3c58900ce132e6170cd8d6be30c739cb6 /lang/lua | |
parent | d8e26feb97903bf20bd40f1ee90dd766becbafe9 (diff) | |
download | pkgsrc-5bbe12b3e20bb1e8b122364886db1240eef359ff.tar.gz |
Initial import of lua.
Lua is a powerful, light-weight programming language designed for
extending applications. Lua is also frequently used as a
general-purpose, stand-alone language.
Lua combines simple procedural syntax (similar to Pascal) with
powerful data description constructs based on associative arrays and
extensible semantics. Lua is dynamically typed, interpreted from
bytecodes, and has automatic memory management, making it ideal for
configuration, scripting, and rapid prototyping.
Lua is a language engine that you can embed into your application.
This means that, besides syntax and semantics, Lua has an API that
allows the application to exchange data with Lua programs and also to
extend Lua with C functions. In this sense, Lua can be regarded as a
language framework for building domain-specific languages.
Lua is implemented as a small library of C functions, written in ANSI
C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.
The result is a fast language engine with small footprint, making it
ideal in embedded systems too.
Diffstat (limited to 'lang/lua')
-rw-r--r-- | lang/lua/Makefile | 33 | ||||
-rw-r--r-- | lang/lua/distinfo | 6 | ||||
-rw-r--r-- | lang/lua/patches/patch-aa | 58 | ||||
-rw-r--r-- | lang/lua/patches/patch-ab | 13 | ||||
-rw-r--r-- | lang/lua/pkg/DESCR | 21 | ||||
-rw-r--r-- | lang/lua/pkg/PLIST | 52 |
6 files changed, 183 insertions, 0 deletions
diff --git a/lang/lua/Makefile b/lang/lua/Makefile new file mode 100644 index 00000000000..069b1510798 --- /dev/null +++ b/lang/lua/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/06/19 14:47:22 jtb Exp $ + +DISTNAME= lua-4.0 +CATEGORIES= lang +MASTER_SITES= ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \ + ftp://csg.uwaterloo.ca/pub/lhf/lua/ \ + ftp://ftp.freesoftware.com/pub/languages/lua/ \ + ftp://ftp.gwdg.de/pub/languages/lua/ \ + ftp://ftp.ntua.gr/pub/lang/lua/ \ + ftp://ftp.u-aizu.ac.jp/pub/lang/lua/ \ + ftp://ftp.ucore.com/lua/dist/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.lua.org +COMMENT= Powerful, light-weight programming language for extending applications + +WRKSRC= ${WRKDIR}/lua + +post-extract: + @cd ${WRKSRC}/test; ${RM} -f lua luac + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lua + cd ${WRKSRC}; ${INSTALL_DATA} README COPYRIGHT \ + HISTORY ${PREFIX}/share/doc/lua + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/lua + cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.gif \ + ${PREFIX}/share/doc/html/lua + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lua + (cd ${WRKSRC}/test/; ${GTAR} cf - . ) | \ + (cd ${PREFIX}/share/examples/lua/; ${GTAR} xf -) + +.include "../../mk/bsd.pkg.mk" diff --git a/lang/lua/distinfo b/lang/lua/distinfo new file mode 100644 index 00000000000..f1800503003 --- /dev/null +++ b/lang/lua/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/06/19 14:47:22 jtb Exp $ + +SHA1 (lua-4.0.tar.gz) = 8d432c73ef6e98b81d252114be1a83182cc9607a +Size (lua-4.0.tar.gz) = 157102 bytes +SHA1 (patch-aa) = d925fcf677c2fed99ebf56805f1fa121ad9133e4 +SHA1 (patch-ab) = 89c41b48f075254b27d68f3a25fdc64719d5f8b9 diff --git a/lang/lua/patches/patch-aa b/lang/lua/patches/patch-aa new file mode 100644 index 00000000000..45f04662110 --- /dev/null +++ b/lang/lua/patches/patch-aa @@ -0,0 +1,58 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/06/19 14:47:23 jtb Exp $ + +--- config.orig Tue Jun 19 14:57:50 2001 ++++ config +@@ -14,7 +14,7 @@ + + # If you want support for pipes, uncomment the following line. + # You need popen in your C library. +-#POPEN= -DPOPEN ++POPEN= -DPOPEN + + # If you need compatibility with previous versions, edit and uncomment the + # definition of COMPAT below. +@@ -28,7 +28,7 @@ + # ------------------------------------------------------------------ C compiler + + # You need an ANSI C compiler. gcc is a popular one. +-CC= gcc ++#CC= gcc + WARN= -ansi -pedantic -Wall + + # On IRIX, cc is a good ANSI compiler. +@@ -65,22 +65,22 @@ + + # If your system doesn't have (or need) ranlib, use RANLIB=true. + # On some systems, "ar s" does what ranlib would do. +-RANLIB= ranlib ++#RANLIB= ranlib + #RANLIB= ar s + #RANLIB= true + + # ------------------------------------------------------------------ install + + # Locations for "make install". You may need to be root do "make install". +-INSTALL_ROOT= /usr/local ++INSTALL_ROOT= ${PREFIX} + INSTALL_BIN= $(INSTALL_ROOT)/bin + INSTALL_INC= $(INSTALL_ROOT)/include + INSTALL_LIB= $(INSTALL_ROOT)/lib + INSTALL_MAN= $(INSTALL_ROOT)/man/man1 + + # You might prefer to use "install" if you have it. +-INSTALL_EXEC= cp +-INSTALL_DATA= cp ++INSTALL_EXEC= ${BSD_INSTALL_PROGRAM} ++INSTALL_DATA= ${BSD_INSTALL_DATA} + #INSTALL_EXEC= install -m 0755 + #INSTALL_DATA= install -m 0644 + +@@ -93,7 +93,7 @@ + INCS= -I$(INC) $(EXTRA_INCS) + DEFS= $(COMPAT) $(NUMBER) $(OLD_ANSI) $(EXTRA_DEFS) + +-CFLAGS= -O2 $(WARN) $(INCS) $(DEFS) ++CFLAGS+= $(WARN) $(INCS) $(DEFS) + + V=4.0 + diff --git a/lang/lua/patches/patch-ab b/lang/lua/patches/patch-ab new file mode 100644 index 00000000000..c96f7ce86ed --- /dev/null +++ b/lang/lua/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/06/19 14:47:23 jtb Exp $ + +--- Makefile.orig Tue Jun 19 15:18:13 2001 ++++ Makefile +@@ -19,7 +19,7 @@ + strip bin/lua bin/luac + + # official installation +-install: all strip ++install: all + mkdir -p $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) + $(INSTALL_EXEC) bin/* $(INSTALL_BIN) + $(INSTALL_DATA) include/*.h $(INSTALL_INC) diff --git a/lang/lua/pkg/DESCR b/lang/lua/pkg/DESCR new file mode 100644 index 00000000000..b3e57a165fe --- /dev/null +++ b/lang/lua/pkg/DESCR @@ -0,0 +1,21 @@ +Lua is a powerful, light-weight programming language designed for +extending applications. Lua is also frequently used as a +general-purpose, stand-alone language. + +Lua combines simple procedural syntax (similar to Pascal) with +powerful data description constructs based on associative arrays and +extensible semantics. Lua is dynamically typed, interpreted from +bytecodes, and has automatic memory management, making it ideal for +configuration, scripting, and rapid prototyping. + +Lua is a language engine that you can embed into your application. +This means that, besides syntax and semantics, Lua has an API that +allows the application to exchange data with Lua programs and also to +extend Lua with C functions. In this sense, Lua can be regarded as a +language framework for building domain-specific languages. + +Lua is implemented as a small library of C functions, written in ANSI +C, and compiles unmodified in all known platforms. The implementation +goals are simplicity, efficiency, portability, and low embedding cost. +The result is a fast language engine with small footprint, making it +ideal in embedded systems too. diff --git a/lang/lua/pkg/PLIST b/lang/lua/pkg/PLIST new file mode 100644 index 00000000000..6bacb1f1df2 --- /dev/null +++ b/lang/lua/pkg/PLIST @@ -0,0 +1,52 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/19 14:47:23 jtb Exp $ +bin/lua +bin/luac +include/lauxlib.h +include/lua.h +include/luadebug.h +include/lualib.h +lib/liblua.a +lib/liblualib.a +man/man1/lua.1 +man/man1/luac.1 +share/doc/html/lua/idx.html +share/doc/html/lua/index.html +share/doc/html/lua/logo.gif +share/doc/html/lua/lua.html +share/doc/html/lua/luac.html +share/doc/html/lua/manual.html +share/doc/html/lua/readme.html +share/doc/lua/COPYRIGHT +share/doc/lua/HISTORY +share/doc/lua/README +share/examples/lua/examples/ps/ps.lua +share/examples/lua/examples/ps/hilbert.lua +share/examples/lua/examples/www/db.lua +share/examples/lua/examples/www/README +share/examples/lua/examples/www/template.html +share/examples/lua/examples/www/staff.lua +share/examples/lua/life.lua +share/examples/lua/fib.lua +share/examples/lua/cf-for.lua +share/examples/lua/factorial.lua +share/examples/lua/save.lua +share/examples/lua/sort.lua +share/examples/lua/hello.lua +share/examples/lua/README +share/examples/lua/bisect.lua +share/examples/lua/cf.lua +share/examples/lua/globals.lua +share/examples/lua/webform.lua +share/examples/lua/qp.lua +share/examples/lua/lisp.lua +share/examples/lua/trace-globals.lua +share/examples/lua/undefined.lua +share/examples/lua/trace-calls.lua +share/examples/lua/old.lua +share/examples/lua/table.lua +@dirrm share/examples/lua/examples/www +@dirrm share/examples/lua/examples/ps +@dirrm share/examples/lua/examples +@dirrm share/examples/lua +@dirrm share/doc/lua +@dirrm share/doc/html/lua |