aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-02-04 09:29:23 -0800
committerAdam Vandenberg2013-02-04 09:29:23 -0800
commitf7a42d2bb6150a9851c341265a7f7d9ca73ad2cb (patch)
tree07f524c2456b3f20c1a926e2843533e324553b64 /Library
parentbbd3d818d08f915359f61e9715b19d5ca21d1074 (diff)
downloadhomebrew-f7a42d2bb6150a9851c341265a7f7d9ca73ad2cb.tar.bz2
Subversion: always build against system ruby
Closes #13272.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/subversion.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
index cb3168928..eb680c676 100644
--- a/Library/Formula/subversion.rb
+++ b/Library/Formula/subversion.rb
@@ -59,7 +59,8 @@ class Subversion < Formula
end
def install
- # We had weird issues with "make" apparently hanging on first run: https://github.com/mxcl/homebrew/issues/13226
+ # We had weird issues with "make" apparently hanging on first run:
+ # https://github.com/mxcl/homebrew/issues/13226
ENV.deparallelize
if build_java?
@@ -85,7 +86,7 @@ class Subversion < Formula
"--with-ssl",
"--with-zlib=/usr",
"--with-sqlite=#{Formula.factory('sqlite').opt_prefix}",
- "--with-serf=#{HOMEBREW_PREFIX}",
+ "--with-serf=#{Formula.factory('serf').opt_prefix}",
# use our neon, not OS X's
"--disable-neon-version-check",
"--disable-mod-activation",
@@ -93,7 +94,12 @@ class Subversion < Formula
"--without-berkeley-db"]
args << "--enable-javahl" << "--without-jikes" if build_java?
- args << "--with-ruby-sitedir=#{lib}/ruby" if build_ruby?
+
+ if build_ruby?
+ args << "--with-ruby-sitedir=#{lib}/ruby"
+ # Peg to system Ruby
+ args << "RUBY=/usr/bin/ruby"
+ end
# The system Python is built with llvm-gcc, so we override this
# variable to prevent failures due to incompatible CFLAGS
@@ -138,7 +144,8 @@ class Subversion < Formula
end
if build_ruby?
- system "make swig-rb"
+ # Peg to system Ruby
+ system "make swig-rb EXTRA_SWIG_LDFLAGS=-L/usr/lib"
system "make install-swig-rb"
end
end