aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/node.rb
diff options
context:
space:
mode:
authorelliottcable2010-08-08 21:08:08 -0800
committerAdam Vandenberg2010-08-09 08:26:04 -0700
commitf3e7c1bf7168279262252288de723c78ff30983e (patch)
treeb832d7f50c559f9d70f50e740e204a5b5d72735e /Library/Formula/node.rb
parentf2994f3b5df2bf1c368892b329a68f8d24594dd7 (diff)
downloadhomebrew-f3e7c1bf7168279262252288de723c78ff30983e.tar.bz2
Adding a --debug flag to the Node formula.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/node.rb')
-rwxr-xr-xLibrary/Formula/node.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index 38cd54e01..55b73ed02 100755
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -9,6 +9,10 @@ class Node <Formula
# Stripping breaks dynamic loading
skip_clean :all
+ def options
+ [["--debug", "Build with debugger hooks."]]
+ end
+
def install
fails_with_llvm
@@ -17,7 +21,10 @@ class Node <Formula
s.gsub! '/opt/local/lib', '/usr/lib'
end
- system "./configure", "--prefix=#{prefix}"
+ args = ["--prefix=#{prefix}"]
+ args << "--debug" if ARGV.include? '--debug'
+
+ system "./configure", *args
system "make install"
end
end