homebrew-core/Formula/cabal-install.rb
2016-12-22 14:43:13 +01:00

31 lines
1.1 KiB
Ruby

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.24.0.2/cabal-install-1.24.0.2.tar.gz"
sha256 "2ac8819238a0e57fff9c3c857e97b8705b1b5fef2e46cd2829e85d96e2a00fe0"
revision 2
head "https://github.com/haskell/cabal.git", :branch => "1.24"
bottle do
cellar :any_skip_relocation
sha256 "e0a493d7aa99719d1822b6309ab506bb5336ef6c58d80adda9b90c98dc15d1ea" => :sierra
sha256 "89ecc04647648c84f48e27d816d591c6757bc3bd533b51d2d5dac0a70ccfa5b9" => :el_capitan
sha256 "080dab3f99758f8959572197aacc33b6da45f2eeeb29eecbfc182ef5ee5f86de" => :yosemite
end
depends_on "ghc"
fails_with :clang if MacOS.version <= :lion # Same as ghc.rb
def install
cd "cabal-install" if build.head?
system "sh", "bootstrap.sh", "--sandbox"
bin.install ".cabal-sandbox/bin/cabal"
bash_completion.install "bash-completion/cabal"
end
test do
system "#{bin}/cabal", "--config-file=#{testpath}/config", "info", "cabal"
end
end