e03edcacbe
This is a minor release addressing: * Homebrew/homebrew#241, crash in ST_LineCrossingDirection * Homebrew/homebrew#210, segmentation faults in ST_Union with NULLs * Homebrew/homebrew#277, crash on very large numeric inputs * Homebrew/homebrew#179, ST_MakeLine crash server with NULLs * Homebrew/homebrew#253, inconsistent results when using the ~= operator * Homebrew/homebrew#276, ST_AsGML producing non-compliant GML * Homebrew/homebrew#239, memory issues with ST_As* functions * Homebrew/homebrew#272, ST_LineCrossingDirection should be negatively symmetric * Homebrew/homebrew#316, parsing problem for invalid higher dimensional geometries
22 lines
809 B
Ruby
22 lines
809 B
Ruby
require 'formula'
|
|
|
|
class Postgis <Formula
|
|
url 'http://postgis.refractions.net/download/postgis-1.4.1.tar.gz'
|
|
homepage 'http://postgis.refractions.net/'
|
|
md5 '78d13c4294f3336502ad35c8a30e5583'
|
|
|
|
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.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
|