From 4a0e7211c4de8b01dbc0756f753c16b7ba2e77cb Mon Sep 17 00:00:00 2001 From: Josh Tilles Date: Mon, 8 Sep 2014 15:26:47 -0500 Subject: cabal-install: Anticipate and fix GHC 7.8 bug. --- Library/Formula/cabal-install.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/cabal-install.rb b/Library/Formula/cabal-install.rb index 7b1036dd9..6d6e0cc62 100644 --- a/Library/Formula/cabal-install.rb +++ b/Library/Formula/cabal-install.rb @@ -4,6 +4,7 @@ class CabalInstall < Formula homepage "http://www.haskell.org/haskellwiki/Cabal-Install" url "http://hackage.haskell.org/package/cabal-install-1.20.0.3/cabal-install-1.20.0.3.tar.gz" sha1 "444448b0f704420e329e8fc1989b6743c1c8546d" + revision 1 bottle do cellar :any @@ -25,6 +26,10 @@ class CabalInstall < Formula inreplace "bootstrap.sh", "list --global", "list --global --no-user-package-db" + # Avoid a nasty bug in Cabal by forcing the bootstrap script to pull a later version. + # (q.v. https://github.com/haskell/cabal/issues/1740) + inreplace "bootstrap.sh", 'CABAL_VER="1.20.0.0";', 'CABAL_VER="1.20.0.2";' + system "sh", "bootstrap.sh" bin.install "bin/cabal" bash_completion.install "bash-completion/cabal" -- cgit v1.2.3