aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/node.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-01-22 18:34:07 -0800
committerAdam Vandenberg2012-01-22 18:34:07 -0800
commitfd2258dd3ee671d2d0271a96547943429e1bfaad (patch)
treefb2477acba0e4359215c0d05b27eb33e0f24797b /Library/Formula/node.rb
parent2e6cbf6df8b7285378fa7207d240102a6f59d8ae (diff)
downloadhomebrew-fd2258dd3ee671d2d0271a96547943429e1bfaad.tar.bz2
Node: add 0.7.0 as a --devel option
Diffstat (limited to 'Library/Formula/node.rb')
-rw-r--r--Library/Formula/node.rb19
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.