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/"
|
2016-04-16 10:07:50 +00:00
|
|
|
url "https://hackage.haskell.org/package/cabal-install-1.22.9.0/cabal-install-1.22.9.0.tar.gz"
|
|
|
|
sha256 "874035e5730263653c7aa459f270efbffc06da92ea0c828e09ebc04400e94940"
|
2011-08-13 06:11:05 +00:00
|
|
|
|
2013-10-03 08:55:52 +00:00
|
|
|
bottle do
|
2016-04-16 10:36:36 +00:00
|
|
|
sha256 "e0aeba6df425d2e6d3c9f40059eeafffc4c7ab50fcf9e8a018a6bafed859c253" => :el_capitan
|
|
|
|
sha256 "07c790c32d85cc62230eb35bed0f1ba6c589000f2e7548f1bcd88d087d969e87" => :yosemite
|
|
|
|
sha256 "780faa5309f62c7e4cf222c9f7f82f4f2e6b8c3d87e18d45ca2e3ebbb9757347" => :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
|
|
|
|
2015-11-11 23:23:47 +00:00
|
|
|
fails_with :clang if MacOS.version < :lion # Same as ghc.rb
|
2014-09-08 20:54:11 +00:00
|
|
|
|
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
|