luarocks: combine stable block

This commit is contained in:
Jack Nagel 2014-06-28 19:46:09 -05:00
parent 9b6aeb200f
commit 597e6114d0

View file

@ -2,9 +2,20 @@ require 'formula'
class Luarocks < Formula
homepage 'http://luarocks.org'
stable do
url 'http://luarocks.org/releases/luarocks-2.1.2.tar.gz'
sha1 '406253d15c9d50bb0d09efa9807fb2ddd31cba9d'
# Remove writability checks in the install script.
# Homebrew checks that its install targets are writable, or fails with
# appropriate messaging if not. The check that luarocks does has been
# seen to have false positives, so remove it.
# TODO: better document the false positive cases, or remove this patch.
patch :DATA
end
head 'https://github.com/keplerproject/luarocks.git'
url 'http://luarocks.org/releases/luarocks-2.1.2.tar.gz'
sha1 '406253d15c9d50bb0d09efa9807fb2ddd31cba9d'
option 'with-luajit', 'Use LuaJIT instead of the stock Lua'
option 'with-lua52', 'Use Lua 5.2 instead of the stock Lua'
@ -24,15 +35,6 @@ class Luarocks < Formula
cause "Lua itself compiles with llvm, but may fail when other software tries to link."
end
# Remove writability checks in the install script.
# Homebrew checks that its install targets are writable, or fails with
# appropriate messaging if not. The check that luarocks does has been
# seen to have false positives, so remove it.
# TODO: better document the false positive cases, or remove this patch.
stable do
patch :DATA
end
def install
# Install to the Cellar, but direct modules to HOMEBREW_PREFIX
args = ["--prefix=#{prefix}",