Don't shadow install options in formulae

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-03-15 17:20:25 -05:00
parent 60df8c9997
commit 303b2f6d50
2 changed files with 4 additions and 4 deletions

View file

@ -12,11 +12,11 @@ class Luajit < Formula
fails_with_llvm "_Unwind_Exception_Class undeclared", :build => 2336
def options
[["--debug", "Build with debugging symbols."]]
[["--enable-debug", "Build with debugging symbols."]]
end
def install
if ARGV.include? '--debug'
if ARGV.include? '--enable-debug'
system "make", "CCDEBUG=-g", "PREFIX=#{prefix}",
"TARGET_CC=#{ENV['CC']}",
"amalg"

View file

@ -21,7 +21,7 @@ class Node < Formula
skip_clean :all
def options
[["--debug", "Build with debugger hooks."]]
[["--enable-debug", "Build with debugger hooks."]]
end
def install
@ -34,7 +34,7 @@ class Node < Formula
# Why skip npm install? Read https://github.com/mxcl/homebrew/pull/8784.
args = ["--prefix=#{prefix}", "--without-npm"]
args << "--debug" if ARGV.include? '--debug'
args << "--debug" if ARGV.include? '--enable-debug'
system "./configure", *args
system "make install"