aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/subversion.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/subversion.rb b/Library/Formula/subversion.rb
new file mode 100644
index 000000000..e863ac126
--- /dev/null
+++ b/Library/Formula/subversion.rb
@@ -0,0 +1,27 @@
+require 'brewkit'
+
+class SubversionDeps <UnidentifiedFormula
+ @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