homebrew-core/Formula/hello.rb

35 lines
2.1 KiB
Ruby

class Hello < Formula
desc "Program providing model for GNU coding standards and practices"
homepage "https://www.gnu.org/software/hello/"
url "https://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz"
sha256 "31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b"
license "GPL-3.0-or-later"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "482983834d20785200d4c07d8102c040d3385c81f9d8e94b93b3bcedb137800a"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "b3b083db0807ff92c6e289a298f378198354b7727fb9ba9f4d550b8e08f90a60"
sha256 cellar: :any_skip_relocation, monterey: "4b0ad8e4347f049e63bc02ee5bc7346dc28a3b28ce78f5487938c1c17f96dfe8"
sha256 cellar: :any_skip_relocation, big_sur: "69489ae397e4645127aa7773211310f81ebb6c99e1f8e3e22c5cdb55333f5408"
sha256 cellar: :any_skip_relocation, catalina: "449de5ea35d0e9431f367f1bb34392e450f6853cdccdc6bd04e6ad6471904ddb"
sha256 cellar: :any_skip_relocation, mojave: "f9d6285eafa4317c5a653bd02832bdabe4df9f6b18702274d551b28cc45d8b23"
sha256 cellar: :any_skip_relocation, high_sierra: "1b66790d42664fe95d44f56d2c82db7ea2ce03e01bda0c8e9932f3b768342c7b"
sha256 cellar: :any_skip_relocation, sierra: "9691f91e7c6897d525b76f5910144e0ed0adcb8bd8f7bb155f29fd431d8ff431"
sha256 cellar: :any_skip_relocation, el_capitan: "54ac46b692fcca2abe77aeeca41976172a2dc24a6762f84a47fabcaba336df89"
sha256 cellar: :any_skip_relocation, yosemite: "f81a305402e8f8b6cf11a17dac81f604b6f48d940909886a6733cf4f6a64c05f"
sha256 x86_64_linux: "e6980196298e0a9cfe4fa4e328a71a1869a4d5e1d31c38442150ed784cfc0e29"
end
conflicts_with "perkeep", because: "both install `hello` binaries"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
assert_equal "brew", shell_output("#{bin}/hello --greeting=brew").chomp
end
end