homebrew-core/Formula/node.rb

27 lines
639 B
Ruby
Raw Normal View History

require 'formula'
class Node <Formula
url 'http://nodejs.org/dist/node-v0.1.101.tar.gz'
2009-12-20 12:47:19 +00:00
head 'git://github.com/ry/node.git'
homepage 'http://nodejs.org/'
md5 'd6bb2c6fb87631e4801d281486329d16'
2009-12-12 16:24:04 +00:00
aka 'node.js'
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
fails_with_llvm
2010-03-06 07:40:55 +00:00
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
end