34 lines
1.1 KiB
Ruby
34 lines
1.1 KiB
Ruby
class Nudoku < Formula
|
|
desc "Ncurses based sudoku game"
|
|
homepage "https://jubalh.github.io/nudoku/"
|
|
url "https://github.com/jubalh/nudoku/archive/2.1.0.tar.gz"
|
|
sha256 "eeff7f3adea5bfe7b88bf7683d68e9a597aabd1442d1621f21760c746400b924"
|
|
license "GPL-3.0-or-later"
|
|
head "https://github.com/jubalh/nudoku.git"
|
|
|
|
bottle do
|
|
sha256 "ec43523a92bb16fadd4ab7fe3f9189cb13849fc3919bf4525b9074a471453745" => :big_sur
|
|
sha256 "e6aa92aabc32164b2cc69d55d4a243f6aafdd6d6a109a40339d6546548153174" => :catalina
|
|
sha256 "3afc049f852d205bff4b674e751fb1db83d73ab82ba15e5f38a1ba9c33ffd2e5" => :mojave
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gettext"
|
|
|
|
uses_from_macos "ncurses"
|
|
|
|
def install
|
|
system "autoreconf", "-fiv"
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
assert_match "nudoku version #{version}", shell_output("#{bin}/nudoku -v")
|
|
end
|
|
end
|