FixesHomebrew/homebrew#5735.
Our default install now doesn't make `/usr/local` group writable in an attempt to "play nicely", this caused luarocks to refuse to install anything because it would assume a non-writable prefix would mean it couldn't write any files. Which is an incorrect check since it only installs files to `prefix/lib`. So the check is removed with a patch if Homebrew is installed to `/usr/local`.
Also allow use with either Lua or LuaJIT
This patch lets you install luarocks against either the original Lua
interpreter, or against LuaJIT. Lua and LuaJIT are ABI-compatible, so
the rocks that you install should be compatible with both interpreters.
So we we can use the same path for installed rocks, regardless of which
interpreter we build luarocks against. This just affects which
interpreter is used to run luarocks itself.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
"brew audit" will now warn about commented-out dependencies.
Updated formulae that had these to either take them out or rewrite
the comments around them.
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.