pkgsrc/lang/lua/Makefile
jtb 73eeabad22 Update to version 5.0.
* Changes from version 4.0 to 5.0
  -------------------------------
  Language:
  + lexical scoping.
  + Lua coroutines.
  + standard libraries now packaged in tables.
  + tags replaced by metatables and tag methods replaced by metamethods,
    stored in metatables.
  + proper tail calls.
  + each function can have its own global table, which can be shared.
  + new __newindex metamethod, called when we insert a new key into a table.
  + new block comments: --[[ ... ]].
  + new generic for.
  + new weak tables.
  + new boolean type.
  + new syntax "local function".
  + (f()) returns the first value returned by f.
  + {f()} fills a table with all values returned by f.
  + \n ignored in [[\n .
  + fixed and-or priorities.
  + more general syntax for function definition (e.g. function a.x.y:f()...end).
  + more general syntax for function calls (e.g. (print or write)(9)).
  + new functions (time/date, tmpfile, unpack, require, load*, etc.).
  API:
  + chunks are loaded by using lua_load; new luaL_loadfile and luaL_loadbuffer.
  + introduced lightweight userdata, a simple "void*" without a metatable.
  + new error handling protocol: the core no longer prints error messages;
    all errors are reported to the caller on the stack.
  + new lua_atpanic for host cleanup.
  + new, signal-safe, hook scheme.
  Implementation:
  + new license: MIT.
  + new, faster, register-based virtual machine.
  + support for external multithreading and coroutines.
  + new and consistent error message format.
  + the core no longer needs "stdio.h" for anything (except for a single
    use of sprintf to convert numbers to strings).
  + lua.c now runs the environment variable LUA_INIT, if present. It can
    be "@filename", to run a file, or the chunk itself.
  + support for user extensions in lua.c.
    sample implementation given for command line editing.
  + new dynamic loading library, active by default on several platforms.
  + safe garbage-collector metamethods.
  + precompiled bytecodes checked for integrity (secure binary dostring).
  + strings are fully aligned.
  + position capture in string.find.
  + read('*l') can read lines with embedded zeros.
2003-04-29 23:33:56 +00:00

48 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2003/04/29 23:33:56 jtb Exp $
DISTNAME= lua-5.0
CATEGORIES= lang
MASTER_SITES= ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
ftp://ftp.ntua.gr/pub/lang/lua/ \
ftp://ftp.gwdg.de/pub/languages/lua/ \
ftp://ftp.u-aizu.ac.jp/pub/lang/lua/ \
ftp://ftp.ucore.com/lua/dist/ \
ftp://sunsite.dk/pub/languages/lua/ \
ftp://ftp.chg.ru/pub/lang/lua/ \
http://www.lua.org/ftp/ \
http://www.tecgraf.puc-rio.br/lua/ftp/ \
http://ftp.gwdg.de/pub/languages/lua/ \
http://mirrors.sunsite.dk/lua/ \
http://ftp.chg.ru/pub/lang/lua/
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.lua.org
COMMENT= Powerful light-weight language for extending applications
USE_BUILDLINK2= yes
BUILD_DIRS= ${WRKSRC}/objdir
post-extract:
${MKDIR} ${BUILD_DIRS}
post-patch:
${CP} ${WRKSRC}/doc/lua.1 ${BUILD_DIRS}/lua
${CP} ${WRKSRC}/doc/luac.1 ${BUILD_DIRS}/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 && ${INSTALL_DATA} README *.lua \
${PREFIX}/share/examples/lua
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lua/etc
cd ${WRKSRC}/etc && ${INSTALL_DATA} README *.c *.h \
*.lua lua.magic lua.xpm \
${PREFIX}/share/examples/lua/etc
.include "../../mk/bsd.pkg.mk"