diff options
| -rw-r--r-- | Library/Formula/v8.rb | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/Library/Formula/v8.rb b/Library/Formula/v8.rb index 9870eba77..188bcaeeb 100644 --- a/Library/Formula/v8.rb +++ b/Library/Formula/v8.rb @@ -3,27 +3,23 @@ require 'formula' class V8 < Formula homepage 'http://code.google.com/p/v8/' # Use the official github mirror, it is easier to find tags there - url 'https://github.com/v8/v8/tarball/3.9.24' - sha1 '111bf871bda84e72fdf93f2877d97591b918db2a' + url 'https://github.com/v8/v8/archive/3.15.11.tar.gz' + sha1 '0c47b3a5409d71d4fd6581520c8972f7451a87e4' head 'https://github.com/v8/v8.git' - depends_on 'scons' => :build - 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" + system 'make dependencies' + system 'make', 'native', + "-j#{ENV.make_jobs}", + "library=shared", + "snapshot=on", + "console=readline" prefix.install 'include' - lib.install 'libv8.dylib' - bin.install 'shell' => 'v8' + cd 'out/native' do + lib.install Dir['lib*'] + bin.install 'd8', 'lineprocessor', 'mksnapshot', 'preparser', 'process', 'shell' => 'v8' + end end end |
