Skip to content

Commit

Permalink
Merge pull request #4 from mahrud/gfan
Browse files Browse the repository at this point in the history
gfan 0.6.2 (new formula)
  • Loading branch information
mahrud authored Jan 5, 2021
2 parents d13d0ae + 3a9cde7 commit a43058e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Formula/gfan.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
class Gfan < Formula
desc "Grobner fans and tropical varieties"
homepage "https://users-math.au.dk/~jensen/software/gfan/gfan.html"
url "https://users-math.au.dk/~jensen/software/gfan/gfan0.6.2.tar.gz"
sha256 "a674d5e5dc43634397de0d55dd5da3c32bd358d05f72b73a50e62c1a1686f10a"
license "GPL-2.0-or-later"
revision 1

depends_on "[email protected]"
depends_on "[email protected]"
depends_on "gmp"

patch do
url "https://raw.githubusercontent.com/Macaulay2/M2/d51564127d757a3132684e9730f4085cb89297bb/M2/libraries/gfan/patch-0.6.2"
sha256 "9ebbf25e6de16baec877050bef69c85504e7bfa81e79407c2ab00ea4433e838c"
end

def install
system "make", "-j4", "cddnoprefix=yes",
"GMP_LINKOPTIONS=-L#{Formula["gmp"].lib} -lgmp",
"GMP_INCLUDEOPTIONS=-I#{Formula["gmp"].include}",
"OPTFLAGS=-DGMPRATIONAL -I#{Formula["[email protected]"].include}/cddlib",
"CLINKER=#{ENV.cc} -L#{Formula["[email protected]"].lib}",
"CCLINKER=#{ENV.cxx} -L#{Formula["[email protected]"].lib}"
system "make", "PREFIX=#{prefix}", "install"
end

test do
system "#{bin}/gfan", "_version"
end
end

0 comments on commit a43058e

Please sign in to comment.