require 'formula' class Node :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 inreplace %w{wscript configure} do |s| s.gsub! '/usr/local', HOMEBREW_PREFIX s.gsub! '/opt/local/lib', '/usr/lib' end ENV.gcc_4_2 system "./configure", "--prefix=#{prefix}" system "make install" end end