ghc: use :macos
This commit is contained in:
parent
b1d35ebe59
commit
d3698b51fa
1 changed files with 2 additions and 12 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue