2015-03-18 01:23:10 +00:00
|
|
|
require "language/haskell"
|
|
|
|
|
|
|
|
class Cless < Formula
|
|
|
|
include Language::Haskell::Cabal
|
|
|
|
|
|
|
|
homepage "https://github.com/tanakh/cless"
|
2015-03-20 01:35:43 +00:00
|
|
|
url "https://hackage.haskell.org/package/cless-0.3.0.0/cless-0.3.0.0.tar.gz"
|
|
|
|
sha256 "0f06437973de1c36c1ac2472091a69c2684db40ba12f881592f1f08e8584629b"
|
2015-03-18 01:23:10 +00:00
|
|
|
|
2015-03-18 05:11:10 +00:00
|
|
|
bottle do
|
2015-03-20 03:35:57 +00:00
|
|
|
sha256 "76b8d84196408e6e9a8600cb1a35240e75206db8d006ef8bfe38e7a171bb1b2c" => :yosemite
|
|
|
|
sha256 "4027a2a344f157df664b878d74a5912cc75b55ecb8c9f76395ce4c178aa57839" => :mavericks
|
|
|
|
sha256 "b370de61dbd0e438f5910ba5d98755b561a08cf151ecdc03c96bc2c2053fd1a5" => :mountain_lion
|
2015-03-18 05:11:10 +00:00
|
|
|
end
|
|
|
|
|
2015-03-18 01:23:10 +00:00
|
|
|
depends_on "cabal-install" => :build
|
|
|
|
depends_on "ghc" => :build
|
2015-03-18 13:14:50 +00:00
|
|
|
depends_on "gmp"
|
2015-03-18 01:23:10 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
install_cabal_package
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/cless", "--help"
|
|
|
|
system "#{bin}/cless", "--list-langs"
|
|
|
|
system "#{bin}/cless", "--list-styles"
|
|
|
|
end
|
|
|
|
end
|