2011-08-13 06:11:05 +00:00
|
|
|
class CabalInstall < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Command-line interface for Cabal and Hackage"
|
2015-03-07 19:50:04 +00:00
|
|
|
homepage "https://www.haskell.org/cabal/"
|
2015-07-31 07:12:05 +00:00
|
|
|
url "https://hackage.haskell.org/package/cabal-install-1.22.6.0/cabal-install-1.22.6.0.tar.gz"
|
|
|
|
sha256 "9d239e385696a7faa49f068aea451882baec6a7df26fbddbd08271c9053cb0b4"
|
2011-08-13 06:11:05 +00:00
|
|
|
|
2013-10-03 08:55:52 +00:00
|
|
|
bottle do
|
2015-09-18 13:22:47 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "75a8233c8825ca13afa976fadff8ddda532aa1deeeba1a1bb4d2b227e2dc4e2d" => :el_capitan
|
|
|
|
sha256 "5afe2d71b44c28af300384b6f957dbe65b87fb0d7276609016856733f7791bfa" => :yosemite
|
|
|
|
sha256 "a328d8c73a3913ef488db38a8ff29162ae863c9b66f1e76b1480c4f23560f9ee" => :mavericks
|
2013-10-03 08:55:52 +00:00
|
|
|
end
|
|
|
|
|
2014-07-29 08:04:52 +00:00
|
|
|
depends_on "ghc"
|
2011-08-13 06:11:05 +00:00
|
|
|
|
2014-09-08 20:54:11 +00:00
|
|
|
fails_with :clang if MacOS.version < :mavericks # Same as ghc.rb
|
|
|
|
|
2011-08-13 06:11:05 +00:00
|
|
|
def install
|
2015-01-07 22:58:15 +00:00
|
|
|
system "sh", "bootstrap.sh", "--sandbox"
|
|
|
|
bin.install ".cabal-sandbox/bin/cabal"
|
2014-07-29 08:04:52 +00:00
|
|
|
bash_completion.install "bash-completion/cabal"
|
2011-08-13 06:11:05 +00:00
|
|
|
end
|
2013-10-03 09:19:41 +00:00
|
|
|
|
|
|
|
test do
|
2014-07-29 08:04:52 +00:00
|
|
|
system "#{bin}/cabal", "--config-file=#{testpath}/config", "info", "cabal"
|
2013-10-03 09:19:41 +00:00
|
|
|
end
|
2011-08-13 06:11:05 +00:00
|
|
|
end
|