homebrew-core/Formula/proj.rb

90 lines
2.5 KiB
Ruby

require 'formula'
class Proj < Formula
homepage 'http://trac.osgeo.org/proj/'
url 'http://download.osgeo.org/proj/proj-4.8.0.tar.gz'
sha1 '5c8d6769a791c390c873fef92134bf20bb20e82a'
head "http://svn.osgeo.org/metacrs/proj/trunk/proj/"
option "with-vdatum", "Install vertical datum files (~380 MB)"
bottle do
revision 1
sha1 "8033b20110932a5bbbb0c88876c6e612cb8aafed" => :mavericks
sha1 "213a5bb235c8bda454c84cb46b741d1bb99879f5" => :mountain_lion
sha1 "b3e5a064514313586947ccdc5563366719eb2c0c" => :lion
end
# The datum grid files are required to support datum shifting
resource 'datumgrid' do
url 'http://download.osgeo.org/proj/proj-datumgrid-1.5.zip'
sha1 '4429ba1a8c764d5c0e6724d868f6874f452f7440'
end
# Vertical datum files
resource "usa_geoid2012" do
url "http://download.osgeo.org/proj/vdatum/usa_geoid2012.zip"
sha1 "07359705877c2af2be3508e7905813f20ed4ba20"
end
resource "usa_geoid2009" do
url "http://download.osgeo.org/proj/vdatum/usa_geoid2009.zip"
sha1 "7ba5ff82dacf1dd56d666dd3ee8470e86946a479"
end
resource "usa_geoid2003" do
url "http://download.osgeo.org/proj/vdatum/usa_geoid2003.zip"
sha1 "d83c584c936045c9f6c51209e4726449eb5d1c17"
end
resource "usa_geoid1999" do
url "http://download.osgeo.org/proj/vdatum/usa_geoid1999.zip"
sha1 "1374f67dced7350783458431d916d1d8934cb187"
end
resource "vertconc" do
url "http://download.osgeo.org/proj/vdatum/vertcon/vertconc.gtx"
sha1 "9ce4b68f3991ed54316c0d534a3c5744b55b5cd2"
end
resource "vertcone" do
url "http://download.osgeo.org/proj/vdatum/vertcon/vertcone.gtx"
sha1 "265aa34c14ed049441c212aeda3cada9281e6ec7"
end
resource "vertconw" do
url "http://download.osgeo.org/proj/vdatum/vertcon/vertconw.gtx"
sha1 "379b4852b837ca4186f089f35d097521bf63ed1f"
end
resource "egm96_15" do
url "http://download.osgeo.org/proj/vdatum/egm96_15/egm96_15.gtx"
sha1 "5396c20a37c63abb1191ab44a164e2e2106dcb6c"
end
resource "egm08_25" do
url "http://download.osgeo.org/proj/vdatum/egm08_25/egm08_25.gtx"
sha1 "cddabcb9f9000afa869bdbfeb7bcf13521647fa7"
end
skip_clean :la
fails_with :llvm do
build 2334
end
def install
resources.each do |r|
if r.name == "datumgrid"
(buildpath/"nad").install r
elsif build.with? "vdatum"
(share/"proj").install r
end
end
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end