diff options
Diffstat (limited to 'Library/Formula/node.rb')
| -rw-r--r-- | Library/Formula/node.rb | 50 |
1 files changed, 15 insertions, 35 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index 23d4354f2..b87aa0d44 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -1,8 +1,9 @@ # Note that x.even are stable releases, x.odd are devel releases class Node < Formula homepage "https://nodejs.org/" - url "https://nodejs.org/dist/v0.10.36/node-v0.10.36.tar.gz" - sha256 "b9d7d1d0294bce46686b13a05da6fc5b1e7743b597544aa888e8e64a9f178c81" + url "https://nodejs.org/dist/v0.12.0/node-v0.12.0.tar.gz" + sha256 "9700e23af4e9b3643af48cef5f2ad20a1331ff531a12154eef2bfb0bb1682e32" + head "https://github.com/joyent/node.git", :branch => "v0.12" bottle do sha1 "ca405f33a5c8e3356a0f477eee43e492e7925927" => :yosemite @@ -10,56 +11,35 @@ class Node < Formula sha1 "b5d7094ed826813b2cc35303bcde8269b1ad9292" => :mountain_lion end - devel do - url "https://nodejs.org/dist/v0.11.16/node-v0.11.16.tar.gz" - sha256 "f0d141faa1f7da3aff53e9615d76040d29c0650542be3b09ee80aca2f2cc61f6" - - depends_on "pkg-config" => :build - depends_on "icu4c" => :optional - depends_on "openssl" => :optional - end - - head do - url "https://github.com/joyent/node.git", :branch => "v0.12" - - depends_on "pkg-config" => :build - depends_on "icu4c" - end - - 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" - depends_on :python => :build + deprecated_option "enable-debug" => "with-debug" - # Once we kill off SSLv3 in our OpenSSL consider making our OpenSSL - # an optional dep across the whole range of Node releases. + depends_on :python => :build + depends_on "pkg-config" => :build + depends_on "icu4c" => :recommended + depends_on "openssl" => :optional fails_with :llvm do build 2326 end resource "npm" do - url "https://registry.npmjs.org/npm/-/npm-2.3.0.tgz" - sha1 "3588ec5c18fb5ac41e5721b0ea8ece3a85ab8b4b" + url "https://registry.npmjs.org/npm/-/npm-2.5.1.tgz" + sha1 "23e4b0fdd1ffced7d835780e692a9e5a0125bb02" end def install args = %W[--prefix=#{prefix} --without-npm] args << "--debug" if build.with? "debug" - args << "--without-ssl2" << "--without-ssl3" if build.stable? - args << "--with-intl=system-icu" if build.head? + args << "--with-intl=system-icu" if build.with? "icu4c" - if build.devel? - args << "--with-intl=system-icu" if build.with? "icu4c" - - if build.with? "openssl" - args << "--shared-openssl" - else - args << "--without-ssl2" << "--without-ssl3" - end + if build.with? "openssl" + args << "--shared-openssl" + else + args << "--without-ssl2" << "--without-ssl3" end system "./configure", *args |
