ports/105990: Maintainer update of devel/lua50-filename
Andrew Turner
andrew+ports at fubar.geek.nz
Wed Nov 29 07:33:04 UTC 2006
>Number: 105990
>Category: ports
>Synopsis: Maintainer update of devel/lua50-filename
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Wed Nov 29 07:30:14 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Andrew Turner
>Release: FreeBSD 5.5-RC1 i386
>Organization:
None
>Environment:
System: FreeBSD serv.int.fubar.geek.nz 5.5-RC1 FreeBSD 5.5-RC1 #0: Mon May 15 14:09:18 NZST 2006 root at serv.int.fubar.geek.nz:/usr/obj/usr/src/sys/GENERIC i386
>Description:
The attached patch makes devel/lua50-filename work with both Lua 5.0 and 5.1
>How-To-Repeat:
>Fix:
1. Repocopy devel/lua50-filename to devel/lua-filename
2. Remove devel/lua50-filename/distinfo and devel/lua50-filename/pkg-descr
3. Add patch-filename.lua to devel/lua-filename/files
4. Apply port-devel-lua-filename.diff
--- port-devel-lua-filename.diff begins here ---
Index: devel/lua-filename/Makefile
===================================================================
RCS file: /cvsroot/ports/devel/lua50-filename/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- devel/lua-filename/Makefile 15 Sep 2006 08:17:06 -0000 1.3
+++ devel/lua-filename/Makefile 29 Nov 2006 01:41:37 -0000
@@ -14,16 +14,24 @@
EXTRACT_ONLY= #
MAINTAINER= andrew+ports at fubar.geek.nz
-COMMENT= Filename-manipulating functions for Lua 5.0.x
+COMMENT= Filename-manipulating functions for Lua 5
-USE_LUA= 5.0
+USE_LUA?= 5.1
+LUA_COMPS= posix
+.if ${USE_LUA} == 5.0
+LUA_COMPS+= compat51
+.endif
NO_BUILD= yes
NO_WRKSUBDIR= yes
PLIST_FILES= %%LUA_MODSHAREDIR%%/filename.lua
+post-extract:
+ echo ${LV}
+ ${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/filename.lua
+
do-install:
- ${INSTALL_DATA} ${DISTDIR}/${DISTFILES} \
+ ${INSTALL_DATA} ${WRKDIR}/filename.lua \
${LUA_MODSHAREDIR}/${DISTFILES:C/\?.*$//}
.include <bsd.port.mk>
Index: devel/lua50-filename/Makefile
===================================================================
RCS file: /cvsroot/ports/devel/lua50-filename/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- devel/lua50-filename/Makefile 15 Sep 2006 08:17:06 -0000 1.3
+++ devel/lua50-filename/Makefile 16 Sep 2006 11:20:24 -0000
@@ -5,25 +5,8 @@
# $FreeBSD: ports/devel/lua50-filename/Makefile,v 1.3 2006/09/15 08:17:06 linimon Exp $
#
-PORTNAME= filename
-PORTVERSION= 1.2
-CATEGORIES= devel
-MASTER_SITES= http://cvs.bsdinstaller.org/cgi-bin/cvsweb.cgi/installer/src/lib/lua/filename/
-PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
-DISTFILES= filename.lua?rev=${PORTVERSION}
-EXTRACT_ONLY= #
-
-MAINTAINER= andrew+ports at fubar.geek.nz
-COMMENT= Filename-manipulating functions for Lua 5.0.x
-
USE_LUA= 5.0
-NO_BUILD= yes
-NO_WRKSUBDIR= yes
-
-PLIST_FILES= %%LUA_MODSHAREDIR%%/filename.lua
-do-install:
- ${INSTALL_DATA} ${DISTDIR}/${DISTFILES} \
- ${LUA_MODSHAREDIR}/${DISTFILES:C/\?.*$//}
+MASTERDIR= ${.CURDIR}/../lua-filename
-.include <bsd.port.mk>
+.include "${MASTERDIR}/Makefile"
--- port-devel-lua-filename.diff ends here ---
--- patch-filename.lua begins here ---
--- filename.lua Mon Apr 17 10:52:51 2006
+++ filename.lua Wed Nov 29 12:37:50 2006
@@ -1,8 +1,7 @@
-- $Id: filename.lua,v 1.2 2005/07/12 19:32:55 cpressey Exp $
-module("filename")
-
local POSIX = require("posix")
+module("filename")
--[[----------]]--
--[[ FileName ]]--
--- patch-filename.lua ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list