homebrew-core/Formula/node.rb
Aku Kotkavuo 408665c9e2 Update formula node.js to 0.1.97
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-05-31 17:48:49 -07:00

37 lines
842 B
Ruby

require 'formula'
class Node <Formula
url 'http://nodejs.org/dist/node-v0.1.97.tar.gz'
head 'git://github.com/ry/node.git'
homepage 'http://nodejs.org/'
md5 '4e80b775f9417cc8305fdec34646d8fb'
aka 'node.js'
depends_on 'gnutls' => :recommended
def skip_clean? path
# TODO: at some point someone should tweak this so it only skips clean
# for the bits that break the build otherwise
true
end
def install
ENV.gcc_4_2
inreplace %w{wscript configure} do |s|
s.gsub! '/usr/local', HOMEBREW_PREFIX
s.gsub! '/opt/local/lib', '/usr/lib'
end
system "./configure", "--prefix=#{prefix}"
system "make install"
end
def caveats; <<-EOS.undent
If you:
brew install rlwrap
then you can:
rlwrap node-repl
for a nicer command-line interface.
EOS
end
end