homebrew-core/Formula/cabal-install.rb

27 lines
909 B
Ruby
Raw Normal View History

class CabalInstall < Formula
homepage "https://www.haskell.org/cabal/"
url "https://hackage.haskell.org/package/cabal-install-1.22.0.1/cabal-install-1.22.0.1.tar.gz"
sha256 "87afa8f5d2bffafeffa9ff71062bf09469aade3ae52975c09c35ce61520d10c8"
2013-10-03 08:55:52 +00:00
bottle do
cellar :any
2015-03-08 06:21:26 +00:00
sha256 "f79146e9d429b7f2c3ad990873eb67de99ec55383cc83d82229f73f44195d90c" => :yosemite
sha256 "669bc4766916ecf99ceb3c2ab173a6034362654b4869105bbae7ad98f9ff8ff0" => :mavericks
sha256 "cffdc3a8bec2a51c2a834bb73e0c56412a8cc0d4ecca036a678f497e91a62958" => :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