homebrew-core/Formula/subversion.rb
Max Howell c81d5b6ca6 Refactor
Large refactor to Formula, mostly improving reliability and error handling but
also layout and readability.

General improvements so testing can be more complete.

Patches are automatically downloaded and applied for Formula that return a
list of urls from Formula::patches.

Split out the brew command logic to facilitate testing.

Facility from Adam Vandenberg to allow selective cleaning of files, added
because Python doesn't work when stripped.
2009-08-10 18:11:17 +01:00

31 lines
932 B
Ruby

require 'brewkit'
class SubversionDeps <Formula
@url='http://subversion.tigris.org/downloads/subversion-deps-1.6.3.tar.bz2'
@md5='22d3687ae93648fcecf945c045931272'
end
class Subversion <Formula
@url='http://subversion.tigris.org/downloads/subversion-1.6.3.tar.bz2'
@homepage='http://subversion.tigris.org/'
@md5='8bf7637ac99368db0890e3f085fa690d'
def install
# Slot dependencies into place
d=Pathname.getwd
SubversionDeps.new.brew do
d.install Dir['*']
end
# 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}",
"--with-zlib=/usr/lib",
"--disable-mod-activation",
"--without-apache-libexecdir"
system "make"
system "make install"
end
end