GHC: Refuse to install on Leopard

The binary releases of the GHC compiler are no longer compatible with OS X
10.5.

Fixes Homebrew/homebrew#11671.
master
Charlie Sharpsteen 2012-04-17 06:43:20 -07:00
parent 5b1302d6c4
commit 186861b63e
1 changed files with 10 additions and 0 deletions

View File

@ -37,6 +37,16 @@ class Ghc < Formula
end
def install
if MacOS.leopard?
onoe <<-EOS.undent
GHC requires OS X 10.6 or newer. The binary releases no longer work on
Leopard. See the following issue for details:
http://hackage.haskell.org/trac/ghc/ticket/6009
EOS
exit 1
end
if ARGV.build_devel?
opoo "The current version of haskell-platform will NOT work with this version of GHC!"
end