homebrew-core/Formula/ccat.rb

32 lines
1 KiB
Ruby
Raw Normal View History

class Ccat < Formula
desc "Like cat but displays content with syntax highlighting"
homepage "https://github.com/jingweno/ccat"
url "https://github.com/jingweno/ccat/archive/v1.1.0.tar.gz"
sha256 "b02d2c8d573f5d73595657c7854c9019d3bd2d9e6361b66ce811937ffd2bfbe1"
2015-05-11 21:49:40 +00:00
bottle do
2015-09-24 05:04:40 +00:00
cellar :any_skip_relocation
sha256 "d516a7d20395e317dd78ad2294aadc55e17c77127ffb15703e699d4fd8c0f027" => :el_capitan
2015-06-14 21:20:06 +00:00
sha256 "70c3e7597d8c767d83ebaded9056e94221c71aa70f9b79146fc35874959c5655" => :yosemite
sha256 "201def201539d94334b2cc6fec04154a808d90811352ffeb7d01cd6789e00ccf" => :mavericks
sha256 "7f31873c0412ff8fa3c04ab70cdb4ecb4f2232c415ca535b6e7b149f166695d1" => :mountain_lion
2015-05-11 21:49:40 +00:00
end
2015-08-28 16:02:41 +00:00
conflicts_with "ccrypt", :because => "both install `ccat` binaries"
depends_on "go" => :build
def install
system "./script/build"
bin.install "ccat"
end
test do
(testpath/"test.txt").write <<-EOS.undent
I am a colourful cat
EOS
assert_match(/I am a colourful cat/, shell_output("#{bin}/ccat test.txt"))
end
end