diff options
author | Philip Paeps <philip@FreeBSD.org> | 2006-11-30 10:49:04 +0000 |
---|---|---|
committer | Philip Paeps <philip@FreeBSD.org> | 2006-11-30 10:49:04 +0000 |
commit | 9e1851c43070582f988c989375bf4ea69a7f1a35 (patch) | |
tree | 839c6753d8ec2f855ed2f726dd420e91ef49b232 /devel/lua-filename | |
parent | 144d2d9773499e9ccc2ad1d1037795a34ec82a37 (diff) | |
download | ports-9e1851c43070582f988c989375bf4ea69a7f1a35.tar.gz ports-9e1851c43070582f988c989375bf4ea69a7f1a35.zip |
Notes
Diffstat (limited to 'devel/lua-filename')
-rw-r--r-- | devel/lua-filename/Makefile | 14 | ||||
-rw-r--r-- | devel/lua-filename/files/patch-filename.lua | 13 |
2 files changed, 24 insertions, 3 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 ]]-- |