From 0221ee2ddfbc59d22bd50f1f045fe6de3dde2692 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 30 Oct 2009 10:58:31 -0700 Subject: Update Subversion to 1.6.6 and fix on Leopard. The "fixes" to this formula for 10.6 completely broke it on 10.5. The formula now has separate setup / deps handling for 10.5 and 10.6, which should work until Subversion 1.7 comes out some day and the Snow Leopard system deps break again. --- Library/Formula/subversion.rb | 49 +++++++++++++++++++++++++++++++++++++------ 1 file changed, 43 insertions(+), 6 deletions(-) (limited to 'Library') diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb index bd22f287f..908ee7767 100644 --- a/Library/Formula/subversion.rb +++ b/Library/Formula/subversion.rb @@ -1,18 +1,55 @@ require 'formula' +# This formula is forked between 10.5 and 10.6. +# On 10.6, we can make use of system-install deps. +# (At least, until Subversion 1.7 comes out and the system deps break again.) +# +# On 10.5, the provided Subversion is too old, so we go ahead and +# make the deps ourselves. + +class SubversionDeps = 10.6 + depends_on 'neon' + end - def install + def setup_snow_leopard # Force LDFLAGS to load the HOMEBREW lib directory first. Necessary because SVN configure will # otherwise link to OS X neon libs in /usr/lib (and ignore --with-neon anyway) ENV['LDFLAGS'] += " -L#{Formula.factory('neon').lib}" + end + + def setup_leopard + # Slot dependencies into place + d=Pathname.getwd + SubversionDeps.new.brew do + d.install Dir['*'] + end + end + + def install + if MACOS_VERSION >= 10.6 + setup_snow_leopard + else + setup_leopard + end - # Use existing system zlib, dep-provided other libraries + # Use existing system zlib + # Use dep-provided other libraries # Don't mess with Apache modules (since we're not sudo) system "./configure", "--disable-debug", "--prefix=#{prefix}", -- cgit v1.2.3