Skip site navigation (1)Skip section navigation (2)
Date:      28 Apr 2006 06:49:14 -0000
From:      Richard Kiss <him@richardkiss.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jonny@jonny.eng.br, him@richardkiss.com
Subject:   ports/96449: lang/lua update to 5.1
Message-ID:  <20060428064914.31001.qmail@gizzywump.com>
Resent-Message-ID: <200604280650.k3S6oEvs022695@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         96449
>Category:       ports
>Synopsis:       lang/lua update to 5.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 28 06:50:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Richard Kiss
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD kalamalka.gizzywump.com 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Sep 21 01:47:57 PDT 2005 root@kalamalka.gizzywump.com:/mnt/usr/obj/mnt/usr/src/sys/GIZZYWUMP i386



>Description:
	Update to lua 5.1
>How-To-Repeat:
	NA
>Fix:

diff -ruN lua/Makefile lua-rk/Makefile
--- lua/Makefile	Sun Jul 10 04:11:10 2005
+++ lua-rk/Makefile	Thu Apr 27 23:33:00 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	lua
-PORTVERSION=	5.0.2
+PORTVERSION=	5.1
 PORTREVISION=	1
 CATEGORIES=	lang
 MASTER_SITES=	http://www.lua.org/ftp/ \
@@ -19,30 +19,14 @@
 MAINTAINER=	him@richardkiss.com
 COMMENT=	Small, compilable scripting language providing easy access to C code
 
-USE_REINPLACE=	yes
 MAN1=		lua.1 luac.1
-ALL_TARGET=	all so
-INSTALL_TARGET=	install soinstall
-INSTALLS_SHLIB=	YES
 
-do-configure:
-	${REINPLACE_CMD} \
-		-e 's|^\(MYCFLAGS=\).*$$|\1 ${CFLAGS}|' \
-		-e 's|^\(LOADLIB=\).*$$|\1 -DUSE_DLOPEN=1|' \
-		-e 's|^\(CC=\).*$$|\1 ${CC}|' \
-		-e 's|^\(STRIP=\).*$$|\1 ${STRIP_CMD}|' \
-		-e 's|^\(INSTALL_ROOT=\).*$$|\1 ${PREFIX}|' \
-		-e 's|^\(INSTALL_EXEC=\).*$$|\1 ${INSTALL_PROGRAM}|' \
-		-e 's|^\(INSTALL_DATA=\).*$$|\1 ${INSTALL_DATA}|' \
-		-e 's|^#\(USERCONF.*READLINE.*\)$$|\1|' \
-		-e 's|^\(EXTRA_LIBS=\).*$$|\1 -lm -lreadline -lhistory -lncurses|' \
-		-e 's|V=5.0|V=5|' \
-		${WRKSRC}/config
+MAKE_ARGS=bsd
 
 post-install:
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	@cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.gif ${DOCSDIR}
+	@cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html *.css *.gif ${DOCSDIR}
 .endif
 
 .if ${MACHINE_ARCH:L} == "amd64"
diff -ruN lua/distinfo lua-rk/distinfo
--- lua/distinfo	Sun Jan 29 05:00:23 2006
+++ lua-rk/distinfo	Thu Apr 27 23:17:28 2006
@@ -1,3 +1,3 @@
-MD5 (lua-5.0.2.tar.gz) = dea74646b7e5c621fef7174df83c34b1
-SHA256 (lua-5.0.2.tar.gz) = a6c85d85f912e1c321723084389d63dee7660b81b8292452b190ea7190dd73bc
-SIZE (lua-5.0.2.tar.gz) = 190442
+MD5 (lua-5.1.tar.gz) = 3e8dfe8be00a744cec2f9e766b2f2aee
+SHA256 (lua-5.1.tar.gz) = 7f5bb9061eb3b9ba1e406a5aa68001a66cb82bac95748839dc02dd10048472c1
+SIZE (lua-5.1.tar.gz) = 206877
diff -ruN lua/files/patch-ab lua-rk/files/patch-ab
--- lua/files/patch-ab	Sat May 10 15:29:24 2003
+++ lua-rk/files/patch-ab	Thu Apr 27 23:44:54 2006
@@ -1,6 +1,6 @@
---- src/lib/lmathlib.c.orig	Tue Mar 11 21:30:37 2003
-+++ src/lib/lmathlib.c	Fri May  9 02:32:59 2003
-@@ -170,7 +170,7 @@
+--- 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 */
@@ -9,7 +9,7 @@
    switch (lua_gettop(L)) {  /* check number of arguments */
      case 0: {  /* no arguments */
        lua_pushnumber(L, r);  /* Number between 0 and 1 */
-@@ -196,7 +196,7 @@
+@@ -207,7 +207,7 @@
  
  
  static int math_randomseed (lua_State *L) {
diff -ruN lua/files/patch-config lua-rk/files/patch-config
--- lua/files/patch-config	Tue Jul  5 15:16:13 2005
+++ lua-rk/files/patch-config	Wed Dec 31 16:00:00 1969
@@ -1,11 +0,0 @@
---- config.orig	Fri Apr 11 16:00:41 2003
-+++ config	Wed Jul  6 00:09:46 2005
-@@ -6,7 +6,7 @@
- LOADLIB=
- DLLIB=
- NUMBER=
--POPEN=
-+POPEN= -DUSE_POPEN=1
- TMPNAM=
- DEGREES=
- USERCONF=
diff -ruN lua/pkg-plist lua-rk/pkg-plist
--- lua/pkg-plist	Thu Apr  1 13:49:20 2004
+++ lua-rk/pkg-plist	Thu Apr 27 23:38:10 2006
@@ -1,18 +1,16 @@
-bin/lua
-bin/luac
-include/lauxlib.h
-include/lua.h
-include/lualib.h
-lib/liblua.a
-lib/liblua.so
-lib/liblua.so.5
-lib/liblualib.a
-lib/liblualib.so
-lib/liblualib.so.5
 %%DOCSDIR%%/contents.html
 %%DOCSDIR%%/logo.gif
+%%DOCSDIR%%/lua.css
 %%DOCSDIR%%/lua.html
 %%DOCSDIR%%/luac.html
 %%DOCSDIR%%/manual.html
 %%DOCSDIR%%/readme.html
+bin/lua
+bin/luac
+include/lauxlib.h
+include/lua.h
+include/lua.hpp
+include/luaconf.h
+include/lualib.h
+lib/liblua.a
 @dirrm %%DOCSDIR%%

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060428064914.31001.qmail>