30 lines
1.5 KiB
Ruby
30 lines
1.5 KiB
Ruby
class Eva < Formula
|
|
desc "Calculator REPL, similar to bc(1)"
|
|
homepage "https://github.com/NerdyPepper/eva/"
|
|
url "https://github.com/NerdyPepper/eva/archive/v0.2.7.tar.gz"
|
|
sha256 "72b2e47e987102d67c9dcbb60e26c4ff0b20e6f844d0d2b9d91c3f073374aee0"
|
|
license "MIT"
|
|
head "https://github.com/NerdyPepper/eva.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "dd68adf80b50a921c0312d3064056ca7b80e99423e93990c009b1d587abcd75f"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "fb89730bdb4a21db79cee25cf670c594015066205d7f30107f0b9141512be349"
|
|
sha256 cellar: :any_skip_relocation, monterey: "2acc6b1c137a581a886903a55ca0260cdfc111854e5d8a5dde0791bb0bd6f0a7"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "56ca7b33a9a468d35c1124392cd5ea666c739bc8a51b3c160dce58a8435e8896"
|
|
sha256 cellar: :any_skip_relocation, catalina: "351a6e7946aa8597d3c321b47aec89d487f49261146dc1f04cdaadb380f5021a"
|
|
sha256 cellar: :any_skip_relocation, mojave: "efed876746895ddcf247f4c90d7b90f1333129d8cc8f789789555045047e1260"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "706a6ad7ac61b8e8e1247fe1b52ead8c6c5b7b76fe750148a6a38904f3a4ef23"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "8eb8baf33bef3ece2fca2e919803a583f18940c327dc24bf75c7e865b12408f7"
|
|
end
|
|
|
|
depends_on "rust" => :build
|
|
|
|
def install
|
|
system "cargo", "install", *std_cargo_args
|
|
end
|
|
|
|
test do
|
|
assert_equal "6.0", shell_output("#{bin}/eva '2 + abs(-4)'").strip
|
|
end
|
|
end
|