homebrew-core/Formula/kona.rb

35 lines
1.6 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 :stable
strategy :github_latest
regex(%r{href=.*?/tag/(?:Win(?:64)?[._-])?v?(\d+(?:\.\d+)*)[^"' >]*["' >]}i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "944e33948686c29eb0da929fdc9582c22bf1754412d9dc529200c03aaa0306da"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "69c7319589e0875a896e82df7a92fcb6be310dd0ce9cd431efb5e975234098e6"
sha256 cellar: :any_skip_relocation, monterey: "72f3b37d7af56059e60fcb6bc218c1016664cce6bc466740753da6a32e16b08c"
sha256 cellar: :any_skip_relocation, big_sur: "ec3ffc9d3cbedb40a58f9932aa77d11126aa9d0415e4cabf19f367e250f30296"
sha256 cellar: :any_skip_relocation, catalina: "4d0adcc97354ca21c78d666906a718fa2dca47ca5cade99387750e8bf74f12c8"
sha256 cellar: :any_skip_relocation, mojave: "47267596e8da2d49e5f9527896a81cc5987cb993991d7e10e941bd5839fbc2e7"
sha256 cellar: :any_skip_relocation, high_sierra: "e40a7ad668c3363a1ae1ab4fbc29729d2eff833b8975e1f40239c9d071adc64d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e1d6b7bfd8399741bd995d1dd4d010fe4d30071d05545c62126f07e15ae9f983"
end
def install
system "make"
bin.install "k"
end
test do
assert_match "Hello, world!", pipe_output("#{bin}/k", '`0: "Hello, world!"')
end
end