homebrew-core/Formula/cabal-install.rb
nibbles 2bits 6c111a70c0 cabal-install: unset VERBOSE, fixes compile error
Cabal-install runs a series of commands that use the env var
`VERBOSE` which has to be either unset or equal to `--verbose`.
Doing a `brew install -v cabal-install` sets `VERBOSE=1` and
breaks the build.

- Unset `VERBOSE`

Fixes Homebrew/homebrew#12155

Closes Homebrew/homebrew#15485.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-20 08:40:12 -07:00

17 lines
454 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.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