homebrew-core/Formula/cadubi.rb
2017-01-23 04:30:03 -08:00

20 lines
704 B
Ruby

class Cadubi < Formula
desc "Creative ASCII drawing utility"
homepage "https://github.com/statico/cadubi/"
url "https://github.com/statico/cadubi/archive/v1.3.4.tar.gz"
sha256 "624f85bb16d8b0bc392d761d1121828d09cfc79b3ded5b1220e9b4262924a1a0"
bottle :unneeded
def install
inreplace "cadubi", "$Bin/help.txt", "#{doc}/help.txt"
bin.install "cadubi"
doc.install "help.txt"
man1.install "cadubi.1"
end
test do
output = shell_output("script -q /dev/null #{bin}/cadubi -v | cat")
assert_match "cadubi (Creative ASCII Drawing Utility By Ian) #{version}\r\nCopyright (c) 2015 Ian Langworth", output # complete match because we are not checking the exit code
end
end