@@ -8,6 +8,7 @@ class Mpsolve < Formula
88
99 bottle do
1010 root_url "https://github.com/Macaulay2/homebrew-tap/releases/download/mpsolve-3.2.1_4"
11+ sha256 cellar : :any , arm64_sonoma : "3bb1bdb995c9d79a2ce6e9a0c562d42ad08bb0bdd2d7ced8141f63e659e846f5"
1112 sha256 cellar : :any , arm64_monterey : "cef92986f98ef651d1ca81619944547d9b49b3e649fe6edbb919032378d68cb9"
1213 sha256 cellar : :any , big_sur : "44e44aaf82cbb84a46f902b276926e3aee8035b8296ca89b0cc3473517eea2c1"
1314 sha256 cellar : :any , catalina : "4f5807e0ec5c5b340125f2b45df9ac3bd334ada899a7377cb8a2d2eef7774cb5"
@@ -16,12 +17,6 @@ class Mpsolve < Formula
1617 sha256 cellar : :any_skip_relocation , x86_64_linux : "7a3840be8c6d6b10b0bb00cff20a2206e0be42b501ccadfd26d60083f9a66447"
1718 end
1819
19- unless OS . mac?
20- fails_with gcc : "4"
21- fails_with gcc : "5"
22- depends_on "gcc@9" => :build
23- end
24-
2520 depends_on "autoconf" => :build
2621 depends_on "automake" => :build
2722 depends_on "libtool" => :build
@@ -41,6 +36,9 @@ class Mpsolve < Formula
4136 sha256 "b2c5e037bed14568d3692cf7270428614f2766bcaf0b2fb06a7f178497671efa"
4237 end
4338
39+ # see https://github.com/robol/MPSolve/issues/38
40+ patch :DATA
41+
4442 def install
4543 ENV . cxx11
4644 system "autoreconf" , "-vif"
@@ -61,3 +59,21 @@ def install
6159 system "true"
6260 end
6361end
62+
63+ __END__
64+
65+ diff --git a/include/mps/private/system/memory-file-stream.h b/include/mps/private/system/memory-file-stream.h
66+ index 0029bc9..a11b998 100644
67+ --- a/include/mps/private/system/memory-file-stream.h
68+ +++ b/include/mps/private/system/memory-file-stream.h
69+ @@ -47,6 +47,8 @@ MPS_END_DECLS
70+
71+ #ifdef __cplusplus
72+
73+ +#undef isnan
74+ +#undef isinf
75+ #include <iostream>
76+ #include <sstream>
77+
78+ --
79+ 2.40.1
0 commit comments