aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/subversion.rb
blob: 2b661495069d9b2163cb6f61c60cbcc3906ea5b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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