a3646446cf
The visibility=default flag will cause me nightmares.
29 lines
627 B
Ruby
29 lines
627 B
Ruby
require 'formula'
|
|
require 'hardware'
|
|
|
|
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.*'])
|
|
|
|
mv('shell', 'v8')
|
|
bin.install('v8')
|
|
end
|
|
end
|