ghc: fix installation on Lion
The error with the previous version of this Formula was: checking version of ghc... 7.6.3 configure: error: GHC version 7.8 or later is required to compile GHC. Also, depends_on :macos => :lion now. Closes #2039. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
0463c8021e
commit
164e8f1457
1 changed files with 6 additions and 7 deletions
|
@ -15,6 +15,8 @@ class Ghc < Formula
|
|||
deprecated_option "tests" => "with-test"
|
||||
deprecated_option "with-tests" => "with-test"
|
||||
|
||||
depends_on :macos => :lion
|
||||
|
||||
resource "gmp" do
|
||||
url "http://ftpmirror.gnu.org/gmp/gmp-6.1.0.tar.bz2"
|
||||
mirror "https://gmplib.org/download/gmp/gmp-6.1.0.tar.bz2"
|
||||
|
@ -33,14 +35,11 @@ class Ghc < Formula
|
|||
end
|
||||
end
|
||||
|
||||
# https://www.haskell.org/ghc/download_ghc_8_0_1#macosx_x86_64
|
||||
# "This is a distribution for Mac OS X, 10.7 or later."
|
||||
resource "binary" do
|
||||
if MacOS.version <= :lion
|
||||
url "https://downloads.haskell.org/~ghc/7.6.3/ghc-7.6.3-x86_64-apple-darwin.tar.bz2"
|
||||
sha256 "f7a35bea69b6cae798c5f603471a53b43c4cc5feeeeb71733815db6e0a280945"
|
||||
else
|
||||
url "https://downloads.haskell.org/~ghc/8.0.1/ghc-8.0.1-x86_64-apple-darwin.tar.xz"
|
||||
sha256 "06ec33056b927da5e68055147f165f873088f6812fe0c642c4c78c9a449fbc42"
|
||||
end
|
||||
url "https://downloads.haskell.org/~ghc/8.0.1/ghc-8.0.1-x86_64-apple-darwin.tar.xz"
|
||||
sha256 "06ec33056b927da5e68055147f165f873088f6812fe0c642c4c78c9a449fbc42"
|
||||
end
|
||||
|
||||
resource "testsuite" do
|
||||
|
|
Loading…
Reference in a new issue