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-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-05-13 15:19:04 +00:00
|
|
|
revision 1
|
|
|
|
|
2015-03-18 05:11:10 +00:00
|
|
|
bottle do
|
2015-05-13 16:24:52 +00:00
|
|
|
sha256 "49b15946ec65f85e5b94333485ba8a8eee1b7ec6d2f53c4619d894c9aaf3e6a8" => :yosemite
|
|
|
|
sha256 "aaa095676d987a4cdfb613ddf4be28fd8ae1eaf4788f85b045fa5711cfecdffb" => :mavericks
|
|
|
|
sha256 "8dcb4a2e9c72d22ab96eee8f18ce4f63bd5f28dea6ef586de82865c94cb2fd8a" => :mountain_lion
|
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
|
|
|
|
2015-05-29 02:30:10 +00:00
|
|
|
setup_ghc_compilers
|
|
|
|
|
2015-03-18 01:23:10 +00:00
|
|
|
def install
|
2015-05-13 15:19:04 +00:00
|
|
|
# The "--allow-newer" is a hack for GHC 7.10.1, remove when possible.
|
|
|
|
install_cabal_package "--allow-newer"
|
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
|