aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorSamuel Cochran2011-07-25 10:22:02 +0800
committerAdam Vandenberg2011-07-27 08:19:35 -0700
commit7ae00a4b0a1e54b8e655f3f44b3e4fe251983ce7 (patch)
tree09b4f0a1d32ecb221af12a29f18f9a248f4aa0cc /Library
parent1b9598c34b444b1a385b805331c513c0495c7618 (diff)
downloadhomebrew-7ae00a4b0a1e54b8e655f3f44b3e4fe251983ce7.tar.bz2
postgis: add explicit postgresql config for Lion
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/postgis.rb6
1 files changed, 6 insertions, 0 deletions
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')