homebrew-core/Formula/haskell-platform.rb
rhysd 90afeeaf19 haskell-platform: Update to 2012.2.0.0
Haskell-platform has updated to 2012.2.0.0.

Closes Homebrew/homebrew#12605.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-06-05 15:44:48 -07:00

27 lines
954 B
Ruby

require 'formula'
class HaskellPlatform < Formula
homepage 'http://hackage.haskell.org/platform/'
url 'http://lambda.haskell.org/platform/download/2012.2.0.0/haskell-platform-2012.2.0.0.tar.gz'
sha1 '91405b8d864d35d90effb9aac3ad9309ea6d86a7'
depends_on 'ghc'
def install
# libdir doesn't work if passed to configure, needs to be passed to make install
system "./configure", "--prefix=#{prefix}", "--enable-unsupported-ghc-version"
system %Q(EXTRA_CONFIGURE_OPTS="--libdir=#{lib}/ghc" make install)
end
def caveats; <<-EOS.undent
Run `cabal update` to initialize the package list.
If you are replacing a previous version of haskell-platform, you may want
to unregister packages belonging to the old version. You can find broken
packages using:
ghc-pkg check --simple-output
You can uninstall them using:
ghc-pkg check --simple-output | xargs -n 1 ghc-pkg unregister --force
EOS
end
end