diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/node.rb | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb index ae360b11a..5ec8afe3d 100644 --- a/Library/Formula/node.rb +++ b/Library/Formula/node.rb @@ -1,10 +1,17 @@ require 'formula' class Node < Formula - url 'http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz' + if ARGV.build_devel? + url 'http://nodejs.org/dist/v0.6.8/node-v0.7.0.tar.gz' + md5 '5aceaa4e7aa43d78f87005f468dd6e3a' + else + url 'http://nodejs.org/dist/v0.6.8/node-v0.6.8.tar.gz' + md5 '9fd7baa2d27b848c3134e6ae35bb87b2' + end + head 'https://github.com/joyent/node.git' + homepage 'http://nodejs.org/' - md5 '9fd7baa2d27b848c3134e6ae35bb87b2' # Leopard OpenSSL is not new enough, so use our keg-only one depends_on 'openssl' if MacOS.leopard? @@ -19,9 +26,11 @@ class Node < Formula end def install - inreplace 'wscript' do |s| - s.gsub! '/usr/local', HOMEBREW_PREFIX - s.gsub! '/opt/local/lib', '/usr/lib' + unless ARGV.build_devel? + inreplace 'wscript' do |s| + s.gsub! '/usr/local', HOMEBREW_PREFIX + s.gsub! '/opt/local/lib', '/usr/lib' + end end # Why skip npm install? Read https://github.com/mxcl/homebrew/pull/8784. |
