homebrew-core/Formula/cabal-install.rb

28 lines
1 KiB
Ruby
Raw Normal View History

class CabalInstall < Formula
desc "Command-line interface for Cabal and Hackage"
homepage "https://www.haskell.org/cabal/"
url "https://hackage.haskell.org/package/cabal-install-1.22.6.0/cabal-install-1.22.6.0.tar.gz"
sha256 "9d239e385696a7faa49f068aea451882baec6a7df26fbddbd08271c9053cb0b4"
2013-10-03 08:55:52 +00:00
bottle do
2015-09-12 12:01:26 +00:00
sha256 "b11e484a91c2380391cd35c940e4aeb43aad0586618ecf7bb1344bdfec14aeb0" => :el_capitan
2015-07-31 07:38:08 +00:00
sha256 "07890be8c3dd1cf938117fd9ef33e22dca9602b17d99aa8f2189b0d36ac522e4" => :yosemite
sha256 "a31402a686055a7107e50b2c952991d7969f8ba1fa77ff97680657772feaece2" => :mavericks
sha256 "3b88e5bc77f90b3cce16f3b7c0e21ef68117abbb74a022e36e444edf1740709f" => :mountain_lion
2013-10-03 08:55:52 +00:00
end
2014-07-29 08:04:52 +00:00
depends_on "ghc"
fails_with :clang if MacOS.version < :mavericks # Same as ghc.rb
def install
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"
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
end