aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAku Kotkavuo2011-10-03 15:16:52 +0300
committerAdam Vandenberg2011-11-26 19:47:40 -0800
commit7a73ae6752acde8dda7f6a12b7171373fff601c5 (patch)
tree53c6fee69536f917771ab95177fbdcc848fd0a54 /Library/Formula
parentaff33bfddd8a3ba953d572b5a8ac8b7491eefe12 (diff)
downloadhomebrew-7a73ae6752acde8dda7f6a12b7171373fff601c5.tar.bz2
GHC: add 7.2.2 as --devel
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ghc.rb26
1 files changed, 20 insertions, 6 deletions
diff --git a/Library/Formula/ghc.rb b/Library/Formula/ghc.rb
index 26366a7e3..0014d2847 100644
--- a/Library/Formula/ghc.rb
+++ b/Library/Formula/ghc.rb
@@ -2,13 +2,24 @@ require 'formula'
class Ghc < Formula
homepage 'http://haskell.org/ghc/'
- version '7.0.4'
- if ARGV.include? '--64bit'
- url "http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-x86_64-apple-darwin.tar.bz2"
- md5 'af89d3d2ca6e9b23384baacb7d8161dd'
+ if not ARGV.build_devel?
+ version '7.0.4'
+ if ARGV.include? '--64bit'
+ url "http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-x86_64-apple-darwin.tar.bz2"
+ md5 'af89d3d2ca6e9b23384baacb7d8161dd'
+ else
+ url "http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-i386-apple-darwin.tar.bz2"
+ md5 'ce297e783d113cf1547386703d1b1061'
+ end
else
- url "http://www.haskell.org/ghc/dist/7.0.4/ghc-7.0.4-i386-apple-darwin.tar.bz2"
- md5 'ce297e783d113cf1547386703d1b1061'
+ version '7.2.2'
+ if ARGV.include? '--64bit'
+ url "http://www.haskell.org/ghc/dist/7.2.2/ghc-7.2.2-x86_64-apple-darwin.tar.bz2"
+ md5 '97c9dc221fcf9eb8635f05ba08eca0c9'
+ else
+ url "http://www.haskell.org/ghc/dist/7.2.2/ghc-7.2.2-i386-apple-darwin.tar.bz2"
+ md5 '1084f44b0d9e5ea5d3bf9b699b6e3e35'
+ end
end
# Avoid stripping the Haskell binaries & libraries.
@@ -20,6 +31,9 @@ class Ghc < Formula
end
def install
+ if ARGV.build_devel?
+ opoo "The current version of haskell-platform will NOT work with this version of GHC!"
+ end
if ARGV.include? '--64bit'
if Hardware.is_64_bit?
opoo "The x86_64 version is experimental!"