aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorGary V. Vaughan2012-10-22 22:09:50 +0700
committerAdam Vandenberg2012-11-10 12:05:37 -0800
commit33e815ef21a32bf9a582a0bd7dd68c2ce7eba67d (patch)
tree9bdff239b64b6d227a3b9ef1b2a8943cbc0d9e9e /Library/Formula
parentecb3f96f2776d1035f9cb2f754eb4d29273543d8 (diff)
downloadhomebrew-33e815ef21a32bf9a582a0bd7dd68c2ce7eba67d.tar.bz2
luarocks-2.0.12
Add --with-lua52 support. Closes #15952. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/luarocks.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/Library/Formula/luarocks.rb b/Library/Formula/luarocks.rb
index c817d4634..f526b8c18 100644
--- a/Library/Formula/luarocks.rb
+++ b/Library/Formula/luarocks.rb
@@ -2,13 +2,16 @@ require 'formula'
class Luarocks < Formula
homepage 'http://luarocks.org'
- url 'http://luarocks.org/releases/luarocks-2.0.10.tar.gz'
- sha1 '90db1c46940816ae82a8037e585769e3e8845f66'
+ url 'http://luarocks.org/releases/luarocks-2.0.12.tar.gz'
+ sha1 'bfa36d5a9931c240c0253dee09c0cfb69372d276'
option 'with-luajit', 'Use LuaJIT instead of the stock Lua'
+ option 'with-lua52', 'Use Lua 5.2 instead of the stock Lua'
if build.include? 'with-luajit'
depends_on 'luajit'
+ elsif build.include? 'with-lua52'
+ depends_on 'lua52'
else
depends_on 'lua'
end
@@ -56,20 +59,25 @@ diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua
index 67c3ce0..2d149c7 100644
--- a/src/luarocks/fs/lua.lua
+++ b/src/luarocks/fs/lua.lua
-@@ -653,24 +653,5 @@ end
+@@ -669,29 +669,5 @@ end
-- @return boolean or (boolean, string): true on success, false on failure,
-- plus an error message.
function check_command_permissions(flags)
- local root_dir = path.root_dir(cfg.rocks_dir)
- local ok = true
- local err = ""
-- for _, dir in ipairs { cfg.rocks_dir, root_dir, dir.dir_name(root_dir) } do
+- for _, dir in ipairs { cfg.rocks_dir, root_dir } do
- if fs.exists(dir) and not fs.is_writable(dir) then
- ok = false
- err = "Your user does not have write permissions in " .. dir
- break
- end
- end
+- local root_parent = dir.dir_name(root_dir)
+- if ok and not fs.exists(root_dir) and not fs.is_writable(root_parent) then
+- ok = false
+- err = root_dir.." does not exist and your user does not have write permissions in " .. root_parent
+- end
- if ok then
- return true
- else