homebrew-core/Formula/kona.rb

31 lines
1.1 KiB
Ruby

class Kona < Formula
desc "Open-source implementation of the K programming language"
homepage "https://github.com/kevinlawler/kona"
url "https://github.com/kevinlawler/kona/archive/Win64-20201009.tar.gz"
sha256 "ec00734f36e966dd8b16e3752bee963a85b9ad415a4f1b200ae7ca28a3ad4d37"
license "ISC"
head "https://github.com/kevinlawler/kona.git"
livecheck do
url "https://github.com/kevinlawler/kona/releases/latest"
regex(%r{href=.*?/tag/(?:Win(?:64)?[._-])?v?(\d+(?:\.\d+)*)[^"' >]*["' >]}i)
end
bottle do
cellar :any_skip_relocation
sha256 "ec3ffc9d3cbedb40a58f9932aa77d11126aa9d0415e4cabf19f367e250f30296" => :big_sur
sha256 "4d0adcc97354ca21c78d666906a718fa2dca47ca5cade99387750e8bf74f12c8" => :catalina
sha256 "47267596e8da2d49e5f9527896a81cc5987cb993991d7e10e941bd5839fbc2e7" => :mojave
sha256 "e40a7ad668c3363a1ae1ab4fbc29729d2eff833b8975e1f40239c9d071adc64d" => :high_sierra
end
def install
system "make"
bin.install "k"
end
test do
assert_match "Hello, world!", pipe_output("#{bin}/k", '`0: "Hello, world!"')
end
end