gambit 15.1.1 (new formula)

Closes #31026.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Michael Wehner 2018-08-11 12:48:52 -07:00 committed by Dominyk Tiller
parent 9d58dd0a44
commit fa40e15646
No known key found for this signature in database
GPG key ID: FE19AEFCF658C6F6

34
Formula/gambit.rb Normal file
View file

@ -0,0 +1,34 @@
class Gambit < Formula
desc "Software tools for game theory"
homepage "http://www.gambit-project.org"
url "https://github.com/gambitproject/gambit/archive/v15.1.1.tar.gz"
sha256 "fb4dce2f386e46bbfc72cb75471f43716535937c96ad5a730cad22f97c6a65e6"
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