Last active
December 12, 2015 01:38
-
-
Save errorstudio/4692142 to your computer and use it in GitHub Desktop.
Homebrew Recipe to install Proj version 4.7.0 (which is required for the Proj4rb gem on OSX)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class ProjDatumgrid < Formula | |
url 'http://download.osgeo.org/proj/proj-datumgrid-1.5.zip' | |
sha1 '4429ba1a8c764d5c0e6724d868f6874f452f7440' | |
end | |
class Proj < Formula | |
url 'http://download.osgeo.org/proj/proj-4.7.0.tar.gz' | |
homepage 'http://trac.osgeo.org/proj/' | |
sha1 'bfe59b8dc1ea0c57e1426c37ff2b238fea66acd7' | |
fails_with_llvm :build => 2334 | |
def skip_clean? path | |
path.extname == '.la' | |
end | |
def install | |
# The datum grid files are required to support datum shifting | |
d = Dir.getwd | |
ProjDatumgrid.new.brew { cp Dir["*"], "#{d}/nad/" } | |
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment