New formula for Google's V8 JavaScript engine.

The visibility=default flag will cause me nightmares.
This commit is contained in:
Paul J. Davis 2009-11-14 23:09:23 -05:00 committed by Max Howell
parent a31d3d7e95
commit a3646446cf

View file

@ -2,15 +2,23 @@ require 'formula'
require 'hardware'
class V8 <Formula
head 'git://github.com/v8/v8.git'
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}", 'mode=release', 'snapshot=on', "arch=#{arch}", 'sample=shell'
system 'scons', "-j #{Hardware.processor_count}", 'mode=release', 'snapshot=on', "arch=#{arch}", 'library=shared'
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.*'])