ghc 7.8.20140130 (devel)

Closes Homebrew/homebrew#26459.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
master
Geoff Nixon 2014-02-09 13:59:54 +00:00 committed by Mike McQuaid
parent cf38fe38ab
commit ea23729b22
1 changed files with 50 additions and 28 deletions

View File

@ -12,15 +12,36 @@ class Ghc < Formula
sha1 '1569f19cdad2675cbff328c0e259d6b8573e9d11' => :lion
end
option 'tests', 'Verify the build using the testsuite.'
devel do
# http://www.haskell.org/ghc/dist/7.8.1-rc1/README.osx.html
# This block should largely translate over for 7.8.1 when GM.
url 'http://www.haskell.org/ghc/dist/7.8.1-rc1/ghc-7.8.20140130-src.tar.bz2'
sha1 'b9c4d76ff71225fe58bdc4e53d7c659643463b5a'
# Upstream documentation says lion, but brew test-bot 10.7 fails.
depends_on :macos => :mountain_lion
resource 'binary' do
url 'http://www.haskell.org/ghc/dist/7.8.1-rc1/ghc-7.8.20140130-x86_64-apple-darwin-lion.tar.bz2'
sha1 '9026d889b160fbf56f97ec1e91576a20e5eec725'
end
resource 'testsuite' do
url 'http://www.haskell.org/ghc/dist/7.8.1-rc1/ghc-7.8.20140130-testsuite.tar.bz2'
sha1 '17b1d486c1111633bcfa940b9bf940194cf09bc9'
end
end
unless build.devel?
env :std
# http://hackage.haskell.org/trac/ghc/ticket/6009
depends_on :macos => :snow_leopard
depends_on 'apple-gcc42' if MacOS.version >= :mountain_lion
option '32-bit'
option 'tests', 'Verify the build using the testsuite in Fast Mode, 5 min'
# build is not available in the resource's context, so exploit the closure.
build_32_bit = build.build_32_bit?
@ -50,6 +71,7 @@ class Ghc < Formula
# Fixes 7.6.3 compilation on 10.9
DATA if MacOS.version >= :mavericks
end
end
def install
# Move the main tarball contents into a subdirectory