aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2011-12-09 15:08:07 -0600
committerMisty De Meo2011-12-09 15:08:07 -0600
commit101a1679256f002b9deef5bfe1278e80e8484d7a (patch)
tree5f75d190472407b6c587cc71207189adad5e4c8f /Library
parentc97e8ed7c5ff3abb6e89abcc4dd138aa97797ba1 (diff)
parentbd71558188e0e0821e62e28b196e5195bbf3bdc6 (diff)
downloadhomebrew-101a1679256f002b9deef5bfe1278e80e8484d7a.tar.bz2
Merge branch 'master' of git://github.com/mxcl/homebrew
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/camlp5.rb3
-rw-r--r--Library/Formula/glib.rb10
-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
6 files changed, 19 insertions, 7 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/glib.rb b/Library/Formula/glib.rb
index a16b168cc..499cbb328 100644
--- a/Library/Formula/glib.rb
+++ b/Library/Formula/glib.rb
@@ -56,10 +56,16 @@ class Glib < Formula
system "autoconf"
end
- # hack so that we don't have to depend on pkg-config
- # http://permalink.gmane.org/gmane.comp.package-management.pkg-config/627
+ # glib and pkg-config <= 0.26 have circular dependencies, so we should build glib without pkg-config
+ # The pkg-config dependency can be eliminated if certain env variables are set
+ # Note that this *may* need to be updated if any new dependencies are added in the future
+ # See http://permalink.gmane.org/gmane.comp.package-management.pkg-config/627
ENV['ZLIB_CFLAGS'] = ''
ENV['ZLIB_LIBZ'] = '-l'
+ # libffi include paths are dramatically ugly
+ libffi = Formula.factory('libffi')
+ ENV['LIBFFI_CFLAGS'] = "-I #{libffi.lib}/libffi-#{libffi.version}/include"
+ ENV['LIBFFI_LIBS'] = '-lffi'
system "./configure", *args
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