From f23697d109bb36d247d91b41c41e54957ee375df Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Mon, 25 Jul 2011 10:22:02 +0800 Subject: [PATCH] postgis: add explicit postgresql config for Lion Signed-off-by: Adam Vandenberg --- Formula/postgis.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Formula/postgis.rb b/Formula/postgis.rb index c1399e60d5..79e3f6596b 100644 --- a/Formula/postgis.rb +++ b/Formula/postgis.rb @@ -39,6 +39,12 @@ class Postgis < Formula "--with-projdir=#{HOMEBREW_PREFIX}" ] + # Apple ship a postgres client in Lion, conflicts with installed PostgreSQL server. + if MacOS.lion? + postgresql = Formula.factory('postgresql') + args << "--with-pgconfig=#{postgresql.bin}/pg_config" + end + if ARGV.build_head? system "./autogen.sh" gettext = Formula.factory('gettext')