From 697127a7ecb06d10ea90b83c48c0291a69c57759 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 25 Feb 2014 20:46:32 -0800 Subject: liblwgeom: use Formula[] --- Library/Formula/liblwgeom.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3