mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
proj: use resource
This commit is contained in:
1 parent
f6bc144308
commit
51b2f79c0e
1 file changed
+7
-8
@@ -1,15 +1,16 @@
|
||||
require 'formula'
|
||||
|
||||
class ProjDatumgrid < Formula
|
||||
url 'http://download.osgeo.org/proj/proj-datumgrid-1.5.zip'
|
||||
sha1 '4429ba1a8c764d5c0e6724d868f6874f452f7440'
|
||||
end
|
||||
|
||||
class Proj < Formula
|
||||
homepage 'http://trac.osgeo.org/proj/'
|
||||
url 'http://download.osgeo.org/proj/proj-4.8.0.tar.gz'
|
||||
sha1 '5c8d6769a791c390c873fef92134bf20bb20e82a'
|
||||
|
||||
# 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
|
||||
|
||||
skip_clean :la
|
||||
|
||||
fails_with :llvm do
|
||||
@@ -17,9 +18,7 @@ class Proj < Formula
|
||||
end
|
||||
|
||||
def install
|
||||
# The datum grid files are required to support datum shifting
|
||||
ProjDatumgrid.new.brew { cp Dir["*"], buildpath/'nad' }
|
||||
|
||||
(buildpath/'nad').install resource('datumgrid')
|
||||
system "./configure", "--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}"
|
||||
system "make install"
|
||||
|
||||
Reference in new issue
Block a user