Skip to content

Commit

Permalink
added option to normaliz for building with e-antic
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Jul 19, 2024
1 parent f01d2dc commit 3d29073
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Formula/normaliz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Normaliz < Formula
url "https://github.com/Normaliz/Normaliz/releases/download/v3.10.3/normaliz-3.10.3.tar.gz"
sha256 "0aeb58fbbca362ed759f338a85e74156ed411e2846cc395f52d23ae90022ec91"
license "GPL-3.0-only"
revision 1

bottle do
root_url "https://ghcr.io/v2/macaulay2/tap"
Expand All @@ -23,6 +24,7 @@ class Normaliz < Formula
depends_on "gmp"
depends_on "libomp" if OS.mac?

depends_on "eantic" => :recommended
depends_on "flint" => :recommended
depends_on "nauty" => :recommended

Expand All @@ -40,6 +42,7 @@ def install

# replace the outdated libtool that ships with normaliz
symlink "#{Formula["libtool"].opt_bin}/libtool", "libtool"
with_eantic = build.with? "eantic"
with_flint = build.with? "flint"
with_nauty = build.with? "nauty"

Expand All @@ -49,6 +52,7 @@ def install
"--disable-silent-rules",
"--disable-dependency-tracking",
"--without-cocoalib",
with_eantic ? "--with-e-antic" : "--without-e-antic",
with_flint ? "--with-flint" : "--without-flint",
with_nauty ? "--with-nauty" : "--without-nauty",
]
Expand Down

0 comments on commit 3d29073

Please sign in to comment.