aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-11-15 23:11:33 -0600
committerJack Nagel2014-11-15 23:12:51 -0600
commit066eb794ff1ed3e2b5cd15896ed6381720a5b217 (patch)
tree58b10c0b00b613ed15570e51cf080251870434d5 /Library/Formula
parentc49863fad69f358247a91d18c475948fb684f028 (diff)
downloadhomebrew-066eb794ff1ed3e2b5cd15896ed6381720a5b217.tar.bz2
postgis: only HEAD requires autotools
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/postgis.rb19
1 files changed, 10 insertions, 9 deletions
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'