homebrew-core/Formula/cadubi.rb

21 lines
609 B
Ruby
Raw Normal View History

class Cadubi < Formula
desc "Creative ASCII drawing utility"
homepage "https://github.com/statico/cadubi/"
2017-01-23 12:30:03 +00:00
url "https://github.com/statico/cadubi/archive/v1.3.4.tar.gz"
sha256 "624f85bb16d8b0bc392d761d1121828d09cfc79b3ded5b1220e9b4262924a1a0"
2015-10-23 08:35:21 +00:00
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 = pipe_output("script -q /dev/null #{bin}/cadubi -v", "cat")
assert_match "cadubi (Creative ASCII Drawing Utility By Ian) #{version}", output
end
end