homebrew-core/Formula/v8.rb

30 lines
788 B
Ruby
Raw Normal View History

2009-11-27 04:52:31 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class V8 < Formula
2009-11-27 04:52:31 +00:00
homepage 'http://code.google.com/p/v8/'
2012-02-10 04:58:43 +00:00
# Use the official github mirror, it is easier to find tags there
2012-04-19 02:52:39 +00:00
url 'https://github.com/v8/v8/tarball/3.9.24'
sha1 '111bf871bda84e72fdf93f2877d97591b918db2a'
2012-02-10 04:58:43 +00:00
2012-04-19 02:37:43 +00:00
head 'https://github.com/v8/v8.git'
2009-11-27 04:52:31 +00:00
depends_on 'scons' => :build
2009-11-27 04:52:31 +00:00
def install
arch = Hardware.is_64_bit? ? 'x64' : 'ia32'
system "scons", "-j #{ENV.make_jobs}",
"arch=#{arch}",
"mode=release",
"snapshot=on",
"library=shared",
"visibility=default",
"console=readline",
"sample=shell"
2009-11-27 04:52:31 +00:00
2012-02-10 04:58:43 +00:00
prefix.install 'include'
lib.install 'libv8.dylib'
2010-02-18 18:05:01 +00:00
bin.install 'shell' => 'v8'
2009-11-27 04:52:31 +00:00
end
end