1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

- Update to 5.1.4

- Use PORTDOCS facility
- Remove a simple patch and use REINPLACE_CMD instead
- Take maintainership
This commit is contained in:
Renato Botelho 2009-02-05 18:14:06 +00:00
parent cb23216638
commit 36d146f699
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=227679
4 changed files with 8 additions and 65 deletions

View File

@ -6,8 +6,7 @@
#
PORTNAME= lua
PORTVERSION= 5.1.3
PORTREVISION= 3
PORTVERSION= 5.1.4
CATEGORIES= lang
MASTER_SITES= http://www.lua.org/ftp/ \
ftp://ftp.tecgraf.puc-rio.br/pub/lua/ \
@ -16,7 +15,7 @@ MASTER_SITES= http://www.lua.org/ftp/ \
ftp://ftp.uni-trier.de/pub/languages/lua/ \
ftp://ftp.gwdg.de/pub/languages/lua/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= garga@FreeBSD.org
COMMENT= Small, compilable scripting language providing easy access to C code
USE_LUA= 5.1
@ -28,6 +27,7 @@ MAKE_ENV= LUA_SONAME="liblua-${LUA_VER}.so.${LUA_VER_SH}"
MAN1= lua-${LUA_VER}.1 luac-${LUA_VER}.1
DOCSDIR= ${PREFIX}/share/doc/${LUA_SUBDIR}
PORTDOCS= *
LATEST_LINK= ${LUA_SUBDIR}
LUA_BIN= lua luac
@ -57,6 +57,8 @@ post-patch:
s|^(INSTALL_CMOD=).*|\1 ${LUA_MODLIBDIR}| ; \
s|^(INSTALL_LMOD=).*|\1 ${LUA_MODSHAREDIR}|' \
${WRKSRC}/etc/lua.pc
@${REINPLACE_CMD} -e 's,rand *(,random(,g' \
${WRKSRC}/src/lmathlib.c
post-build:
@${RM} -f ${WRKSRC}/test/lua ${WRKSRC}/test/luac

View File

@ -1,3 +1,3 @@
MD5 (lua-5.1.3.tar.gz) = a70a8dfaa150e047866dc01a46272599
SHA256 (lua-5.1.3.tar.gz) = 6b5df2edaa5e02bf1a2d85e1442b2e329493b30b0c0780f77199d24f087d296d
SIZE (lua-5.1.3.tar.gz) = 215817
MD5 (lua-5.1.4.tar.gz) = d0870f2de55d59c1c8419f36e8fac150
SHA256 (lua-5.1.4.tar.gz) = b038e225eaf2a5b57c9bcc35cd13aa8c6c8288ef493d52970c9545074098af3a
SIZE (lua-5.1.4.tar.gz) = 216679

View File

@ -1,20 +0,0 @@
--- src/lmathlib.c.orig Thu Apr 27 23:42:51 2006
+++ src/lmathlib.c Thu Apr 27 23:43:27 2006
@@ -181,7 +181,7 @@
static int math_random (lua_State *L) {
/* the `%' avoids the (rare) case of r==1, and is needed also because on
some systems (SunOS!) `rand()' may return a value larger than RAND_MAX */
- lua_Number r = (lua_Number)(rand()%RAND_MAX) / (lua_Number)RAND_MAX;
+ lua_Number r = (lua_Number)(random()%RAND_MAX) / (lua_Number)RAND_MAX;
switch (lua_gettop(L)) { /* check number of arguments */
case 0: { /* no arguments */
lua_pushnumber(L, r); /* Number between 0 and 1 */
@@ -207,7 +207,7 @@
static int math_randomseed (lua_State *L) {
- srand(luaL_checkint(L, 1));
+ srandom(luaL_checkint(L, 1));
return 0;
}

View File

@ -15,47 +15,8 @@ lib/liblua-%%LUA_VER%%.so.%%LUA_VER_SH%%
%%LUA_LIBDIR%%/liblua.so
%%LUA_LIBDIR%%/liblua-%%LUA_VER%%.so.%%LUA_VER_SH%%
libdata/pkgconfig/lua-%%LUA_VER%%.pc
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/amazon.gif
%%PORTDOCS%%%%DOCSDIR%%/contents.html
%%PORTDOCS%%%%DOCSDIR%%/etc/Makefile
%%PORTDOCS%%%%DOCSDIR%%/etc/README
%%PORTDOCS%%%%DOCSDIR%%/etc/all.c
%%PORTDOCS%%%%DOCSDIR%%/etc/lua.ico
%%PORTDOCS%%%%DOCSDIR%%/etc/luavs.bat
%%PORTDOCS%%%%DOCSDIR%%/etc/min.c
%%PORTDOCS%%%%DOCSDIR%%/etc/noparser.c
%%PORTDOCS%%%%DOCSDIR%%/etc/strict.lua
%%PORTDOCS%%%%DOCSDIR%%/logo.gif
%%PORTDOCS%%%%DOCSDIR%%/lua.html
%%PORTDOCS%%%%DOCSDIR%%/luac.html
%%PORTDOCS%%%%DOCSDIR%%/manual.html
%%PORTDOCS%%%%DOCSDIR%%/readme.html
%%PORTDOCS%%%%DOCSDIR%%/test/README
%%PORTDOCS%%%%DOCSDIR%%/test/bisect.lua
%%PORTDOCS%%%%DOCSDIR%%/test/cf.lua
%%PORTDOCS%%%%DOCSDIR%%/test/echo.lua
%%PORTDOCS%%%%DOCSDIR%%/test/env.lua
%%PORTDOCS%%%%DOCSDIR%%/test/factorial.lua
%%PORTDOCS%%%%DOCSDIR%%/test/fib.lua
%%PORTDOCS%%%%DOCSDIR%%/test/fibfor.lua
%%PORTDOCS%%%%DOCSDIR%%/test/globals.lua
%%PORTDOCS%%%%DOCSDIR%%/test/hello.lua
%%PORTDOCS%%%%DOCSDIR%%/test/life.lua
%%PORTDOCS%%%%DOCSDIR%%/test/luac.lua
%%PORTDOCS%%%%DOCSDIR%%/test/printf.lua
%%PORTDOCS%%%%DOCSDIR%%/test/readonly.lua
%%PORTDOCS%%%%DOCSDIR%%/test/sieve.lua
%%PORTDOCS%%%%DOCSDIR%%/test/sort.lua
%%PORTDOCS%%%%DOCSDIR%%/test/table.lua
%%PORTDOCS%%%%DOCSDIR%%/test/trace-calls.lua
%%PORTDOCS%%%%DOCSDIR%%/test/trace-globals.lua
%%PORTDOCS%%%%DOCSDIR%%/test/xd.lua
@dirrm share/lua/%%LUA_VER%%
@dirrmtry share/lua
%%PORTDOCS%%@dirrm %%DOCSDIR%%/test
%%PORTDOCS%%@dirrm %%DOCSDIR%%/etc
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%LUA_LIBDIR%%
@dirrm lib/lua/%%LUA_VER%%
@dirrmtry lib/lua