diff options
| author | Charlie Sharpsteen | 2012-02-16 22:41:37 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-02-17 16:15:41 -0800 |
| commit | a9c0280673de97fee8e9a996c86d4abd8fce5721 (patch) | |
| tree | 657ba8a9b19ba01f71a0a7bbe2c450ae89ff4072 /Library/Formula | |
| parent | d523dfbc77fbd650140b97ed61575ad77f0fa89e (diff) | |
| download | homebrew-a9c0280673de97fee8e9a996c86d4abd8fce5721.tar.bz2 | |
PostGIS: Add 2.0 prereleases as --devel option
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/postgis.rb | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Library/Formula/postgis.rb b/Library/Formula/postgis.rb index d649b58a0..d3e52ea52 100644 --- a/Library/Formula/postgis.rb +++ b/Library/Formula/postgis.rb @@ -7,12 +7,18 @@ class Postgis < Formula head 'http://svn.osgeo.org/postgis/trunk/', :using => :svn + devel do + url 'http://postgis.org/download/postgis-2.0.0alpha5.tar.gz' + md5 'd47923c07b590571d9b9af6cd7c07813' + version '2.0.0alpha5' + end + depends_on 'postgresql' depends_on 'proj' depends_on 'geos' # For GeoJSON and raster handling - if ARGV.build_head? + if ARGV.build_head? or ARGV.build_devel? depends_on 'gdal' depends_on 'json-c' end @@ -35,8 +41,7 @@ class Postgis < Formula "--with-pgconfig=#{postgresql.bin}/pg_config" ] - if ARGV.build_head? - system './autogen.sh' + if ARGV.build_head? or ARGV.build_devel? jsonc = Formula.factory 'json-c' args << "--with-jsondir=#{jsonc.prefix}" # Unfortunately, NLS support causes all kinds of headaches because @@ -46,6 +51,7 @@ class Postgis < Formula args << '--disable-nls' end + system './autogen.sh' if ARGV.build_head? system './configure', *args system 'make' @@ -68,7 +74,7 @@ class Postgis < Formula # Install version-specific SQL scripts and tools first. Some of the # installation routines require command line tools to still be present # inside the build prefix. - if ARGV.build_head? + if ARGV.build_head? or ARGV.build_devel? # Install the liblwgeom library system 'make install -C liblwgeom' @@ -158,7 +164,7 @@ class Postgis < Formula #{postgresql.lib} EOS - if ARGV.build_head? + if ARGV.build_head? or ARGV.build_devel? s += <<-EOS.undent PostGIS extension modules installed to: #{postgresql.share}/postgres/extension |
