homebrew-core/Formula/v8.rb

30 lines
697 B
Ruby
Raw Normal View History

2009-11-27 04:52:31 +00:00
require 'formula'
require 'hardware'
class V8 <Formula
head 'http://v8.googlecode.com/svn/trunk/'
2009-11-27 04:52:31 +00:00
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"
2009-11-27 04:52:31 +00:00
include.install(Dir['include/*'])
lib.install(Dir['libv8.*'])
2010-02-18 18:05:01 +00:00
bin.install 'shell' => 'v8'
2010-02-06 23:44:45 +00:00
system "install_name_tool -change libv8.dylib #{lib}/libv8.dylib #{bin+'v8'}"
2009-11-27 04:52:31 +00:00
end
end