Skip to content

Instantly share code, notes, and snippets.

@peteonrails
Created Nov 10, 2011
Embed
What would you like to do?
Updating the Homebrew formula for geos, when Mac OS X Lion complains about LLVM / gcc-4.2
require 'formula'
class Geos < Formula
url 'http://download.osgeo.org/geos/geos-3.3.1.tar.bz2'
homepage 'http://trac.osgeo.org/geos/'
md5 'b1ceefe205c9ee520b99f2b072c345f7'
def skip_clean? path
path.extname == '.la'
end
fails_with_llvm "Some symbols are missing during link step."
def install
ENV.O3
# Force CLang instead of LLVM-GCC on Lion:
# http://trac.osgeo.org/geos/ticket/463
ENV.clang if MacOS.lion?
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
end
end
If installing PostGIS or GEOS fails with a complain about LLVM / gcc-4.2, then you may need to update the recipe for home-brew's geos.
`brew edit geos`
Then paste the contents of the file below into the editor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment