2017-09-15 17:16:39 +00:00
|
|
|
class Clac < Formula
|
|
|
|
desc "Command-line, stack-based calculator with postfix notation"
|
|
|
|
homepage "https://github.com/soveran/clac"
|
2017-10-22 13:48:32 +00:00
|
|
|
url "https://github.com/soveran/clac/archive/0.3.1.tar.gz"
|
|
|
|
sha256 "38cf86f99959d2223f052acfd9e0fecb402a137ebf859a9c64a541b15396e32b"
|
2017-09-15 17:16:39 +00:00
|
|
|
|
2017-09-27 10:46:24 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-10-22 13:57:42 +00:00
|
|
|
sha256 "fc5ecef046a8795d26192fab39253fc07692f16fcd456e9fc8e06e621d760c1d" => :high_sierra
|
|
|
|
sha256 "cd5a4f0ec0632c5b075b4183b4928b31c20899aef74fe0f481c4ffeb123c7068" => :sierra
|
|
|
|
sha256 "9c084fb7bf7246c9f6e02dc44c90ba51b97d58c76ca59c1f217a183d87d71211" => :el_capitan
|
2017-09-27 10:46:24 +00:00
|
|
|
end
|
|
|
|
|
2017-09-15 17:16:39 +00:00
|
|
|
def install
|
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_equal "7", shell_output("#{bin}/clac '3 4 +'").strip
|
|
|
|
end
|
|
|
|
end
|