diff options
| author | Dominyk Tiller | 2015-01-06 18:53:03 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2015-01-07 07:56:12 +0000 | 
| commit | 7c0a59e95ef37ea3ae36878210069396ca810eaf (patch) | |
| tree | 66432c93cd67a5338dc90f77e12e81bc0fb9dd97 /Library/Formula/subversion.rb | |
| parent | f3d7fa881018f72ea6eacfea3597d7ee81cf0ee3 (diff) | |
| download | homebrew-7c0a59e95ef37ea3ae36878210069396ca810eaf.tar.bz2 | |
subversion: support brewed apr
Follow up to #34987. Subversion requires a little gentle stroking in
the right direction.
Closes #35612.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/subversion.rb')
| -rw-r--r-- | Library/Formula/subversion.rb | 18 | 
1 files changed, 15 insertions, 3 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb index 37d84e329..fe95a2513 100644 --- a/Library/Formula/subversion.rb +++ b/Library/Formula/subversion.rb @@ -1,5 +1,3 @@ -require "formula" -  class Subversion < Formula    homepage "https://subversion.apache.org/"    url "http://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.8.10.tar.bz2" @@ -79,6 +77,12 @@ class Subversion < Formula        args = %W[PREFIX=#{serf_prefix} GSSAPI=/usr CC=#{ENV.cc}                  CFLAGS=#{ENV.cflags} LINKFLAGS=#{ENV.ldflags}                  OPENSSL=#{Formula["openssl"].opt_prefix}] + +      unless MacOS::CLT.installed? +        args << "APR=#{Formula["apr"].opt_prefix}" +        args << "APU=#{Formula["apr-util"].opt_prefix}" +      end +        scons *args        scons "install"      end @@ -120,7 +124,6 @@ class Subversion < Formula      # Don't mess with Apache modules (since we're not sudo)      args = ["--disable-debug",              "--prefix=#{prefix}", -            "--with-apr=#{which("apr-1-config").dirname}",              "--with-zlib=/usr",              "--with-sqlite=#{Formula["sqlite"].opt_prefix}",              "--with-serf=#{serf_prefix}", @@ -132,6 +135,15 @@ class Subversion < Formula      args << "--enable-javahl" << "--without-jikes" if build.with? "java"      args << "--without-gpg-agent" if build.without? "gpg-agent" +    unless MacOS::CLT.installed? +      args << "--with-apr=#{Formula["apr"].opt_prefix}" +      args << "--with-apr-util=#{Formula["apr-util"].opt_prefix}" +      args << "--with-apxs=no" +    else +      args << "--with-apr=/usr" +      args << "--with-apr-util=/usr" +    end +      if build.with? "ruby"        args << "--with-ruby-sitedir=#{lib}/ruby"        # Peg to system Ruby  | 
