2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-02 18:02:51 +00:00
|
|
|
|
|
|
|
class ProjDatumgrid <Formula
|
2010-04-26 23:19:00 +00:00
|
|
|
url 'http://download.osgeo.org/proj/proj-datumgrid-1.5.zip'
|
2009-10-02 18:02:51 +00:00
|
|
|
md5 'f5bf28a2a9c6afe9a3f670f0c0adb783'
|
|
|
|
end
|
|
|
|
|
|
|
|
class Proj <Formula
|
|
|
|
url 'http://download.osgeo.org/proj/proj-4.7.0.tar.gz'
|
|
|
|
homepage 'http://trac.osgeo.org/proj/'
|
|
|
|
md5 '927d34623b52e0209ba2bfcca18fe8cd'
|
|
|
|
|
2010-04-02 17:10:05 +00:00
|
|
|
def skip_clean? path
|
|
|
|
path.extname == '.la'
|
|
|
|
end
|
|
|
|
|
2009-10-02 18:02:51 +00:00
|
|
|
def install
|
2010-06-16 18:50:36 +00:00
|
|
|
fails_with_llvm
|
2009-10-02 18:02:51 +00:00
|
|
|
|
|
|
|
# The datum grid files are required to support datum shifting
|
|
|
|
d = Dir.getwd
|
2010-04-07 05:58:35 +00:00
|
|
|
ProjDatumgrid.new.brew { cp Dir["*"], "#{d}/nad/" }
|
2009-10-02 18:02:51 +00:00
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|