2009-10-02 18:02:51 +00:00
|
|
|
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"
|
2009-10-02 22:22:45 +00:00
|
|
|
|
|
|
|
# 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 )
|
|
|
|
|
2009-10-02 18:02:51 +00:00
|
|
|
end
|
|
|
|
end
|