aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/haskell-platform.rb
blob: bcb2e21c0dcff65a8bcf8241e168ba0441c6e9d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'formula'

class HaskellPlatform < Formula
  url 'http://lambda.galois.com/hp-tmp/2011.2.0.0/haskell-platform-2011.2.0.0.tar.gz'
  homepage 'http://hackage.haskell.org/platform/'
  md5 'b259698a93986b8679a0b0a415780e3a'
  version '2011.2.0.0'

  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 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
  end
end