Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / g / greed.rb
blob6a53fcbe8aa9274c3f66a5e17ad8c0ac92b8d6bb
1 class Greed < Formula
2   desc "Game of consumption"
3   homepage "http://www.catb.org/~esr/greed/"
4   url "http://www.catb.org/~esr/greed/greed-4.3.tar.gz"
5   sha256 "60433afaef3eb8e20e4aa33d4b5538f6ea661b1880c98cd9d7c6df86c91d4baa"
6   license "BSD-2-Clause"
7   head "https://gitlab.com/esr/greed.git", branch: "master"
9   bottle do
10     sha256 cellar: :any_skip_relocation, arm64_sequoia:  "7dd0a88d2965272e5c99454d0d94cb651ddb8379167b8ab7c796d4e94d146926"
11     sha256 cellar: :any_skip_relocation, arm64_sonoma:   "7a3e7b7239960308e29bf2dfe2e74e0c8d8f668eba481d83b64235180f96efbb"
12     sha256 cellar: :any_skip_relocation, arm64_ventura:  "fa7e8531d206c50da08b2e675a362e6a456476d177af8d31135e65f900e1f673"
13     sha256 cellar: :any_skip_relocation, arm64_monterey: "7d5d9248e0afb74bf84489914b4db0076f3d2ebcaf673410ddfebbd3b29cae2b"
14     sha256 cellar: :any_skip_relocation, sonoma:         "4bc754b53d564166bb70c838b7cf122c8d85d01482d6a6c6ce3d7dbddf37fdba"
15     sha256 cellar: :any_skip_relocation, ventura:        "248414686a9fe19755be3b53a948dc70e4b81dd9bd9bde5939003d76999b6de7"
16     sha256 cellar: :any_skip_relocation, monterey:       "20c9887c2d21ce3992fd41f9fac4ff26ff3152e06112ae408026d6c8987f5cbf"
17     sha256 cellar: :any_skip_relocation, x86_64_linux:   "f7f7db5fc7dbc281817a928f614c13af17805c1e8b7804cef14b7cb23f5ac6cf"
18   end
20   deprecate! date: "2024-06-07", because: :checksum_mismatch
22   uses_from_macos "ncurses"
24   def install
25     # Handle hard-coded destination
26     inreplace "Makefile", "/usr/share/man/man6", man6
27     # Make doesn't make directories
28     bin.mkpath
29     man6.mkpath
30     (var/"greed").mkpath
31     # High scores will be stored in var/greed
32     system "make", "SFILE=#{var}/greed/greed.hs"
33     system "make", "install", "BIN=#{bin}"
34   end
36   def caveats
37     <<~EOS
38       High scores will be stored in the following location:
39         #{var}/greed/greed.hs
40     EOS
41   end
43   test do
44     assert_predicate bin/"greed", :executable?
45   end
46 end