homebrew-core/Formula/proj.rb

29 lines
675 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class ProjDatumgrid < Formula
url 'http://download.osgeo.org/proj/proj-datumgrid-1.5.zip'
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'
homepage 'http://trac.osgeo.org/proj/'
2012-03-15 18:35:33 +00:00
md5 'd815838c92a29179298c126effbb1537'
fails_with :llvm do
build 2334
end
2011-03-21 21:24:22 +00:00
def skip_clean? path
path.extname == '.la'
end
def install
# The datum grid files are required to support datum shifting
ProjDatumgrid.new.brew { cp Dir["*"], buildpath/'nad' }
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make install"
end
end