1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Add conflicts

- Fix a bug with some features
- Remove lib/liblua-compat-5.1.a and lib/liblua-compat-5.1_p.a as they are no
  longer needed

PR:		96068
Submitted by:	Andrew Turner <andrew+ports@fubar.geek.nz> (maintainer)
This commit is contained in:
Erwin Lansing 2006-04-20 08:45:36 +00:00
parent 9fe94a7638
commit 9e85136469
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159995
3 changed files with 13 additions and 3 deletions

View File

@ -16,6 +16,8 @@ COMMENT= Lua 5.1 package compatibility layer for Lua 5.0.x
BUILD_DEPENDS= ${LOCALBASE}/include/lua.h:${PORTSDIR}/lang/lua
CONFLICTS= luasocket-2.0
# Update these values when there is a new release
CVER= 5.1
CREV= r5
@ -26,7 +28,7 @@ LIBDIR= ${PREFIX}/lib
post-extract:
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
post-install:
do-install:
${MKDIR} ${PREFIX}/share/lua/5.0
${INSTALL_DATA} ${WRKSRC}/compat-5.1.lua ${PREFIX}/share/lua/5.0

View File

@ -0,0 +1,10 @@
--- compat-5.1.lua.orig Fri Apr 14 19:13:01 2006
+++ compat-5.1.lua Fri Apr 14 19:14:21 2006
@@ -260,6 +260,7 @@
ns._M = ns
ns._PACKAGE = gsub (modname, "[^.]*$", "")
end
+ setmetatable(ns, {__index = _G})
setfenv (2, ns)
for i, f in ipairs (arg) do
f (ns)

View File

@ -1,5 +1,3 @@
lib/liblua-compat-5.1.a
lib/liblua-compat-5.1_p.a
share/lua/5.0/compat-5.1.lua
@dirrmtry share/lua/5.0
@dirrmtry share/lua