aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-10-30 10:58:31 -0700
committerAdam Vandenberg2009-10-30 11:05:49 -0700
commit0221ee2ddfbc59d22bd50f1f045fe6de3dde2692 (patch)
treee48f7b73c31753c2e56733aeff89a218088ffb47 /Library
parentda385f68dee13041d503ee497904092d116ad5b6 (diff)
downloadhomebrew-0221ee2ddfbc59d22bd50f1f045fe6de3dde2692.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/subversion.rb49
1 files changed, 43 insertions, 6 deletions
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 <Formula
+ url 'http://subversion.tigris.org/downloads/subversion-deps-1.6.6.tar.bz2'
+ md5 '8ec2a0daea27f86a75939d3ed09618a0'
+
+ def keg_only?
+ "Subversion dependencies needed on 10.5."
+ end
+end
+
class Subversion <Formula
- @url='http://subversion.tigris.org/downloads/subversion-1.6.5.tar.bz2'
- @homepage='http://subversion.tigris.org/'
- @md5='1a53a0e72bee0bf814f4da83a9b6a636'
+ url 'http://subversion.tigris.org/downloads/subversion-1.6.6.tar.bz2'
+ homepage 'http://subversion.tigris.org/'
+ md5 'e5109da756d74c7d98f683f004a539af'
- depends_on 'neon'
+ # Only need this on Snow Leopard; for Leopard the deps package
+ # builds it.
+ if MACOS_VERSION >= 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}",