diff options
| author | Dominyk Tiller | 2014-11-28 03:50:43 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-11-28 08:06:26 +0000 |
| commit | c0225126fd5d73f8c1e6b785e165b7f30fc97d82 (patch) | |
| tree | a9fe4f17390d5198eddf79da498c4231705855bf /Library/Formula | |
| parent | b1f844cb2710163fe37489614c2728bf4d40e16e (diff) | |
| download | homebrew-c0225126fd5d73f8c1e6b785e165b7f30fc97d82.tar.bz2 | |
node: npm bump
Primarily an npm bump. The other element is to deal with some of the
newer HEAD developments available.
Closes #34511.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/node.rb | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index c373963c5..5e789e869 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -18,7 +18,12 @@ class Node < Formula sha256 "ce08b0a2769bcc135ca25639c9d411a038e93e0f5f5a83000ecde9b763c4dd83" end - head "https://github.com/joyent/node.git", :branch => "v0.12" + 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" @@ -39,8 +44,8 @@ class Node < Formula end resource "npm" do - url "https://registry.npmjs.org/npm/-/npm-2.1.9.tgz" - sha1 "6e8860d3902f90e4b4819a7e70cf6cbb5fafa74d" + url "https://registry.npmjs.org/npm/-/npm-2.1.10.tgz" + sha1 "a571ae408ac1b5e515f6c34c033503a7bb828cb4" end def install @@ -48,6 +53,13 @@ class Node < Formula args << "--debug" if build.with? "debug" args << "--without-ssl2" << "--without-ssl3" if build.stable? + # This should eventually be able to use the system icu4c, but right now + # it expects to find this dependency using pkgconfig. + if build.head? + ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["icu4c"].opt_prefix}/lib/pkgconfig" + args << "--with-intl=system-icu" + end + system "./configure", *args system "make", "install" @@ -95,7 +107,7 @@ class Node < Formula if build.with? "npm" s += <<-EOS.undent If you update npm itself, do NOT use the npm update command. - The recommended way to update npm is: + The upstream-recommended way to update npm is: npm install -g npm@latest EOS else |
