2018-03-13 17:07:17 +00:00
|
|
|
class Bcal < Formula
|
|
|
|
desc "Storage conversion and expression calculator"
|
|
|
|
homepage "https://github.com/jarun/bcal"
|
2018-12-12 17:18:58 +00:00
|
|
|
url "https://github.com/jarun/bcal/archive/v2.1.tar.gz"
|
|
|
|
sha256 "c0b6cb911a773abdd555e6a9e0eb8a25934ceca038156e6250e117fa451beaa6"
|
2018-03-13 17:07:17 +00:00
|
|
|
|
2018-03-13 17:12:27 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2018-12-12 17:49:10 +00:00
|
|
|
sha256 "ceb385dfbcab9d34a2c54655729f934edf6ccc0eb135ba0cd580f9c384e64629" => :mojave
|
|
|
|
sha256 "fc9abe164d34c568d66589d0cbeb1268044e763d6d6d93212badf10d5701aa04" => :high_sierra
|
|
|
|
sha256 "5564379751e03bc62269e9edc689089713ca9a5d8113e0f33ea4ff8c83406427" => :sierra
|
2018-03-13 17:12:27 +00:00
|
|
|
end
|
|
|
|
|
2018-03-13 17:07:17 +00:00
|
|
|
def install
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "9333353817", shell_output("#{bin}/bcal '56 gb / 6 + 4kib * 5 + 4 B'")
|
|
|
|
end
|
|
|
|
end
|