Skip to content

Commit

Permalink
normaliz: revision bump
Browse files Browse the repository at this point in the history
Closes #222.

Signed-off-by: Mahrud Sayrafi <mahrud@umn.edu>
  • Loading branch information
mahrud committed May 9, 2024
1 parent 66867aa commit 04a3d2b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Formula/normaliz.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Normaliz < Formula
url "https://github.com/Normaliz/Normaliz/releases/download/v3.10.2/normaliz-3.10.2.tar.gz"
sha256 "0f649a8eae5535c18df15e8d35fc055fd0d7dbcbdd451e8876f4a47061481f07"
license "GPL-3.0-only"
revision 1
revision 2

bottle do
root_url "https://github.com/Macaulay2/homebrew-tap/releases/download/normaliz-3.10.2_1"
Expand Down Expand Up @@ -40,17 +40,19 @@ def install

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

args = [
"--prefix=#{prefix}",
"--disable-shared",
"--disable-silent-rules",
"--disable-dependency-tracking",
"--without-cocoalib",
with_flint ? "--with-flint" : "--without-flint",
with_nauty ? "--with-nauty" : "--without-nauty",
]

args << "--with-flint" if build.with? "flint"
args << "--with-nauty" if build.with? "nauty"

system "autoreconf", "-vif"
system "./configure", *args
system "make", "install"
Expand Down

0 comments on commit 04a3d2b

Please sign in to comment.