aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-02-13 13:00:41 +0000
committerMike McQuaid2014-02-13 13:00:41 +0000
commitbae051dffa33c5addccc09beaf33a88c2e374ace (patch)
tree1db2037d9dcd336aa246e9b6371c8037d4e97c07 /Library
parentfa0f4d7dd6f96b6eda110f8131805d68d1a01390 (diff)
downloadhomebrew-bae051dffa33c5addccc09beaf33a88c2e374ace.tar.bz2
node: use build.with{,out}.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/node.rb6
1 files changed, 3 insertions, 3 deletions
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