homebrew-core/Formula/proj.rb

28 lines
681 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'
sha1 '4429ba1a8c764d5c0e6724d868f6874f452f7440'
end
2011-03-10 05:11:03 +00:00
class Proj < Formula
homepage 'http://trac.osgeo.org/proj/'
2012-09-09 17:40:18 +00:00
url 'http://download.osgeo.org/proj/proj-4.8.0.tar.gz'
sha1 '5c8d6769a791c390c873fef92134bf20bb20e82a'
2012-09-09 17:40:18 +00:00
skip_clean :la
fails_with :llvm do
build 2334
end
2011-03-21 21:24:22 +00:00
def install
# The datum grid files are required to support datum shifting
ProjDatumgrid.new.brew { cp Dir["*"], buildpath/'nad' }
2012-09-09 17:40:18 +00:00
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end