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 Proj < Formula
|
2009-10-02 18:02:51 +00:00
|
|
|
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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '5c8d6769a791c390c873fef92134bf20bb20e82a'
|
2009-10-02 18:02:51 +00:00
|
|
|
|
2014-02-22 19:34:39 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "08e30f4cf0b09f9f8d61e6ec73f025a8521039f4" => :mavericks
|
|
|
|
sha1 "22bc868bb7198300724e837c2463b2f8cd31f942" => :mountain_lion
|
|
|
|
sha1 "c25de74f90c56f3deff6ac1a0984fba265ececb2" => :lion
|
|
|
|
end
|
|
|
|
|
2013-08-07 03:58:22 +00:00
|
|
|
# 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
|
|
|
|
|
2012-09-09 17:40:18 +00:00
|
|
|
skip_clean :la
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2334
|
|
|
|
end
|
2011-03-21 21:24:22 +00:00
|
|
|
|
2009-10-02 18:02:51 +00:00
|
|
|
def install
|
2013-08-07 03:58:22 +00:00
|
|
|
(buildpath/'nad').install resource('datumgrid')
|
2012-09-09 17:40:18 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2009-10-02 18:02:51 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|