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-04-01 03:38:37 +00:00
|
|
|
url "https://hackage.haskell.org/package/cabal-install-1.22.2.0/cabal-install-1.22.2.0.tar.gz"
|
|
|
|
sha256 "25bc2ea88f60bd0f19bf40984ea85491461973895480b8633d87f54aa7ae6adb"
|
2011-08-13 06:11:05 +00:00
|
|
|
|
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"
|
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
|