Permalink
Cannot retrieve contributors at this time
30 lines (26 sloc)
1.46 KB
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.12.1.tar.gz" | |
sha256 "8d99142afd92576f30b0cd7cb42a8dc6809998bc5d607d88761f512e26c7db20" | |
license "GPL-3.0-or-later" | |
bottle do | |
sha256 cellar: :any_skip_relocation, arm64_monterey: "a0103553329c8a010ed68a1143bf9126b0f1977fec308953e9068a9722790d9d" | |
sha256 cellar: :any_skip_relocation, arm64_big_sur: "e8c7459b0310a5c99d441e1a5814f9eb1723b11e84b58efad01c0db4aeaf8d36" | |
sha256 cellar: :any_skip_relocation, monterey: "62534bceb8f7074827fa2146dd13603018aaf07c82e22cfef96571c8133ce8a1" | |
sha256 cellar: :any_skip_relocation, big_sur: "480a77f0f4e0ea6aa4175b3853feba7bdeda9f0b3dd808ad02eeb358b8a48f4a" | |
sha256 cellar: :any_skip_relocation, catalina: "c30c2be3191bd643f36e96b45b1282b5a750219bc8cab2e31d3c23d4cad5d70c" | |
sha256 x86_64_linux: "7935d0efdae69742f5140d514ef2e3e50d1d7cb82104cf6033ad51b900c12749" | |
end | |
conflicts_with "perkeep", because: "both install `hello` binaries" | |
def install | |
ENV.append "LDFLAGS", "-liconv" if OS.mac? | |
system "./configure", "--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 |