Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

LuaRocks 2.0.7.1

Removed caveats, since they applied to a now-old upgrade of the
formula.
  • Loading branch information...
commit f7f96a830e7fb5b6346a56ca3792c7d129c21a41 1 parent faa75ef
Adam Vandenberg authored
Showing with 5 additions and 11 deletions.
  1. +5 −11 Library/Formula/luarocks.rb
16 Library/Formula/luarocks.rb
View
@@ -3,9 +3,9 @@
def use_luajit?; ARGV.include? '--with-luajit'; end
class Luarocks < Formula
- url 'http://luarocks.org/releases/luarocks-2.0.4.1.tar.gz'
homepage 'http://luarocks.org'
- md5 '2c7caccce3cdf236e6f9aca7bec9bdea'
+ url 'http://luarocks.org/releases/luarocks-2.0.7.1.tar.gz'
+ md5 '37003e5c78792e353acde684426bdeac'
depends_on use_luajit? ? 'luajit' : 'lua'
@@ -32,16 +32,10 @@ def install
system "./configure", *args
system "make"
+ ENV.j1 # 2.0.4.1 worked in parallel but 2.0.7.1 does not
system "make install"
end
- def caveats; <<-EOS.undent
- Luarocks now "just works" but this means any rocks you installed previously
- will need to be moved from `lib/luarocks/lib/luarocks` to `lib/luarocks`.
- You'll probably have a better time of it all if you just reinstall them.
- EOS
- end
-
def test
opoo "Luarocks test script installs 'lpeg'"
system "#{bin}/luarocks install lpeg"
@@ -50,7 +44,7 @@ def test
end
-# this patch because we set the permissions of /usr/local to root owned
+# This patch because we set the permissions of /usr/local to root owned
# not user writable to be "good" citizens of /usr/local. Actually LUA is being
# pedantic since all the directories it wants under /usr/local are writable
# so we just return true. Naughty, but I don't know LUA and don't want to
@@ -65,7 +59,7 @@ def test
-- plus an error message.
function check_command_permissions(flags)
- local root_dir = path.root_dir(cfg.rocks_dir)
-- if not flags["local"] and not fs.is_writable(root_dir) then
+- if not flags["local"] and not (fs.is_writable(root_dir) or fs.is_writable(dir.dir_name(root_dir))) then
- return nil, "Your user does not have write permissions in " .. root_dir ..
- " \n-- you may want to run as a privileged user or use your local tree with --local."
- end
Please sign in to comment.
Something went wrong with that request. Please try again.