2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-08-01 04:53:17 +00:00
|
|
|
|
2009-11-04 17:12:28 +00:00
|
|
|
# On 10.5 we need newer versions of apr, neon etc.
|
|
|
|
# On 10.6 we only need a newer version of neon
|
2009-10-30 17:58:31 +00:00
|
|
|
class SubversionDeps <Formula
|
2010-03-02 17:23:15 +00:00
|
|
|
url 'http://subversion.tigris.org/downloads/subversion-deps-1.6.9.tar.bz2'
|
|
|
|
md5 'c480173d939a5a6d0c71c717ab71e392'
|
2009-11-04 17:12:28 +00:00
|
|
|
|
|
|
|
# Note because this formula is installed into the subversion prefix
|
|
|
|
# it is not in fact keg only
|
2009-10-30 17:58:31 +00:00
|
|
|
def keg_only?
|
2009-11-04 17:12:28 +00:00
|
|
|
:provided_by_osx
|
2009-10-30 17:58:31 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2009-08-01 04:53:17 +00:00
|
|
|
class Subversion <Formula
|
2010-03-02 17:23:15 +00:00
|
|
|
url 'http://subversion.tigris.org/downloads/subversion-1.6.9.tar.bz2'
|
|
|
|
md5 '9c30a47b1d48664e7afef68bb4834c53'
|
|
|
|
homepage 'http://subversion.apache.org/'
|
2009-11-16 23:31:15 +00:00
|
|
|
|
|
|
|
aka :svn
|
2009-08-01 04:53:17 +00:00
|
|
|
|
2009-10-30 17:58:31 +00:00
|
|
|
# Only need this on Snow Leopard; for Leopard the deps package
|
|
|
|
# builds it.
|
2010-03-02 17:23:15 +00:00
|
|
|
depends_on 'neon' if MACOS_VERSION >= 10.6
|
2009-08-01 04:53:17 +00:00
|
|
|
|
2009-10-30 17:58:31 +00:00
|
|
|
def setup_leopard
|
|
|
|
# Slot dependencies into place
|
|
|
|
d=Pathname.getwd
|
|
|
|
SubversionDeps.new.brew do
|
|
|
|
d.install Dir['*']
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2009-11-04 17:12:28 +00:00
|
|
|
setup_leopard if MACOS_VERSION < 10.6
|
2009-09-23 22:31:30 +00:00
|
|
|
|
2009-10-30 17:58:31 +00:00
|
|
|
# Use existing system zlib
|
|
|
|
# Use dep-provided other libraries
|
2009-08-01 04:53:17 +00:00
|
|
|
# Don't mess with Apache modules (since we're not sudo)
|
2009-08-10 15:48:30 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
2009-09-01 19:21:45 +00:00
|
|
|
"--with-ssl",
|
2009-08-10 15:48:30 +00:00
|
|
|
"--with-zlib=/usr/lib",
|
2009-11-04 17:12:28 +00:00
|
|
|
# use our neon, not OS X's
|
2009-10-27 20:25:46 +00:00
|
|
|
"--disable-neon-version-check",
|
2009-08-10 15:48:30 +00:00
|
|
|
"--disable-mod-activation",
|
2009-09-01 19:21:45 +00:00
|
|
|
"--without-apache-libexecdir",
|
|
|
|
"--without-berkeley-db"
|
2009-08-01 04:53:17 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|