homebrew-core/Formula/ccat.rb
Jingwen Owen Ou c63829d2c7 ccat 0.1.0 (new formula)
Closes Homebrew/homebrew#39646.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-18 13:03:21 +01:00

20 lines
489 B
Ruby

class Ccat < Formula
homepage "https://github.com/jingweno/ccat"
url "https://github.com/jingweno/ccat/archive/v0.1.0.tar.gz"
sha256 "437c7582ab39c8a1fb5e97ae9569e0096c98209a2ebb11ca67a7f9246b129c7c"
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