aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/node.rb
blob: df3be4e97034ff1c1e1befb15f185944c028f66f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'formula'

class Node <Formula
  url 'http://nodejs.org/dist/node-v0.1.99.tar.gz'
  head 'git://github.com/ry/node.git'
  homepage 'http://nodejs.org/'
  md5 '641059d904fd87c29f16a31be862cabb'

  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
    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