Skip to content

Commit

Permalink
Use ENV.make_jobs in formulae
Browse files Browse the repository at this point in the history
Some formulae are still calling Hardware.processor_count; replace those
instances with ENV.make_jobs.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
jacknagel committed Oct 15, 2011
1 parent 1fba8e7 commit 57665ff
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Library/Formula/boost.rb
Expand Up @@ -57,7 +57,7 @@ def install

args = ["--prefix=#{prefix}",
"--libdir=#{lib}",
"-j#{Hardware.processor_count}",
"-j#{ENV.make_jobs}",
"--layout=tagged",
"--user-config=user-config.jam",
"threading=multi",
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/csstidy.rb
Expand Up @@ -8,7 +8,7 @@ class Csstidy < Formula

def install
arch = Hardware.is_64_bit? ? 'x64' : 'ia32'
system "scons", "-j #{Hardware.processor_count}",
system "scons", "-j #{ENV.make_jobs}",
"arch=#{arch}"

bin.install "release/csstidy/csstidy"
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/ledger.rb
Expand Up @@ -19,7 +19,7 @@ def install
else
# gmp installs x86_64 only
inreplace 'acprep', "'-arch', 'i386', ", "" if Hardware.is_64_bit?
system "./acprep -j#{Hardware.processor_count} opt make -- --prefix=#{prefix}"
system "./acprep -j#{ENV.make_jobs} opt make -- --prefix=#{prefix}"
end
system 'make'
ENV.deparallelize
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/mkvtoolnix.rb
Expand Up @@ -17,7 +17,7 @@ def install
"--prefix=#{prefix}",
"--with-boost-libdir=#{HOMEBREW_PREFIX}/lib", # For non-/usr/local prefix
"--with-boost-regex=boost_regex-mt" # via macports
system "./drake -j#{Hardware.processor_count}"
system "./drake -j#{ENV.make_jobs}"
system "./drake install"
end
end
2 changes: 1 addition & 1 deletion Library/Formula/v8.rb
Expand Up @@ -9,7 +9,7 @@ class V8 < Formula
def install
arch = Hardware.is_64_bit? ? 'x64' : 'ia32'

system "scons", "-j #{Hardware.processor_count}",
system "scons", "-j #{ENV.make_jobs}",
"arch=#{arch}",
"mode=release",
"snapshot=on",
Expand Down
2 changes: 1 addition & 1 deletion Library/Formula/v8cgi.rb
Expand Up @@ -33,7 +33,7 @@ def install
args << (ARGV.include? '--with-sqlite') ? 'sqlite=1' : 'sqlite=0'

system "scons",
"-j #{Hardware.processor_count}",
"-j #{ENV.make_jobs}",
"arch=#{arch}",
"library=shared",
"socket=1",
Expand Down

0 comments on commit 57665ff

Please sign in to comment.