homebrew-core/Formula/v8.rb

47 lines
1.3 KiB
Ruby
Raw Normal View History

2009-11-27 04:52:31 +00:00
require 'formula'
2013-07-23 21:54:13 +00:00
# When trunk is 3.x, then 3.x is devel and 3.(x-1)
# is stable.
# https://code.google.com/p/v8/issues/detail?id=2545
# http://omahaproxy.appspot.com/
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/'
2013-07-23 21:54:13 +00:00
url 'https://github.com/v8/v8/archive/3.19.18.4.tar.gz'
2013-07-23 21:56:01 +00:00
sha1 'f44c8eed0fe93b2d04d1d547a1e2640f41161354'
2012-02-10 04:58:43 +00:00
2013-07-23 21:54:13 +00:00
devel do
2013-08-06 19:44:06 +00:00
url 'https://github.com/v8/v8/archive/3.20.12.tar.gz'
sha1 '1463f4b8b33674bfd366e84b739713a727e9f9ac'
2013-07-23 21:54:13 +00:00
end
2012-04-19 02:37:43 +00:00
head 'https://github.com/v8/v8.git'
2009-11-27 04:52:31 +00:00
option 'with-readline', 'Use readline instead of libedit'
# not building on Snow Leopard:
# https://github.com/mxcl/homebrew/issues/21426
depends_on :macos => :lion
# gyp currently depends on a full xcode install
# https://code.google.com/p/gyp/issues/detail?id=292
depends_on :xcode
depends_on 'readline' => :optional
def install
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'
cd 'out/native' do
lib.install Dir['lib*']
2013-04-22 18:20:47 +00:00
bin.install 'd8', 'lineprocessor', 'preparser', 'process', 'shell' => 'v8'
bin.install Dir['mksnapshot.*']
end
2009-11-27 04:52:31 +00:00
end
end