homebrew-core/Formula/v8.rb
Jack Nagel bb44922515 Use ENV.make_jobs in formulae
Some formulae are still calling Hardware.processor_count; replace those
instances with ENV.make_jobs.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-15 00:05:15 -05:00

27 lines
718 B
Ruby

require 'formula'
class V8 < Formula
head 'http://v8.googlecode.com/svn/trunk/'
homepage 'http://code.google.com/p/v8/'
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"
include.install Dir['include/*']
lib.install Dir['libv8.*']
bin.install 'shell' => 'v8'
system "install_name_tool -change libv8.dylib #{lib}/libv8.dylib #{bin}/v8"
end
end