PostGIS: Update --devel to 2.0beta1
Also, no longer pass `--prefix` to `configure`. The 2.0 beta no longer accepts this flag and we do installation by hand anyway.master
parent
5e4ee3b53c
commit
bc3bec2075
|
@ -12,9 +12,9 @@ class Postgis < Formula
|
|||
head 'http://svn.osgeo.org/postgis/trunk/', :using => :svn
|
||||
|
||||
devel do
|
||||
url 'http://postgis.org/download/postgis-2.0.0alpha6.tar.gz'
|
||||
md5 '1895d14c26c2458004d9b4f77931958c'
|
||||
version '2.0.0alpha6'
|
||||
url 'http://postgis.org/download/postgis-2.0.0beta1.tar.gz'
|
||||
md5 'd9bac5b3c25028b4f5d48a148d2d9fdd'
|
||||
version '2.0.0beta1'
|
||||
end
|
||||
|
||||
depends_on 'postgresql'
|
||||
|
@ -51,7 +51,8 @@ class Postgis < Formula
|
|||
|
||||
args = [
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
# Can't use --prefix, PostGIS disrespects it and flat-out refuses to
|
||||
# accept it with the 2.0 beta.
|
||||
"--with-projdir=#{HOMEBREW_PREFIX}",
|
||||
# This is against Homebrew guidelines, but we have to do it as the
|
||||
# PostGIS plugin libraries can only be properly inserted into Homebrew's
|
||||
|
@ -95,7 +96,8 @@ class Postgis < Formula
|
|||
# inside the build prefix.
|
||||
if ARGV.build_head? or ARGV.build_devel?
|
||||
# Install the liblwgeom library
|
||||
system 'make install -C liblwgeom'
|
||||
lib.install Dir['liblwgeom/.libs/*.dylib', 'liblwgeom/.libs/*.a']
|
||||
include.install 'liblwgeom/liblwgeom.h'
|
||||
|
||||
# Install raster plugin to Postgres keg
|
||||
postgresql.lib.install Dir['raster/rt_pg/rtpostgis*.so']
|
||||
|
@ -104,7 +106,6 @@ class Postgis < Formula
|
|||
# `CREATE EXTENSION postgis;` won't work if these are located elsewhere.
|
||||
system 'make install -C extensions'
|
||||
|
||||
# Damn you libtool. Damn you to hell.
|
||||
bin.install %w[
|
||||
loader/.libs/pgsql2shp
|
||||
loader/.libs/shp2pgsql
|
||||
|
@ -192,6 +193,6 @@ class Postgis < Formula
|
|||
EOS
|
||||
end
|
||||
|
||||
s
|
||||
return s
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue