diff options
| -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 |
