homebrew-core/Formula/cowsay.rb

29 lines
1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Cowsay < Formula
desc "Configurable talking characters in ASCII art"
homepage "https://web.archive.org/web/20120225123719/http://www.nog.net/~tony/warez/cowsay.shtml"
url "http://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/c/cowsay/cowsay_3.03.orig.tar.gz"
sha256 "0b8672a7ac2b51183780db72618b42af8ec1ce02f6c05fe612510b650540b2af"
2012-06-24 17:54:46 +00:00
2015-01-18 23:41:52 +00:00
bottle do
2015-09-22 13:49:26 +00:00
cellar :any_skip_relocation
revision 1
sha256 "c041ce7fbf41fd89bf620ae848e3b36fe1e69ab3e2dfca18bc2f2e79cfe8063a" => :el_capitan
sha256 "ffacfb987481394174267fd987dea52607825e3542d1ea3d0b7aa4ccf7ea5cc5" => :yosemite
sha256 "12c41b969af30817a4dc7ec25572fe1b707b9d4dcb46d8cc06d22264594219c1" => :mavericks
2015-01-18 23:41:52 +00:00
end
2012-06-24 17:54:46 +00:00
# Official download is 404:
# url "http://www.nog.net/~tony/warez/cowsay-3.03.tar.gz"
2009-11-12 17:07:59 +00:00
def install
system "/bin/sh", "install.sh", prefix
mv prefix/"man", share
2009-11-12 17:07:59 +00:00
end
test do
2014-05-04 19:12:41 +00:00
output = shell_output("#{bin}/cowsay moo")
assert_match "moo", output # bubble
assert_match "^__^", output # cow
end
2009-11-12 17:07:59 +00:00
end