homebrew-core/Formula/v8.rb

40 lines
1.1 KiB
Ruby
Raw Normal View History

2009-11-27 04:52:31 +00:00
require 'formula'
# Use the official github mirror, it is easier to find tags there
# .even versions are stable, .odd releases are devel. Kind of:
# 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/'
url 'https://github.com/v8/v8/archive/3.18.5.tar.gz'
sha1 'd11c925898c5a0480aa947b1ed03b8f039d7e5d2'
devel do
2013-06-14 18:19:05 +00:00
url 'https://github.com/v8/v8/archive/3.19.16.tar.gz'
sha1 'fa9862f805ce07d1dbaf5a9229ebbbbe616298f2'
end
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
# gyp currently depends on a full xcode install
# https://code.google.com/p/gyp/issues/detail?id=292
depends_on :xcode
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