aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorGeoff Nixon2014-02-09 13:59:54 +0000
committerMike McQuaid2014-02-09 14:13:02 +0000
commit1d2595bf048d4da304dab0fe24441478f0600896 (patch)
treef326b8abfeddd49e2e7f2907a856ad7c771f65c8 /Library/Formula
parent44cb1c8efee3998238b37c9029f83c83568f8054 (diff)
downloadhomebrew-1d2595bf048d4da304dab0fe24441478f0600896.tar.bz2
ghc 7.8.20140130 (devel)
Closes #26459. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ghc.rb78
1 files changed, 50 insertions, 28 deletions
diff --git a/Library/Formula/ghc.rb b/Library/Formula/ghc.rb
index 75308bdc6..27a67250b 100644
--- a/Library/Formula/ghc.rb
+++ b/Library/Formula/ghc.rb
@@ -12,43 +12,65 @@ class Ghc < Formula
sha1 '1569f19cdad2675cbff328c0e259d6b8573e9d11' => :lion
end
- env :std
+ option 'tests', 'Verify the build using the testsuite.'
- # http://hackage.haskell.org/trac/ghc/ticket/6009
- depends_on :macos => :snow_leopard
+ 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'
- depends_on 'apple-gcc42' if MacOS.version >= :mountain_lion
+ # Upstream documentation says lion, but brew test-bot 10.7 fails.
+ depends_on :macos => :mountain_lion
- option '32-bit'
- option 'tests', 'Verify the build using the testsuite in Fast Mode, 5 min'
+ 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
- # build is not available in the resource's context, so exploit the closure.
- build_32_bit = build.build_32_bit?
- resource 'binary' do
- if Hardware.is_64_bit? and not build_32_bit
- url 'http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-x86_64-apple-darwin.tar.bz2'
- sha1 '7c655701672f4b223980c3a1068a59b9fbd08825'
- else
- url 'http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-i386-apple-darwin.tar.bz2'
- sha1 '60f749893332d7c22bb4905004a67510992d8ef6'
+ 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
- resource 'testsuite' do
- url 'https://github.com/ghc/testsuite/archive/ghc-7.6.3-release.tar.gz'
- sha1 '6a1973ae3cccdb2f720606032ae84ffee8680ca1'
- end
+ unless build.devel?
+ env :std
- fails_with :clang do
- cause <<-EOS.undent
- Building with Clang configures GHC to use Clang as its preprocessor,
- which causes subsequent GHC-based builds to fail.
- EOS
- end
+ # 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'
- def patches
- # Fixes 7.6.3 compilation on 10.9
- DATA if MacOS.version >= :mavericks
+ # build is not available in the resource's context, so exploit the closure.
+ build_32_bit = build.build_32_bit?
+ resource 'binary' do
+ if Hardware.is_64_bit? and not build_32_bit
+ url 'http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-x86_64-apple-darwin.tar.bz2'
+ sha1 '7c655701672f4b223980c3a1068a59b9fbd08825'
+ else
+ url 'http://www.haskell.org/ghc/dist/7.4.2/ghc-7.4.2-i386-apple-darwin.tar.bz2'
+ sha1 '60f749893332d7c22bb4905004a67510992d8ef6'
+ end
+ end
+
+ resource 'testsuite' do
+ url 'https://github.com/ghc/testsuite/archive/ghc-7.6.3-release.tar.gz'
+ sha1 '6a1973ae3cccdb2f720606032ae84ffee8680ca1'
+ end
+
+ fails_with :clang do
+ cause <<-EOS.undent
+ Building with Clang configures GHC to use Clang as its preprocessor,
+ which causes subsequent GHC-based builds to fail.
+ EOS
+ end
+
+ def patches
+ # Fixes 7.6.3 compilation on 10.9
+ DATA if MacOS.version >= :mavericks
+ end
end
def install