homebrew-core/Formula/postgis.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

22 lines
828 B
Ruby

require 'formula'
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