aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2011-12-09 13:48:01 -0600
committerJack Nagel2011-12-09 13:57:47 -0600
commitbd71558188e0e0821e62e28b196e5195bbf3bdc6 (patch)
tree5f75d190472407b6c587cc71207189adad5e4c8f /Library/Formula
parent7c5b041b89499dafe521b8229b7aa2ef94c76088 (diff)
downloadhomebrew-bd71558188e0e0821e62e28b196e5195bbf3bdc6.tar.bz2
Avoid hard-coding 'make -j1'
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/camlp5.rb3
-rw-r--r--Library/Formula/jbigkit.rb3
-rw-r--r--Library/Formula/ledit.rb3
-rw-r--r--Library/Formula/neko.rb3
-rw-r--r--Library/Formula/renameutils.rb4
5 files changed, 11 insertions, 5 deletions
diff --git a/Library/Formula/camlp5.rb b/Library/Formula/camlp5.rb
index b2bcfc497..374567075 100644
--- a/Library/Formula/camlp5.rb
+++ b/Library/Formula/camlp5.rb
@@ -22,7 +22,8 @@ class Camlp5 < Formula
system "./configure -prefix #{prefix} -mandir #{man} #{strictness}"
# this build fails if jobs are parallelized
- system "make -j 1 world.opt"
+ ENV.deparallelize
+ system "make world.opt"
system "make install"
end
end
diff --git a/Library/Formula/jbigkit.rb b/Library/Formula/jbigkit.rb
index f990ad3e3..fbe803043 100644
--- a/Library/Formula/jbigkit.rb
+++ b/Library/Formula/jbigkit.rb
@@ -19,7 +19,8 @@ class Jbigkit < Formula
system "make"
# It needs j1 to make the tests happen in sequence.
- system "make -j1 test" if ARGV.include? '--with-check'
+ ENV.deparallelize
+ system "make test" if ARGV.include? '--with-check'
# Install the files using three common styles of syntax:
prefix.install %w[contrib examples]
diff --git a/Library/Formula/ledit.rb b/Library/Formula/ledit.rb
index ec47b8666..c126813e2 100644
--- a/Library/Formula/ledit.rb
+++ b/Library/Formula/ledit.rb
@@ -10,7 +10,8 @@ class Ledit < Formula
def install
# like camlp5, this build fails if the jobs are parallelized
- system "make -j 1 BINDIR=#{bin} LIBDIR=#{lib} MANDIR=#{man}"
+ ENV.deparallelize
+ system "make BINDIR=#{bin} LIBDIR=#{lib} MANDIR=#{man}"
system "make install BINDIR=#{bin} LIBDIR=#{lib} MANDIR=#{man}"
end
end
diff --git a/Library/Formula/neko.rb b/Library/Formula/neko.rb
index 4af2ba1ed..6fcc1d7ee 100644
--- a/Library/Formula/neko.rb
+++ b/Library/Formula/neko.rb
@@ -8,7 +8,8 @@ class Neko < Formula
depends_on 'bdw-gc'
def install
- system "yes s | /usr/bin/gnumake -j1 MACOSX=1 INSTALL_PREFIX=#{prefix}"
+ ENV.deparallelize # parallel build fails
+ system "yes s | make MACOSX=1 INSTALL_PREFIX=#{prefix}"
prefix.install %w{bin libs src}
end
end
diff --git a/Library/Formula/renameutils.rb b/Library/Formula/renameutils.rb
index 6ca2f30a8..1df0a79d3 100644
--- a/Library/Formula/renameutils.rb
+++ b/Library/Formula/renameutils.rb
@@ -7,6 +7,8 @@ class Renameutils < Formula
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
- system "make -j1 install" # fails if run in parallel
+ system "make"
+ ENV.deparallelize # parallel install fails
+ system "make install"
end
end