homebrew-core/Formula/cabal-install.rb

28 lines
962 B
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.2.0/cabal-install-1.22.2.0.tar.gz"
sha256 "25bc2ea88f60bd0f19bf40984ea85491461973895480b8633d87f54aa7ae6adb"
2013-10-03 08:55:52 +00:00
bottle do
2015-05-13 11:22:02 +00:00
revision 1
sha256 "038be93dac43c7d28f65b9dade9b8e5fcf249d2d2b27e7c06a31fd79e44de0ed" => :yosemite
sha256 "e1819fa8d2567adcb369503426a18c6abd610fbadbe72b66128cfa2baabfbacb" => :mavericks
sha256 "1742ed2dede4863e98dffcfb17d964c9ac07cd09484b64f9955ddec1433acaea" => :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