From b13339ab61696fcdbc7fd0c73b3f3d6265783dac Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 12 Aug 2012 19:03:04 -0500 Subject: node: use options DSL Signed-off-by: Jack Nagel --- Library/Formula/node.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Library/Formula/node.rb') 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" -- cgit v1.2.3