diff options
| author | Jack Nagel | 2012-08-12 19:03:04 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-08-12 19:03:04 -0500 |
| commit | b13339ab61696fcdbc7fd0c73b3f3d6265783dac (patch) | |
| tree | e93e3c65e2ed9f92fc3c73f6f16ba4410dde2151 /Library/Formula/node.rb | |
| parent | 921bb743d0b31eb56d2967d292551cf5eb245213 (diff) | |
| download | homebrew-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.rb | 8 |
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" |
