aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-06-28 19:46:09 -0500
committerJack Nagel2014-06-28 19:46:12 -0500
commit74604c4b230a8a622f4f7adb023fb32b45787d3a (patch)
treeb84fbc05f1968baf851a4b9bf69cf13a8ae3063e /Library
parent6d17cf7ee2698dcb6a118b69ce3f80f352c7bf23 (diff)
downloadhomebrew-74604c4b230a8a622f4f7adb023fb32b45787d3a.tar.bz2
luarocks: combine stable block
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/luarocks.rb24
1 files changed, 13 insertions, 11 deletions
diff --git a/Library/Formula/luarocks.rb b/Library/Formula/luarocks.rb
index c4d2669b6..2d581eeaf 100644
--- a/Library/Formula/luarocks.rb
+++ b/Library/Formula/luarocks.rb
@@ -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}",