ghc: use :macos

This commit is contained in:
Adam Vandenberg 2013-06-18 08:03:32 -07:00
parent b1d35ebe59
commit d3698b51fa

View file

@ -1,16 +1,5 @@
require 'formula'
class NeedsSnowLeopard < Requirement
satisfy MacOS.version >= :snow_leopard
def message; <<-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
end
end
class Ghcbinary < Formula
if Hardware.is_64_bit? and not build.build_32_bit?
url 'http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-x86_64-apple-darwin.tar.bz2'
@ -34,7 +23,8 @@ class Ghc < Formula
env :std
depends_on NeedsSnowLeopard
# http://hackage.haskell.org/trac/ghc/ticket/6009
depends_on :macos => :snow_leopard
option '32-bit'
option 'tests', 'Verify the build using the testsuite in Fast Mode, 5 min'