Skip to content

Commit

Permalink
added arm64 bottle for mpsolve
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Mar 1, 2024
1 parent af33b8c commit 1d94fca
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions Formula/mpsolve.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class Mpsolve < Formula

bottle do
root_url "https://github.com/Macaulay2/homebrew-tap/releases/download/mpsolve-3.2.1_4"
sha256 cellar: :any, arm64_sonoma: "3bb1bdb995c9d79a2ce6e9a0c562d42ad08bb0bdd2d7ced8141f63e659e846f5"
sha256 cellar: :any, arm64_monterey: "cef92986f98ef651d1ca81619944547d9b49b3e649fe6edbb919032378d68cb9"
sha256 cellar: :any, big_sur: "44e44aaf82cbb84a46f902b276926e3aee8035b8296ca89b0cc3473517eea2c1"
sha256 cellar: :any, catalina: "4f5807e0ec5c5b340125f2b45df9ac3bd334ada899a7377cb8a2d2eef7774cb5"
Expand All @@ -16,12 +17,6 @@ class Mpsolve < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "7a3840be8c6d6b10b0bb00cff20a2206e0be42b501ccadfd26d60083f9a66447"
end

unless OS.mac?
fails_with gcc: "4"
fails_with gcc: "5"
depends_on "gcc@9" => :build
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
Expand All @@ -41,6 +36,9 @@ class Mpsolve < Formula
sha256 "b2c5e037bed14568d3692cf7270428614f2766bcaf0b2fb06a7f178497671efa"
end

# see https://github.com/robol/MPSolve/issues/38
patch :DATA

def install
ENV.cxx11
system "autoreconf", "-vif"
Expand All @@ -61,3 +59,21 @@ def install
system "true"
end
end

__END__

diff --git a/include/mps/private/system/memory-file-stream.h b/include/mps/private/system/memory-file-stream.h
index 0029bc9..a11b998 100644
--- a/include/mps/private/system/memory-file-stream.h
+++ b/include/mps/private/system/memory-file-stream.h
@@ -47,6 +47,8 @@ MPS_END_DECLS

#ifdef __cplusplus

+#undef isnan
+#undef isinf
#include <iostream>
#include <sstream>

--
2.40.1

0 comments on commit 1d94fca

Please sign in to comment.