homebrew-core/Formula/known_hosts.rb

39 lines
2.2 KiB
Ruby

class KnownHosts < Formula
desc "Command-line manager for known hosts"
homepage "https://github.com/markmcconachie/known_hosts"
url "https://github.com/markmcconachie/known_hosts/archive/1.0.0.tar.gz"
sha256 "80a080aa3850af927fd332e5616eaf82e6226d904c96c6949d6034deb397ac63"
head "https://github.com/markmcconachie/known_hosts.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "f3a25e4320813f741ccbd44b32856f31f3cd687239f9f409a336465e2f2bcb27"
sha256 cellar: :any_skip_relocation, arm64_monterey: "f6f7c9c4638ffa5cff8f90e57ff9a8bbb3b2114e87d709e930e88120884859ad"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "bf3e0af3ffe33fc928ada23b36fd1549b8435234480371f678cb125ecdf3cb74"
sha256 cellar: :any_skip_relocation, ventura: "785882a8af04336a4d06487a4b12b1ef1381b141388fa04c22e5def3ca99d0fb"
sha256 cellar: :any_skip_relocation, monterey: "aa8e1755201bfe310f46071a14105071fc49b39b415b128e138d7d765b3050ef"
sha256 cellar: :any_skip_relocation, big_sur: "9d89c5861e842476e98fe66ec06b418b328fa0c9d9827aba4d4063fc6c69eeb1"
sha256 cellar: :any_skip_relocation, catalina: "dcf7fb7a2fc7436eb50d0ded0dd0059f082cb6652ea107c6f37696d1fe08bd70"
sha256 cellar: :any_skip_relocation, mojave: "62e7b000f7c4ba73c10a879a8ad9c1b14e356799204de92249f1e3bdcd577359"
sha256 cellar: :any_skip_relocation, high_sierra: "8e823e73e385c7d11c19e02a0fad28751447a96332222fed825505b98e5c4003"
sha256 cellar: :any_skip_relocation, sierra: "729e8dc06654b9dae55b1f4ff15a40ee28de3642285f82deb2f67f08a031f9b2"
sha256 cellar: :any_skip_relocation, el_capitan: "b1f7982e9fb744226dcdf2be12467613ca97fa9a05f92673a4c785f6f445333c"
sha256 cellar: :any_skip_relocation, x86_64_linux: "aa99a0432ff512031370fbb6b6bde95bd55c6180d07b099a5a3ee721576b6763"
end
# upstream issue tracker for license
# https://github.com/markmcconachie/known_hosts/issues/7
deprecate! date: "2022-12-03", because: "no license for the project"
depends_on "cmake" => :build
def install
system "cmake", ".", *std_cmake_args
system "make"
system "make", "install"
end
test do
system "#{bin}/known_hosts", "version"
end
end