03455325ed
The bash completion shipped with cabal-install package is now installed to bash_completion.d directory. Closes Homebrew/homebrew#8261. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
18 lines
495 B
Ruby
18 lines
495 B
Ruby
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"
|
|
|
|
cellar_etc = prefix + 'etc'
|
|
bash_completion_d = cellar_etc + 'bash_completion.d'
|
|
bash_completion_d.install 'bash-completion/cabal'
|
|
end
|
|
end
|