ghc: revision for gmp

and upgrade Sierra to ghc 8.0.2-rc2

Closes #8028.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2016-12-19 09:21:38 -08:00
parent 9d4b86496c
commit 60902c39f3

View file

@ -6,14 +6,14 @@ class Ghc < Formula
desc "Glorious Glasgow Haskell Compilation System"
homepage "https://haskell.org/ghc/"
if MacOS.version >= :sierra
url "https://downloads.haskell.org/~ghc/8.0.2-rc1/ghc-8.0.1.20161117-src.tar.xz"
sha256 "e4a036d1f8e7043dbefb08cd76d69cf44e672307ed595aed040aa602defe1722"
url "https://downloads.haskell.org/~ghc/8.0.2-rc2/ghc-8.0.1.20161213-src.tar.xz"
sha256 "4994e21c722659bef0a6d851f3e1e807585f067b9778e042007ae50117cc2a50"
version "8.0.1"
else
url "https://downloads.haskell.org/~ghc/8.0.1/ghc-8.0.1-src.tar.xz"
sha256 "90fb20cd8712e3c0fbeb2eac8dab6894404c21569746655b9b12ca9684c7d1d2"
end
revision 3
revision 4
bottle do
sha256 "066bebe5c79970838bd589aed33ef209695eb86189c693378bd6fbcc6e47accb" => :sierra
@ -49,10 +49,10 @@ class Ghc < Formula
depends_on "sphinx-doc" => :build if build.with? "docs"
resource "gmp" do
url "https://ftpmirror.gnu.org/gmp/gmp-6.1.1.tar.xz"
mirror "https://gmplib.org/download/gmp/gmp-6.1.1.tar.xz"
mirror "https://ftp.gnu.org/gnu/gmp/gmp-6.1.1.tar.xz"
sha256 "d36e9c05df488ad630fff17edb50051d6432357f9ce04e34a09b3d818825e831"
url "https://ftpmirror.gnu.org/gmp/gmp-6.1.2.tar.xz"
mirror "https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz"
mirror "https://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.xz"
sha256 "87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912"
end
if MacOS.version <= :lion
@ -70,8 +70,8 @@ class Ghc < Formula
# "This is a distribution for Mac OS X, 10.7 or later."
resource "binary" do
if MacOS.version >= :sierra
url "https://downloads.haskell.org/~ghc/8.0.2-rc1/ghc-8.0.1.20161117-x86_64-apple-darwin.tar.xz"
sha256 "6086ac08be3733c8817328c99c4af66f5a2feba02d4be4b0dc0aeac5acf0360e"
url "https://downloads.haskell.org/~ghc/8.0.2-rc2/ghc-8.0.1.20161213-x86_64-apple-darwin.tar.xz"
sha256 "f5cacbf6ae9394cfd191244e6a7ab385184c6dc5168cb2c576ab2d74543c1391"
else
url "https://downloads.haskell.org/~ghc/8.0.1/ghc-8.0.1-x86_64-apple-darwin.tar.xz"
sha256 "06ec33056b927da5e68055147f165f873088f6812fe0c642c4c78c9a449fbc42"
@ -80,8 +80,8 @@ class Ghc < Formula
resource "testsuite" do
if MacOS.version >= :sierra
url "http://downloads.haskell.org/~ghc/8.0.2-rc1/ghc-8.0.1.20161117-testsuite.tar.xz"
sha256 "c3da1333a10d71eb5a0d08391c08c2205d8ca10cb39261964bbcbd745d9277dd"
url "https://downloads.haskell.org/~ghc/8.0.2-rc2/ghc-8.0.1.20161213-testsuite.tar.xz"
sha256 "86ed1ecf570e11bf9bc6b9efe05812eb9ff90cb7627a8014bdcafdf01baba807"
else
url "https://downloads.haskell.org/~ghc/8.0.1/ghc-8.0.1-testsuite.tar.xz"
sha256 "bc57163656ece462ef61072559d491b72c5cdd694f3c39b80ac0f6b9a3dc8151"