2015-03-18 01:23:10 +00:00
|
|
|
require "language/haskell"
|
|
|
|
|
|
|
|
class Cless < Formula
|
|
|
|
include Language::Haskell::Cabal
|
|
|
|
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Display file contents with colorized syntax highlighting"
|
2015-03-18 01:23:10 +00:00
|
|
|
homepage "https://github.com/tanakh/cless"
|
2015-12-22 23:05:34 +00:00
|
|
|
url "https://github.com/tanakh/cless/archive/0.3.0.0.tar.gz"
|
|
|
|
sha256 "382ad9b2ce6bf216bf2da1b9cadd9a7561526bfbab418c933b646d03e56833b2"
|
2015-05-13 15:19:04 +00:00
|
|
|
revision 1
|
|
|
|
|
2015-03-18 05:11:10 +00:00
|
|
|
bottle do
|
2016-05-26 08:52:53 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "4d6c49c06cf947e75aaaef79f45b13d25c343641312639ad16b9745615169dff" => :el_capitan
|
|
|
|
sha256 "ef83bdacb690d95de845c03b12b8c18819ac7a1733cc97e46755be79ac17fdf3" => :yosemite
|
|
|
|
sha256 "7e5f360fccaee62ea35aaba208d88a20e64fabf4a512da71323191cd582fb35d" => :mavericks
|
2015-03-18 05:11:10 +00:00
|
|
|
end
|
|
|
|
|
2015-03-18 01:23:10 +00:00
|
|
|
depends_on "ghc" => :build
|
2015-05-13 15:19:04 +00:00
|
|
|
depends_on "cabal-install" => :build
|
2015-03-18 01:23:10 +00:00
|
|
|
|
|
|
|
def install
|
2016-05-26 06:36:33 +00:00
|
|
|
# GHC 8 compat
|
|
|
|
# Reported 25 May 2016: https://github.com/tanakh/cless/issues/3
|
|
|
|
# Also see "fix compilation with GHC 7.10", which has the base bump but not
|
|
|
|
# the transformers bump: https://github.com/tanakh/cless/pull/2
|
|
|
|
(buildpath/"cabal.config").write("allow-newer: base,transformers\n")
|
|
|
|
|
2015-12-22 23:05:34 +00:00
|
|
|
install_cabal_package
|
2015-03-18 01:23:10 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/cless", "--help"
|
|
|
|
system "#{bin}/cless", "--list-langs"
|
|
|
|
system "#{bin}/cless", "--list-styles"
|
|
|
|
end
|
|
|
|
end
|