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_big_sur: "b3b083db0807ff92c6e289a298f378198354b7727fb9ba9f4d550b8e08f90a60"
    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 cellar: :any_skip_relocation, x86_64_linux:  "f81d7c0a3eee9fd62ebdecf685fbc5284e40d4a61c372d554fd45719e52a43cc"
  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
