From 066eb794ff1ed3e2b5cd15896ed6381720a5b217 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 15 Nov 2014 23:11:33 -0600 Subject: postgis: only HEAD requires autotools --- Library/Formula/postgis.rb | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'Library') diff --git a/Library/Formula/postgis.rb b/Library/Formula/postgis.rb index d73791d66..ee5727267 100644 --- a/Library/Formula/postgis.rb +++ b/Library/Formula/postgis.rb @@ -13,22 +13,24 @@ class Postgis < Formula false end - head 'http://svn.osgeo.org/postgis/trunk/' + head do + url "http://svn.osgeo.org/postgis/trunk/" + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + end option 'with-gui', 'Build shp2pgsql-gui in addition to command line tools' option 'without-gdal', 'Disable postgis raster support' - depends_on :autoconf - depends_on :automake - depends_on :libtool - + depends_on "pkg-config" => :build depends_on 'gpp' => :build depends_on 'postgresql' depends_on 'proj' depends_on 'geos' depends_on 'gtk+' if build.with? "gui" - depends_on 'pkg-config' if build.with? "gui" # For GeoJSON and raster handling depends_on 'json-c' @@ -45,7 +47,6 @@ class Postgis < Formula ENV.deparallelize args = [ - "--disable-dependency-tracking", # Can't use --prefix, PostGIS disrespects it and flat-out refuses to # accept it with 2.0. "--with-projdir=#{HOMEBREW_PREFIX}", @@ -60,11 +61,11 @@ class Postgis < Formula # gettext installations are. "--disable-nls" ] - args << '--with-gui' if build.with? "gui" + args << '--with-gui' if build.with? "gui" args << '--without-raster' if build.without? "gdal" - system './autogen.sh' + system "./autogen.sh" if build.head? system './configure', *args system 'make' -- cgit v1.2.3