diff options
Diffstat (limited to 'Library')
| -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 |
