aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-04-24 15:18:51 -0500
committerMisty De Meo2013-04-24 15:18:51 -0500
commit36d992d1d151d663960934f00da2533e37ffd8d5 (patch)
treefd13de636d5422399115a9f465bd1317fdddc9cb /Library
parent2cf21c31b6289da741888f6b795844e3a90b3fa5 (diff)
downloadhomebrew-36d992d1d151d663960934f00da2533e37ffd8d5.tar.bz2
node: doesn't require Xcode
This reverts commit 10e219de7e93f626e2c1f9141366f273a39f0c43. Multiple users have reported that node builds just fine with a CLT-only system, and provided build logs to show it. Restoring CLT-only support until a build failure is demonstrated again by another user.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/node.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index b5ece7b4b..805278203 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -59,16 +59,18 @@ class Node < Formula
depends_on PythonVersion
depends_on 'v8' if build.with? 'shared-libs'
- # gyp insists on using xcodebuild to find the SDK path, completely
- # breaking CLT-only systems.
- # See: https://code.google.com/p/gyp/issues/detail?id=292
- depends_on :xcode
-
fails_with :llvm do
build 2326
end
def install
+ # Lie to `xcode-select` for now to work around a GYP bug that affects
+ # CLT-only systems:
+ #
+ # http://code.google.com/p/gyp/issues/detail?id=292
+ # joyent/node#3681
+ ENV['DEVELOPER_DIR'] = MacOS.dev_tools_path unless MacOS::Xcode.installed?
+
args = %W{--prefix=#{prefix}}
if build.with? 'shared-libs'