diff options
| author | Adam Vandenberg | 2014-02-25 20:46:32 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-27 08:21:20 -0800 |
| commit | 697127a7ecb06d10ea90b83c48c0291a69c57759 (patch) | |
| tree | a2fcd6a887f1d1994cbb26c3f9381487906c688d /Library/Formula | |
| parent | 133d52a0f453f86b0ca75a7b500b04855b17ae94 (diff) | |
| download | homebrew-697127a7ecb06d10ea90b83c48c0291a69c57759.tar.bz2 | |
liblwgeom: use Formula[]
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/liblwgeom.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/liblwgeom.rb b/Library/Formula/liblwgeom.rb index 642bbadef..00690ef89 100644 --- a/Library/Formula/liblwgeom.rb +++ b/Library/Formula/liblwgeom.rb @@ -39,7 +39,7 @@ class Liblwgeom < Formula "--disable-nls", "--with-projdir=#{HOMEBREW_PREFIX}", - "--with-jsondir=#{Formula.factory('json-c').opt_prefix}", + "--with-jsondir=#{Formula["json-c"].opt_prefix}", # Disable extraneous support "--without-libiconv-prefix", @@ -48,7 +48,9 @@ class Liblwgeom < Formula "--without-topology" ] - args << "--with-pgconfig=#{Formula.factory('postgresql').opt_prefix.realpath}/bin/pg_config" if build.head? + if build.head? + args << "--with-pgconfig=#{Formula["postgresql"].opt_prefix.realpath}/bin/pg_config" + end system './autogen.sh' system './configure', *args |
