2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-02 18:02:51 +00:00
|
|
|
|
2011-03-10 05:11:03 +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
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Proj < Formula
|
2012-03-15 18:35:33 +00:00
|
|
|
url 'http://download.osgeo.org/proj/proj-4.8.0.tar.gz'
|
2009-10-02 18:02:51 +00:00
|
|
|
homepage 'http://trac.osgeo.org/proj/'
|
2012-03-15 18:35:33 +00:00
|
|
|
md5 'd815838c92a29179298c126effbb1537'
|
2009-10-02 18:02:51 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2334
|
|
|
|
end
|
2011-03-21 21:24:22 +00:00
|
|
|
|
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
|
|
|
|
# The datum grid files are required to support datum shifting
|
2012-05-08 05:34:17 +00:00
|
|
|
ProjDatumgrid.new.brew { cp Dir["*"], buildpath/'nad' }
|
2009-10-02 18:02:51 +00:00
|
|
|
|
2012-05-08 05:36:13 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
2009-10-02 18:02:51 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|