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

class CabalInstall < Formula
  homepage 'http://www.haskell.org/haskellwiki/Cabal-Install'
  url 'http://www.haskell.org/cabal/release/cabal-install-0.14.0/cabal-install-0.14.0.tar.gz'
  sha1 '614a683ec15a8d9b77e8d926c6906e8d00e3d401'

  depends_on 'ghc'

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

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