diff options
| author | Jack Nagel | 2013-09-21 20:57:25 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-21 20:58:36 -0500 |
| commit | 6a2e83bb09f5b7c6db10886870175001c26e6720 (patch) | |
| tree | 8eb2a3a5bcf0895b2627afc27878505367a9bec5 | |
| parent | dcd7d383d0d66d7b28aa501fe83537d4c9dceb06 (diff) | |
| download | homebrew-6a2e83bb09f5b7c6db10886870175001c26e6720.tar.bz2 | |
Partially revert "ghc: use resources"
Can't use build inside of resource blocks.
This reverts commit 39fd447beeeda4faaa46559e5aadc7c38c99da75.
| -rw-r--r-- | Library/Formula/ghc.rb | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/Library/Formula/ghc.rb b/Library/Formula/ghc.rb index 77f90a461..a9edd45e0 100644 --- a/Library/Formula/ghc.rb +++ b/Library/Formula/ghc.rb @@ -1,5 +1,16 @@ require 'formula' +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' + 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 + version '7.4.2' +end + class Ghc < Formula homepage 'http://haskell.org/ghc/' url 'http://www.haskell.org/ghc/dist/7.6.3/ghc-7.6.3-src.tar.bz2' @@ -19,16 +30,6 @@ class Ghc < Formula option '32-bit' option 'tests', 'Verify the build using the testsuite in Fast Mode, 5 min' - resource 'binary' do - 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' - 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' @@ -50,7 +51,7 @@ class Ghc < Formula # Move the main tarball contents into a subdirectory (buildpath+'Ghcsource').install Dir['*'] - resource('binary').stage do + Ghcbinary.new.brew do # Define where the subformula will temporarily install itself subprefix = buildpath+'subfo' |
