diff --git a/Formula/mpsolve.rb b/Formula/mpsolve.rb index 4c8aa99..91d4c2f 100644 --- a/Formula/mpsolve.rb +++ b/Formula/mpsolve.rb @@ -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" @@ -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 @@ -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" @@ -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 + #include + +-- +2.40.1