aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan2013-02-23 08:23:11 +0000
committerMike McQuaid2013-02-23 08:23:54 +0000
commit9f95fff3e43508bf7ec11ffefcf5120e5236cd27 (patch)
treee3a0860c896902a3bd1c7077983171ddf20e228b
parent35b0414670cc73c4050f911c89fc1602fa6a1d40 (diff)
downloadhomebrew-9f95fff3e43508bf7ec11ffefcf5120e5236cd27.tar.bz2
node: add with-shared-libs option
Closes #17900. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/node.rb17
1 files changed, 12 insertions, 5 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index 5a5407f87..a2ef2ddce 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -52,13 +52,13 @@ class Node < Formula
head 'https://github.com/joyent/node.git'
- # Leopard OpenSSL is not new enough, so use our keg-only one
- depends_on 'openssl' if MacOS.version == :leopard
- depends_on NpmNotInstalled unless build.include? 'without-npm'
- depends_on PythonVersion
-
option 'enable-debug', 'Build with debugger hooks'
option 'without-npm', 'npm will not be installed'
+ option 'with-shared-libs', 'Use Homebrew V8 and system OpenSSL, zlib'
+
+ depends_on NpmNotInstalled unless build.without? 'npm'
+ depends_on PythonVersion
+ depends_on 'v8' if build.with? 'shared-libs'
fails_with :llvm do
build 2326
@@ -73,6 +73,13 @@ class Node < Formula
ENV['DEVELOPER_DIR'] = MacOS.dev_tools_path unless MacOS::Xcode.installed?
args = %W{--prefix=#{prefix}}
+
+ if build.with? 'shared-libs'
+ args << '--shared-openssl' unless MacOS.version == :leopard
+ args << '--shared-v8'
+ args << '--shared-zlib'
+ end
+
args << "--debug" if build.include? 'enable-debug'
args << "--without-npm" if build.include? 'without-npm'