homebrew-core/Formula/rolldice.rb
Matthew Robinson a1035dbfd0 rolldice 1.15
Closes Homebrew/homebrew#45126.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-19 10:04:29 +01:00

18 lines
520 B
Ruby

class Rolldice < Formula
desc "Rolls an amount of virtual dice"
homepage "https://github.com/sstrickl/rolldice"
url "https://github.com/sstrickl/rolldice/archive/1.15.tar.gz"
sha256 "3abeec2b5b80ff57b05a3b2c1d49dade443005f1718f353873f54c0053610764"
def install
system "make", "CC=#{ENV.cc}"
bin.install "rolldice"
man6.install gzip("rolldice.6")
end
test do
output = `#{bin}/rolldice -s 1x2d6`
assert_equal true, output.include?("Roll #1")
assert_equal 0, $?.exitstatus
end
end