9474a2267a
Updated postgis to latest version 1.5.0 Updated script and sql file names Signed-off-by: Adam Vandenberg <flangy@gmail.com>
22 lines
914 B
Ruby
22 lines
914 B
Ruby
require 'formula'
|
|
|
|
class Postgis <Formula
|
|
url 'http://postgis.refractions.net/download/postgis-1.5.0.tar.gz'
|
|
homepage 'http://postgis.refractions.net/'
|
|
md5 '8c0d291296033deee4d7f545e5d8218f'
|
|
|
|
depends_on 'postgresql'
|
|
depends_on 'proj'
|
|
depends_on 'geos'
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
|
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 )
|
|
# 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 )
|
|
|
|
end
|
|
end
|