aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/node.rb
diff options
context:
space:
mode:
authorJack Nagel2012-08-12 19:03:04 -0500
committerJack Nagel2012-08-12 19:03:04 -0500
commitb13339ab61696fcdbc7fd0c73b3f3d6265783dac (patch)
treee93e3c65e2ed9f92fc3c73f6f16ba4410dde2151 /Library/Formula/node.rb
parent921bb743d0b31eb56d2967d292551cf5eb245213 (diff)
downloadhomebrew-b13339ab61696fcdbc7fd0c73b3f3d6265783dac.tar.bz2
node: use options DSL
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/node.rb')
-rw-r--r--Library/Formula/node.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index 63e3e2e0c..ee8ea86db 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -10,6 +10,8 @@ class Node < Formula
# Leopard OpenSSL is not new enough, so use our keg-only one
depends_on 'openssl' if MacOS.leopard?
+ option 'enable-debug', 'Build with debugger hooks'
+
fails_with :llvm do
build 2326
end
@@ -17,14 +19,10 @@ class Node < Formula
# Stripping breaks dynamic loading
skip_clean :all
- def options
- [["--enable-debug", "Build with debugger hooks."]]
- end
-
def install
# Why skip npm install? Read https://github.com/mxcl/homebrew/pull/8784.
args = ["--prefix=#{prefix}", "--without-npm"]
- args << "--debug" if ARGV.include? '--enable-debug'
+ args << "--debug" if build.include? 'enable-debug'
system "./configure", *args
system "make install"