2011-03-10 05:11:03 +00:00
|
|
|
class Cowsay < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Configurable talking characters in ASCII art"
|
2015-01-18 23:16:57 +00:00
|
|
|
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"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "0b8672a7ac2b51183780db72618b42af8ec1ce02f6c05fe612510b650540b2af"
|
2012-06-24 17:54:46 +00:00
|
|
|
|
2015-01-18 23:41:52 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "50dcf6ac955d2644d2543728bda2ee02abafcb67" => :yosemite
|
|
|
|
sha1 "79131dfcab303271d332bf69373f11433401f1b3" => :mavericks
|
|
|
|
sha1 "65f118084f895e553faf2eac15335fc23e331b77" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2012-06-24 17:54:46 +00:00
|
|
|
# Official download is 404:
|
2015-01-18 23:16:57 +00:00
|
|
|
# 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
|
2015-01-18 23:16:57 +00:00
|
|
|
mv prefix/"man", share
|
2009-11-12 17:07:59 +00:00
|
|
|
end
|
2014-02-10 23:31:30 +00:00
|
|
|
|
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
output = shell_output("#{bin}/cowsay moo")
|
2014-02-10 23:31:30 +00:00
|
|
|
assert output.include?("moo") # bubble
|
|
|
|
assert output.include?("^__^") # cow
|
|
|
|
end
|
2009-11-12 17:07:59 +00:00
|
|
|
end
|