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
|
2013-03-29 16:15:57 +00:00
|
|
|
url 'https://github.com/v8/v8/archive/3.17.15.tar.gz'
|
|
|
|
sha1 '611fa265cdaae74b00556de6576c07c4dcfb3efe'
|
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
|
|
|
|
2013-02-02 20:02:20 +00:00
|
|
|
# gyp currently depends on a full xcode install
|
|
|
|
# https://code.google.com/p/gyp/issues/detail?id=292
|
|
|
|
depends_on :xcode
|
2013-02-02 02:40:25 +00:00
|
|
|
|
2013-02-02 20:02:20 +00:00
|
|
|
def install
|
2013-01-05 21:24:07 +00:00
|
|
|
system 'make dependencies'
|
|
|
|
system 'make', 'native',
|
|
|
|
"-j#{ENV.make_jobs}",
|
|
|
|
"library=shared",
|
|
|
|
"snapshot=on",
|
|
|
|
"console=readline"
|
2009-11-27 04:52:31 +00:00
|
|
|
|
2012-02-10 04:58:43 +00:00
|
|
|
prefix.install 'include'
|
2013-01-05 21:24:07 +00:00
|
|
|
cd 'out/native' do
|
|
|
|
lib.install Dir['lib*']
|
|
|
|
bin.install 'd8', 'lineprocessor', 'mksnapshot', 'preparser', 'process', 'shell' => 'v8'
|
|
|
|
end
|
2009-11-27 04:52:31 +00:00
|
|
|
end
|
|
|
|
end
|