aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorCharlie Sharpsteen2012-04-17 06:43:20 -0700
committerCharlie Sharpsteen2012-04-17 06:44:31 -0700
commit2e14216c696205c1ddafa9ccc75c5d78acf77da6 (patch)
tree4e3ebe189452cd1a99356daff19d383345086c85 /Library/Formula
parent27dd65f93c28cb2cf110a20077abb34054e2a5fe (diff)
downloadhomebrew-2e14216c696205c1ddafa9ccc75c5d78acf77da6.tar.bz2
GHC: Refuse to install on Leopard
The binary releases of the GHC compiler are no longer compatible with OS X 10.5. Fixes #11671.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ghc.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/ghc.rb b/Library/Formula/ghc.rb
index 2ea9a3dc2..2cf26f9dd 100644
--- a/Library/Formula/ghc.rb
+++ b/Library/Formula/ghc.rb
@@ -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