New formula for Google's V8 JavaScript engine.
The visibility=default flag will cause me nightmares.
This commit is contained in:
parent
a31d3d7e95
commit
a3646446cf
1 changed files with 11 additions and 3 deletions
|
@ -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.*'])
|
||||
|
|
Loading…
Reference in a new issue