LuaRocks 2.0.7.1
Removed caveats, since they applied to a now-old upgrade of the formula.
This commit is contained in:
parent
03ee96ee84
commit
2a1881c53b
1 changed files with 5 additions and 11 deletions
|
@ -3,9 +3,9 @@ require 'formula'
|
|||
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 @@ class Luarocks < Formula
|
|||
|
||||
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 @@ class Luarocks < Formula
|
|||
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 @@ index 3a547fe..ca4ddc5 100644
|
|||
-- 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
|
||||
|
|
Loading…
Reference in a new issue