class Fuego < Formula desc "Collection of C++ libraries for the game of Go" homepage "https://fuego.sourceforge.io/" if MacOS.version >= :sierra url "https://svn.code.sf.net/p/fuego/code/trunk", :revision => 1981 else url "svn://svn.code.sf.net/p/fuego/code/trunk", :revision => 1981 end version "1.1.SVN" revision 2 head "https://svn.code.sf.net/p/fuego/code/trunk" bottle do 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