2017-02-06 10:26:57 +00:00
|
|
|
class Nsuds < Formula
|
|
|
|
desc "Ncurses Sudoku system"
|
|
|
|
homepage "http://nsuds.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/nsuds/nsuds/nsuds-0.7B/nsuds-0.7B.tar.gz"
|
|
|
|
sha256 "6d9b3e53f3cf45e9aa29f742f6a3f7bc83a1290099a62d9b8ba421879076926e"
|
|
|
|
|
2017-02-08 08:28:15 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "89ae2f310d8b21d98ababce7110f20d3d41da06b7a751447c56aa6dbd13a1950" => :sierra
|
|
|
|
sha256 "596fc55d7e2cc63e8fdc4f3648a23d2c3c9c9eee9775a6579410c28708c0a358" => :el_capitan
|
|
|
|
sha256 "9bc60ceced759f079112d97d9fc0a408fbe6d7d18d21d3cdcf5a3a2cbf2185cc" => :yosemite
|
|
|
|
end
|
|
|
|
|
2017-02-06 10:26:57 +00:00
|
|
|
head do
|
|
|
|
url "git://git.code.sf.net/p/nsuds/code"
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "autoreconf", "-i" if build.head?
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
inreplace "src/Makefile", /chgrp .*/, ""
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match /nsuds version #{version}$/, shell_output("#{bin}/nsuds -v")
|
|
|
|
end
|
|
|
|
end
|