Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Formula/macaulay2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Macaulay2 < Formula
url "https://github.com/Macaulay2/M2/archive/refs/tags/release-1.25.11.tar.gz"
sha256 "9700005196e4368af52156efaff081a4771fd21545a3cd8c2ee3b0571aeaa17f"
license any_of: ["GPL-2.0-only", "GPL-3.0-only"]
revision 2
revision 3

head "https://github.com/Macaulay2/M2/archive/refs/heads/development.tar.gz"

Expand Down Expand Up @@ -35,25 +35,25 @@ class Macaulay2 < Formula
depends_on "givaro"
depends_on "gmp"
depends_on "libffi"
depends_on "libomp" if OS.mac?
depends_on "libxml2" unless OS.mac?
depends_on "mpfi"
depends_on "mpfr"
depends_on "mpsolve"
depends_on "nauty"
depends_on "normaliz"
depends_on "ntl"
depends_on "openblas" unless OS.mac?
depends_on "python@3.14" # brew linkage --test expects specific version
depends_on "readline"
depends_on "tbb"

depends_on "cohomcalg" => :recommended
depends_on "csdp" => :recommended
depends_on "fourtitwo" => :recommended
depends_on "gfan" => :recommended
depends_on "libomp" => :recommended if OS.mac?
depends_on "lrs" => :recommended
depends_on "msolve" => :recommended
depends_on "nauty" => :recommended
depends_on "python" => :recommended
depends_on "topcom" => :recommended

patch :DATA
Expand Down
19 changes: 8 additions & 11 deletions Formula/normaliz.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
class Normaliz < Formula
desc "Affine monoids, vector configurations, lattice polytopes, and rational cones"
homepage "https://www.normaliz.uni-osnabrueck.de/"
url "https://github.com/Normaliz/Normaliz/releases/download/v3.11.0/normaliz-3.11.0.tar.gz"
sha256 "14441981afce3546c1c0f12b490714da3564af7a60d12ac0a494f9d2382d1a01"
url "https://github.com/Normaliz/Normaliz/releases/download/v3.11.1/normaliz-3.11.1.tar.gz"
sha256 "9a00d590f0fdcad847e2189696d2842d97ed896ed36c22421874a364047f76e8"
license "GPL-3.0-only"
revision 2

bottle do
root_url "https://ghcr.io/v2/macaulay2/tap"
Expand All @@ -21,12 +20,13 @@ class Normaliz < Formula
depends_on "pkgconf" => :build

depends_on "boost"
depends_on "flint"
depends_on "gmp"
depends_on "libomp" if OS.mac?
depends_on "mpfr"
depends_on "nauty"

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

def install
ENV.cxx11
Expand All @@ -42,24 +42,21 @@ 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",
"--with-flint",
"--with-nauty",
]

system "autoreconf", "-vif"
system "./configure", *args
system "make", "install"
# Disabled pending https://github.com/Normaliz/Normaliz/issues/436
# system "make", "check" if build.bottle?
system "make", "check" if build.bottle?
end

test do
Expand Down
Loading