homebrew-core/Formula/postgis.rb

23 lines
828 B
Ruby
Raw Normal View History

require 'brewkit'
class Postgis <Formula
url 'http://postgis.refractions.net/download/postgis-1.4.0.tar.gz'
homepage 'http://postgis.refractions.net/'
md5 'bc5b97d5399bd20ca90bfdf784ab6c33'
depends_on 'postgresql'
depends_on 'proj'
depends_on 'geos'
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--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.sql postgis/uninstall_postgis.sql )
# Copy loader and utils binaries to bin folder
bin.install %w( loader/pgsql2shp loader/shp2pgsql utils/new_postgis_restore.pl utils/postgis_proc_upgrade.pl utils/postgis_restore.pl utils/profile_intersects.pl )
end
end