-
-
Save peteonrails/1356480 to your computer and use it in GitHub Desktop.
Updating the Homebrew formula for geos, when Mac OS X Lion complains about LLVM / gcc-4.2
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 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 | |
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
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