aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLarry Shaffer2014-07-23 21:39:36 -0600
committerMike McQuaid2014-07-25 08:10:56 +0100
commitd8602cde18c07d79ce7d4630854bbaf2747edd7d (patch)
tree2ba16c016f4016f1ca0f1720b0523cf5f9a135ec /Library/Formula
parent5b67123385223dabbcc80e1f40a4224b9e8788dd (diff)
downloadhomebrew-d8602cde18c07d79ce7d4630854bbaf2747edd7d.tar.bz2
proj: add head and vdatum option
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/proj.rb60
1 files changed, 58 insertions, 2 deletions
diff --git a/Library/Formula/proj.rb b/Library/Formula/proj.rb
index bd5fec8b0..7291f13cb 100644
--- a/Library/Formula/proj.rb
+++ b/Library/Formula/proj.rb
@@ -4,6 +4,9 @@ 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
sha1 "08e30f4cf0b09f9f8d61e6ec73f025a8521039f4" => :mavericks
@@ -17,6 +20,52 @@ class Proj < Formula
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
@@ -24,9 +73,16 @@ class Proj < Formula
end
def install
- (buildpath/'nad').install resource('datumgrid')
+ 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"
+ system "make", "install"
end
end