2010-03-24 21:45:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class HaskellPlatform < Formula
|
2011-04-16 00:56:45 +00:00
|
|
|
url 'http://lambda.galois.com/hp-tmp/2011.2.0.1/haskell-platform-2011.2.0.1.tar.gz'
|
2010-03-24 21:45:48 +00:00
|
|
|
homepage 'http://hackage.haskell.org/platform/'
|
2011-04-16 00:56:45 +00:00
|
|
|
md5 '97fd42f169a426d043368cec342745ef'
|
2010-03-24 21:45:48 +00:00
|
|
|
|
|
|
|
depends_on 'ghc'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# libdir doesn't work if passed to configure, needs to be passed to make install
|
2011-06-20 04:00:38 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--enable-unsupported-ghc-version"
|
2010-03-24 21:45:48 +00:00
|
|
|
system %Q(EXTRA_CONFIGURE_OPTS="--libdir=#{lib}/ghc" make install)
|
|
|
|
end
|
|
|
|
|
2010-07-26 00:27:18 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
Run `cabal update` to initialize the package list.
|
|
|
|
|
|
|
|
If you are trying to upgrade from a previous version of haskell-platform,
|
|
|
|
you may need to delete .conf files from:
|
|
|
|
~/.ghc/i386-darwin-6.12.3/package.conf.d
|
|
|
|
that reference the previous version of haskell-platform first!
|
|
|
|
EOS
|
2010-03-24 21:45:48 +00:00
|
|
|
end
|
|
|
|
end
|