aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorPaul Wagland2013-10-31 13:26:41 +0100
committerXiyue Deng2013-11-01 16:08:55 -0700
commitce669ebb96be7ea61fc385906d93f7170fb42ca3 (patch)
treefe9e3fdf5736725f427f988cd7405d41fec5c6cc /Library
parentd27d7f2d4525e5d0b376daed2b7ae65d275d72ef (diff)
downloadhomebrew-ce669ebb96be7ea61fc385906d93f7170fb42ca3.tar.bz2
Fix building of Perl libaries for subversion.
* SWIG cannot build in parallel, so disable that. * Move all libraries to the correct location. * Remove filter than removes -isystem flag. This is no longer generated, and so doesn't need to be removed. This prevents warnings from being shown subversion --perl is built. * Depend on swig if we try to compile the ruby bindings. Closes #23829. Signed-off-by: Xiyue Deng <manphiz@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/subversion.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index 679189bbc..930554ea5 100644
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -35,7 +35,7 @@ class Subversion < Formula
depends_on :libtool
# Bindings require swig
- depends_on 'swig' if build.include? 'perl' or build.include? 'python' or build.include? 'python'
+ depends_on 'swig' if build.include? 'perl' or build.include? 'python' or build.include? 'ruby'
# For Serf
depends_on 'scons' => :build
@@ -148,18 +148,14 @@ class Subversion < Formula
system "make tools"
system "make install-tools"
- # Swig don't understand "-isystem" flags added by Homebrew, so
- # filter them out from makefiles.
- Dir.glob(buildpath/"**/Makefile*").each do |mkfile|
- inreplace mkfile, /\-isystem[^[:space:]]*/, ''
- end
-
python do
system "make swig-py"
system "make install-swig-py"
end
if build.include? 'perl'
+ # In theory SWIG can be built in parallel, in practice...
+ ENV.deparallelize
# Remove hard-coded ppc target, add appropriate ones
if build.universal?
arches = Hardware::CPU.universal_archs.as_arch_flags
@@ -180,6 +176,9 @@ class Subversion < Formula
end
system "make swig-pl"
system "make", "install-swig-pl", "DESTDIR=#{prefix}"
+ # Some of the libraries get installed into the wrong place, they end up having the
+ # prefix in the directory name twice.
+ mv Dir.glob("#{prefix}/#{lib}/*"), "#{lib}"
end
if build.include? 'java'