From bae051dffa33c5addccc09beaf33a88c2e374ace Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 13 Feb 2014 13:00:41 +0000 Subject: node: use build.with{,out}. --- Library/Formula/node.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index 1f731e2d6..cd9e3e8da 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -57,12 +57,12 @@ class Node < Formula args = %W{--prefix=#{prefix}} args << "--debug" if build.include? 'enable-debug' - args << "--without-npm" if build.include? 'without-npm' + args << "--without-npm" if build.without? "npm" system "./configure", *args system "make install" - unless build.include? 'without-npm' + if build.with? "npm" (lib/"node_modules/npm/npmrc").write("prefix = #{npm_prefix}\n") # Link npm manpages @@ -90,7 +90,7 @@ class Node < Formula end def caveats - if build.include? 'without-npm' then <<-end.undent + if build.without? "npm"; <<-end.undent Homebrew has NOT installed npm. If you later install it, you should supplement your NODE_PATH with the npm module folder: #{npm_prefix}/lib/node_modules -- cgit v1.2.3