aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/node.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/node.rb')
-rw-r--r--Library/Formula/node.rb16
1 files changed, 10 insertions, 6 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index 4ca003b94..98adeb949 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -18,9 +18,11 @@ class Node < Formula
sha256 "ce08b0a2769bcc135ca25639c9d411a038e93e0f5f5a83000ecde9b763c4dd83"
end
- head "https://github.com/joyent/node.git"
+ head "https://github.com/joyent/node.git", :branch => "v0.12"
- option "enable-debug", "Build with debugger hooks"
+ deprecated_option "enable-debug" => "with-debug"
+
+ option "with-debug", "Build with debugger hooks"
option "without-npm", "npm will not be installed"
option "without-completion", "npm bash completion will not be installed"
@@ -29,19 +31,21 @@ class Node < Formula
# Once we kill off SSLv3 in our OpenSSL consider forcing our OpenSSL
# over Node's shipped version with --shared-openssl.
# Would allow us quicker security fixes than Node's release schedule.
+ # This particular affects the devel build, which is ultra-slow release.
+ # See https://github.com/joyent/node/issues/3557 for prior discussion.
fails_with :llvm do
build 2326
end
resource "npm" do
- url "https://registry.npmjs.org/npm/-/npm-2.1.6.tgz"
- sha1 "a28e8b44f910b9ab056aa0b73c13c1f9459c9b37"
+ url "https://registry.npmjs.org/npm/-/npm-2.1.7.tgz"
+ sha1 "4b8315574b84136dad6a225ce8fb85e2d7d98502"
end
def install
args = %W{--prefix=#{prefix} --without-npm}
- args << "--debug" if build.include? "enable-debug"
+ args << "--debug" if build.with? "debug"
args << "--without-ssl2" << "--without-ssl3" if build.stable?
system "./configure", *args
@@ -90,7 +94,7 @@ class Node < Formula
if build.with? "npm"
s += <<-EOS.undent
- If you update npm do NOT use the npm upgrade command
+ If you update npm itself do NOT use the npm upgrade command
Instead execute:
npm install -g npm@latest
EOS