Skip to content

Instantly share code, notes, and snippets.

@kovyrin
Created March 23, 2016 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kovyrin/35a29d83749f7515ca00 to your computer and use it in GitHub Desktop.
Save kovyrin/35a29d83749f7515ca00 to your computer and use it in GitHub Desktop.
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/archive/3.16.14.tar.gz'
sha1 'd33c47b9a0179527966ac3edbfcd40113653eab6'
head 'https://github.com/v8/v8.git'
# 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"
prefix.install 'include'
cd 'out/native' do
lib.install Dir['lib*']
bin.install 'd8', 'lineprocessor', 'mksnapshot', 'preparser', 'process', 'shell' => 'v8'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment