summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Glagolev2011-12-17 22:31:35 +0400
committerVlad Glagolev2011-12-17 22:31:35 +0400
commit9f655f66bec434e8f78fba823da60eb50c15d323 (patch)
tree5ef534e16c1bf01dd565dfc560b4577d0401aa33
parent45cdd882bd3d2106b29479f98396471a76edb0af (diff)
luasocket: Lua 5.2 compatdevel-lua52
-rwxr-xr-xlua-forge/luasocket/DEPENDS2
-rw-r--r--lua-forge/luasocket/HISTORY2
-rwxr-xr-xlua-forge/luasocket/PRE_BUILD3
3 files changed, 5 insertions, 2 deletions
diff --git a/lua-forge/luasocket/DEPENDS b/lua-forge/luasocket/DEPENDS
index 9371d4a5b7..9dc721957c 100755
--- a/lua-forge/luasocket/DEPENDS
+++ b/lua-forge/luasocket/DEPENDS
@@ -1 +1 @@
-depends lua51
+depends lua
diff --git a/lua-forge/luasocket/HISTORY b/lua-forge/luasocket/HISTORY
index 9bc4b34593..5dddba0590 100644
--- a/lua-forge/luasocket/HISTORY
+++ b/lua-forge/luasocket/HISTORY
@@ -1,5 +1,5 @@
2011-12-17 Vlad Glagolev <stealth@sourcemage.org>
- * DEPENDS: lua -> lua51
+ * PRE_BUILD: lua 5.2 compat
2011-04-16 Andra┼ż "ruskie" Levstik <ruskie+f03a580f@codemages.net>
* luasocket-2.0.2-unixsocket.patch: fixes a bug with luasocket
diff --git a/lua-forge/luasocket/PRE_BUILD b/lua-forge/luasocket/PRE_BUILD
index 749634b46f..500fa4b30a 100755
--- a/lua-forge/luasocket/PRE_BUILD
+++ b/lua-forge/luasocket/PRE_BUILD
@@ -1,6 +1,9 @@
default_pre_build &&
cd $SOURCE_DIRECTORY &&
+# Lua 5.2 compat
+sedit "s:luaL_reg:luaL_Reg:g" src/*.h src/*.c &&
+
patch -p0 < "$SPELL_DIRECTORY/config.patch" &&
patch -p1 < $SPELL_DIRECTORY/luasocket-2.0.2-unixsocket.patch &&
sed -i "s:/usr/local:$INSTALL_ROOT/usr:" config