aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphilip <philip@FreeBSD.org>2006-11-30 18:49:04 +0800
committerphilip <philip@FreeBSD.org>2006-11-30 18:49:04 +0800
commit9c7038d90803476aa9f8e5147c87af52d145d9f5 (patch)
tree111880b259e4181f66bfa9b9ac5a19585b8e25c4
parentf46e95252345f09c2d939ebb14c84103b036b298 (diff)
downloadfreebsd-ports-gnome-9c7038d90803476aa9f8e5147c87af52d145d9f5.tar.gz
freebsd-ports-gnome-9c7038d90803476aa9f8e5147c87af52d145d9f5.tar.zst
freebsd-ports-gnome-9c7038d90803476aa9f8e5147c87af52d145d9f5.zip
Add devel/lua-filename to work with Lua 5.0 and Lua 5.1 and turn
devel/lua50-filename into a slave port of it. PR: ports/105990 Submitted by: Andrew Turner <andrew+ports@fubar.geek.nz> (maintainer) Repocopy by: marcus
-rw-r--r--devel/lua-filename/Makefile14
-rw-r--r--devel/lua-filename/files/patch-filename.lua13
-rw-r--r--devel/lua50-filename/Makefile21
-rw-r--r--devel/lua50-filename/distinfo3
-rw-r--r--devel/lua50-filename/pkg-descr3
5 files changed, 26 insertions, 28 deletions
diff --git a/devel/lua-filename/Makefile b/devel/lua-filename/Makefile
index c885a92d2c12..a229e6c07586 100644
--- a/devel/lua-filename/Makefile
+++ b/devel/lua-filename/Makefile
@@ -14,16 +14,24 @@ DISTFILES= filename.lua?rev=${PORTVERSION}
EXTRACT_ONLY= #
MAINTAINER= andrew+ports@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>
diff --git a/devel/lua-filename/files/patch-filename.lua b/devel/lua-filename/files/patch-filename.lua
new file mode 100644
index 000000000000..8341f9881509
--- /dev/null
+++ b/devel/lua-filename/files/patch-filename.lua
@@ -0,0 +1,13 @@
+--- filename.lua Mon Apr 17 10:52:51 2006
++++ filename.lua Wed Nov 29 15:16:47 2006
+@@ -1,8 +1,8 @@
+ -- $Id: filename.lua,v 1.2 2005/07/12 19:32:55 cpressey Exp $
+
+-module("filename")
+-
+ local POSIX = require("posix")
++local string = require("string")
++module("filename")
+
+ --[[----------]]--
+ --[[ FileName ]]--
diff --git a/devel/lua50-filename/Makefile b/devel/lua50-filename/Makefile
index c885a92d2c12..28d7e5c8563e 100644
--- a/devel/lua50-filename/Makefile
+++ b/devel/lua50-filename/Makefile
@@ -5,25 +5,8 @@
# $FreeBSD$
#
-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@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"
diff --git a/devel/lua50-filename/distinfo b/devel/lua50-filename/distinfo
deleted file mode 100644
index ca40911362d1..000000000000
--- a/devel/lua50-filename/distinfo
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 (filename.lua?rev=1.2) = 85157fb0a36a9f2a8b3b6a9f329a1fbe
-SHA256 (filename.lua?rev=1.2) = ff8d2648bf0aa17b8da197afec9f55c01a470e7b4448d19b1233efe879715f1a
-SIZE (filename.lua?rev=1.2) = 2888
diff --git a/devel/lua50-filename/pkg-descr b/devel/lua50-filename/pkg-descr
deleted file mode 100644
index ce9fcc2f3ddb..000000000000
--- a/devel/lua50-filename/pkg-descr
+++ /dev/null
@@ -1,3 +0,0 @@
-Package of routines for manipulating filenames. Also contains convenience
-functions for querying the status of files in the filesystem named by those
-filenames.