2017-02-06 10:26:57 +00:00
|
|
|
class Nudoku < Formula
|
|
|
|
desc "ncurses based sudoku game"
|
|
|
|
homepage "https://jubalh.github.io/nudoku/"
|
2017-04-02 07:42:58 +00:00
|
|
|
url "https://github.com/jubalh/nudoku/archive/0.2.5.tar.gz"
|
|
|
|
sha256 "1478c339409abe8f1b857bf3e54c5edbeb43954432fb6e427e52a3ff6251cc25"
|
|
|
|
head "https://github.com/jubalh/nudoku.git"
|
2017-02-06 10:26:57 +00:00
|
|
|
|
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-04-02 07:46:00 +00:00
|
|
|
sha256 "870aa64540cf2bae6d49d983615c562618f141c3c4a807abf98eda7715df43b8" => :sierra
|
|
|
|
sha256 "ea861756fb383524cdbf08ea0b7a432b6d0d85be5254bbd4b986126e49821276" => :el_capitan
|
|
|
|
sha256 "74de3c6c3589cc42e9f74bad4610d7a055245465ad6ff45401052052a8c67917" => :yosemite
|
2017-02-06 10:26:57 +00:00
|
|
|
end
|
|
|
|
|
2017-04-02 07:42:58 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
2017-02-06 10:26:57 +00:00
|
|
|
|
|
|
|
def install
|
2017-04-02 07:42:58 +00:00
|
|
|
system "autoreconf", "-fiv"
|
2017-02-06 10:26:57 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2017-04-02 07:42:58 +00:00
|
|
|
assert_match "nudoku version #{version}", shell_output("#{bin}/nudoku -v")
|
2017-02-06 10:26:57 +00:00
|
|
|
end
|
|
|
|
end
|