homebrew-core/Formula/v8.rb
Adam Vandenberg 1c63dce8e0 Clean up v8
* Remove silly concatenation
* Don't need to require hardware in a formula (it's already there.)
2010-04-09 21:27:23 -07:00

28 lines
674 B
Ruby

require 'formula'
class V8 <Formula
head 'http://v8.googlecode.com/svn/trunk/'
homepage 'http://code.google.com/p/v8/'
depends_on 'scons'
def install
arch = Hardware.is_64_bit? ? 'x64' : 'ia32'
system "scons",
"-j #{Hardware.processor_count}",
"arch=#{arch}",
"mode=release",
"snapshot=on",
"library=shared",
"visibility=default",
"console=readline",
"sample=shell"
include.install Dir['include/*']
lib.install Dir['libv8.*']
bin.install 'shell' => 'v8'
system "install_name_tool -change libv8.dylib #{lib}/libv8.dylib #{bin}/v8"
end
end