subversion: use Formula[]

This commit is contained in:
Adam Vandenberg 2014-02-25 21:44:02 -08:00
parent e0ef8d34a8
commit 516fd2e37d

View file

@ -75,7 +75,7 @@ class Subversion < Formula
# scons ignores our compiler and flags unless explicitly passed
args = %W[PREFIX=#{serf_prefix} GSSAPI=/usr CC=#{ENV.cc}
CFLAGS=#{ENV.cflags} LINKFLAGS=#{ENV.ldflags}]
args << "OPENSSL=#{Formula.factory('openssl').opt_prefix}" if build.with? 'brewed-openssl'
args << "OPENSSL=#{Formula["openssl"].opt_prefix}" if build.with? 'brewed-openssl'
scons *args
scons "install"
end
@ -118,7 +118,7 @@ class Subversion < Formula
"--prefix=#{prefix}",
"--with-apr=#{apr_bin}",
"--with-zlib=/usr",
"--with-sqlite=#{Formula.factory('sqlite').opt_prefix}",
"--with-sqlite=#{Formula["sqlite"].opt_prefix}",
"--with-serf=#{serf_prefix}",
"--disable-mod-activation",
"--disable-nls",