aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cabal-install.rb
blob: 98c4b74b31ceb113a5b2be8fdde20b663e1f08f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'formula'

class CabalInstall < Formula
  homepage 'http://www.haskell.org/haskellwiki/Cabal-Install'
  url 'http://www.haskell.org/cabal/release/cabal-install-0.10.2/cabal-install-0.10.2.tar.gz'
  md5 'bc906ef0bed79cbb33fdb36b73514281'

  depends_on 'ghc'

  def install
    ENV['PREFIX'] = "#{prefix}"
    system "sh bootstrap.sh"

    (prefix+'etc/bash_completion.d').install 'bash-completion/cabal'
  end
end