From 7ae00a4b0a1e54b8e655f3f44b3e4fe251983ce7 Mon Sep 17 00:00:00 2001 From: Samuel Cochran Date: Mon, 25 Jul 2011 10:22:02 +0800 Subject: postgis: add explicit postgresql config for Lion Signed-off-by: Adam Vandenberg --- Library/Formula/postgis.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library') diff --git a/Library/Formula/postgis.rb b/Library/Formula/postgis.rb index c1399e60d..79e3f6596 100644 --- a/Library/Formula/postgis.rb +++ b/Library/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') -- cgit v1.2.3