node: Update to 0.6.4

Update node to 0.6.4. Added --without-npm option.
Added caveat regarding npm installation.

Closes Homebrew/homebrew#8925.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
master
John Earles 2011-12-01 22:19:47 -05:00 committed by Charlie Sharpsteen
parent b58404ff56
commit ff6a03fe6f
1 changed files with 12 additions and 4 deletions

View File

@ -1,10 +1,10 @@
require 'formula'
class Node < Formula
url 'http://nodejs.org/dist/v0.6.2/node-v0.6.2.tar.gz'
url 'http://nodejs.org/dist/v0.6.4/node-v0.6.4.tar.gz'
head 'https://github.com/joyent/node.git'
homepage 'http://nodejs.org/'
md5 '875431b2c2e3d0ebf5a676b3d96bf766'
md5 'a170bef450de365720223c3af3747bf7'
# Leopard OpenSSL is not new enough, so use our keg-only one
depends_on 'openssl' if MacOS.leopard?
@ -24,7 +24,7 @@ class Node < Formula
s.gsub! '/opt/local/lib', '/usr/lib'
end
args = ["--prefix=#{prefix}"]
args = ["--prefix=#{prefix}", "--without-npm"]
args << "--debug" if ARGV.include? '--debug'
# v0.6 appears to have a bug in parallel building
@ -36,6 +36,14 @@ class Node < Formula
end
def caveats
"Please add #{HOMEBREW_PREFIX}/lib/node_modules to your NODE_PATH environment variable to have node libraries picked up."
<<-EOS.undent
Homebrew has NOT installed npm. We recommend the following method of
installation:
curl http://npmjs.org/install.sh | sh
After installing, add the following path to your NODE_PATH enviornment
variable to have npm libraries picked up:
#{HOMEBREW_PREFIX}/lib/node_modules
EOS
end
end