homebrew-core/Formula/v8.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

27 lines
718 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