Skip to content

Instantly share code, notes, and snippets.

@errorstudio
Last active December 12, 2015 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save errorstudio/4692142 to your computer and use it in GitHub Desktop.
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)
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