homebrew-core/Formula/cowsay.rb

23 lines
608 B
Ruby
Raw Normal View History

2009-11-12 17:07:59 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Cowsay < Formula
2009-11-12 17:07:59 +00:00
homepage 'http://www.nog.net/~tony/warez/cowsay.shtml'
2012-06-24 17:54:46 +00:00
url 'http://ftp.acc.umu.se/mirror/cdimage/snapshot/Debian/pool/main/c/cowsay/cowsay_3.03.orig.tar.gz'
sha1 'cc65a9b13295c87df94a58caa8a9176ce5ec4a27'
# 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
2012-06-24 17:54:46 +00:00
mv prefix/'man', share
2009-11-12 17:07:59 +00:00
end
test do
output = `#{bin}/cowsay moo`
assert output.include?("moo") # bubble
assert output.include?("^__^") # cow
assert_equal 0, $?.exitstatus
end
2009-11-12 17:07:59 +00:00
end