homebrew-core/Formula/ccat.rb
Jingwen Owen Ou b901f0beef ccat 1.0.0
Release note: https://github.com/jingweno/ccat/releases/tag/v1.0.0

Closes Homebrew/homebrew#40718.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-06-14 23:40:48 +02:00

28 lines
867 B
Ruby

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.0.0.tar.gz"
sha256 "5bd558009a9054ff25f3d023d67080c211354d1552ffe377ce11d49376fb4aee"
bottle do
cellar :any
sha256 "de19c851b70ac557dc9c3f2a9adfabd9ed3188a6f11a5d9b2f713d9622370dda" => :yosemite
sha256 "ea0549911b2fefd072b42d04e437063c653be7a7d26b57b125fc3807055127bc" => :mavericks
sha256 "737d28a8532177a0a9e3819a28689000826dc4ba854388d90770baaba5c080b5" => :mountain_lion
end
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