43 lines
1.7 KiB
Ruby
43 lines
1.7 KiB
Ruby
class Gambit < Formula
|
|
desc "Software tools for game theory"
|
|
homepage "http://www.gambit-project.org"
|
|
url "https://github.com/gambitproject/gambit/archive/v16.0.1.tar.gz"
|
|
sha256 "56bb86fd17575827919194e275320a5dd498708fd8bb3b20845243d492c10fef"
|
|
license "Apache-2.0"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "c1bf628cb87dbed50a0bd5299b3921545a001999af7a061343caf6aa75784cf5" => :catalina
|
|
sha256 "849760c07650bf6d240e3d488ed984ef3f1520976cc402ec1afe215ac881aa08" => :mojave
|
|
sha256 "f5d187618279c18de8e290151ba7683a5b68e4b96203db1a05600eb84002d391" => :high_sierra
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "wxmac"
|
|
|
|
def install
|
|
system "autoreconf", "-fvi"
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
pkgshare.install "contrib"
|
|
end
|
|
|
|
test do
|
|
system bin/"gambit-enumpure", pkgshare/"contrib/games/e02.efg"
|
|
system bin/"gambit-enumpoly", pkgshare/"contrib/games/e01.efg"
|
|
system bin/"gambit-enummixed", pkgshare/"contrib/games/e02.nfg"
|
|
system bin/"gambit-gnm", pkgshare/"contrib/games/e02.nfg"
|
|
system bin/"gambit-ipa", pkgshare/"contrib/games/e02.nfg"
|
|
system bin/"gambit-lcp", pkgshare/"contrib/games/e02.efg"
|
|
system bin/"gambit-lp", pkgshare/"contrib/games/2x2const.nfg"
|
|
system bin/"gambit-liap", pkgshare/"contrib/games/e02.nfg"
|
|
system bin/"gambit-simpdiv", pkgshare/"contrib/games/e02.nfg"
|
|
system bin/"gambit-logit", pkgshare/"contrib/games/e02.efg"
|
|
system bin/"gambit-convert", "-O", "html", pkgshare/"contrib/games/2x2.nfg"
|
|
end
|
|
end
|