diff options
| author | Daniel Huckstep | 2009-11-26 21:52:31 -0700 |
|---|---|---|
| committer | Max Howell | 2009-12-05 16:42:17 +0000 |
| commit | 32949658c98a1d06b3640c4609335a00ecd6a2ec (patch) | |
| tree | bb3279bc8476f89f45434da1cb1879d3929518ec /Library/Formula/v8.rb | |
| parent | 5a7a33cc14c8207a4f4908d0fed80949f520001d (diff) | |
| download | homebrew-32949658c98a1d06b3640c4609335a00ecd6a2ec.tar.bz2 | |
V8 Javascript Engine formula
Diffstat (limited to 'Library/Formula/v8.rb')
| -rw-r--r-- | Library/Formula/v8.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/v8.rb b/Library/Formula/v8.rb new file mode 100644 index 000000000..611bd2bc4 --- /dev/null +++ b/Library/Formula/v8.rb @@ -0,0 +1,21 @@ +require 'formula' +require 'hardware' + +class V8 <Formula + head 'git://github.com/v8/v8.git' + homepage 'http://code.google.com/p/v8/' + + depends_on 'scons' + + def install + arch = Hardware.is_64_bit? ? 'x64' : 'ia32' + system 'scons', "-j #{Hardware.processor_count}", 'mode=release', 'snapshot=on', "arch=#{arch}", 'sample=shell' + system 'scons', "-j #{Hardware.processor_count}", 'mode=release', 'snapshot=on', "arch=#{arch}", 'library=shared' + + include.install(Dir['include/*']) + lib.install(Dir['libv8.*']) + + mv('shell', 'v8') + bin.install('v8') + end +end |
