homebrew-core/Formula/fuego.rb
2019-10-12 10:24:21 +02:00

39 lines
1.4 KiB
Ruby

class Fuego < Formula
desc "Collection of C++ libraries for the game of Go"
homepage "https://fuego.sourceforge.io/"
url "https://svn.code.sf.net/p/fuego/code/trunk", :revision => 1981
version "1.1.SVN"
revision 2
head "https://svn.code.sf.net/p/fuego/code/trunk"
bottle do
sha256 "3fcaf6036c24d8771fb2bb55a5e697bbb811aa03c37bae887982b96be70a422f" => :catalina
sha256 "2e8c65ddbcbb76158ab22805982c75940ed1a6eddc033cc157a03bee1364d502" => :mojave
sha256 "7efef5865934cb21cce5a12c7adf39d3c74a86990067220d456e53db69f8861f" => :high_sierra
sha256 "828c076fbcd288d4cc2348323497983f78aceb8bd1b607403b13e35fa209a86f" => :sierra
sha256 "e0c9f36a60667bea6757170232cf45caeca7bff3cf75adb4994b3007d0fe6eb9" => :el_capitan
end
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "boost"
def install
system "autoreconf", "-fvi"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}",
"--with-boost=#{Formula["boost"].opt_prefix}"
system "make", "install"
end
test do
input = <<~EOS
genmove white
genmove black
EOS
output = pipe_output("#{bin}/fuego 2>&1", input, 0)
assert_match "Forced opening move", output
assert_match "maxgames", shell_output("#{bin}/fuego --help")
end
end