postgis: add explicit postgresql config for Lion

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Samuel Cochran 2011-07-25 10:22:02 +08:00 committed by Adam Vandenberg
parent 791fb16dcc
commit f23697d109

View file

@ -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')