postgis - add head for postgres 9.0 support
This commit is contained in:
parent
a61e11b26d
commit
03d1665d02
1 changed files with 23 additions and 7 deletions
|
@ -5,25 +5,41 @@ class Postgis <Formula
|
|||
homepage 'http://postgis.refractions.net/'
|
||||
md5 '8353b38c38282b2192f01693f71b8d28'
|
||||
|
||||
head 'http://svn.osgeo.org/postgis/trunk/', :using => :svn
|
||||
|
||||
depends_on 'postgresql'
|
||||
depends_on 'proj'
|
||||
depends_on 'geos'
|
||||
|
||||
def install
|
||||
ENV.deparallelize
|
||||
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "--with-projdir=#{HOMEBREW_PREFIX}"
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--with-projdir=#{HOMEBREW_PREFIX}"
|
||||
system "make install"
|
||||
|
||||
# Copy some of the generated files to the share folder
|
||||
(share+'postgis').install %w( spatial_ref_sys.sql postgis/postgis.sql postgis/postgis_upgrade_13_to_15.sql postgis/postgis_upgrade_14_to_15.sql postgis/postgis_upgrade_15_minor.sql postgis/uninstall_postgis.sql )
|
||||
(share+'postgis').install %w(
|
||||
spatial_ref_sys.sql postgis/postgis.sql
|
||||
postgis/postgis_upgrade_13_to_15.sql
|
||||
postgis/postgis_upgrade_14_to_15.sql
|
||||
postgis/postgis_upgrade_15_minor.sql postgis/uninstall_postgis.sql
|
||||
)
|
||||
# Copy loader and utils binaries to bin folder
|
||||
bin.install %w( loader/pgsql2shp loader/shp2pgsql utils/create_undef.pl utils/new_postgis_restore.pl utils/postgis_proc_upgrade.pl utils/postgis_restore.pl utils/profile_intersects.pl )
|
||||
bin.install %w(
|
||||
loader/pgsql2shp loader/shp2pgsql utils/create_undef.pl
|
||||
utils/new_postgis_restore.pl utils/postgis_proc_upgrade.pl
|
||||
utils/postgis_restore.pl utils/profile_intersects.pl
|
||||
)
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<-EOS.undent
|
||||
To create a spatially-enabled database, see the documentation:
|
||||
http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2786223
|
||||
def caveats; <<-EOS.undent
|
||||
Postgresql 9.0 support fixed in upcoming 1.5.2 release.
|
||||
Until then, you may want to try:
|
||||
brew install --HEAD postgis
|
||||
|
||||
To create a spatially-enabled database, see the documentation:
|
||||
http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2786223
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue