Skip to content

Commit b366263

Browse files
authored
Merge pull request #256157 from ambros-gleixner/soplex-with-mpfr
soplex 8.0.0
2 parents e7ed1b8 + ea4c815 commit b366263

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

Formula/s/soplex.rb

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class Soplex < Formula
22
desc "Optimization package for solving linear programming problems (LPs)"
33
homepage "https://soplex.zib.de/"
44
url "https://soplex.zib.de/download/release/soplex-8.0.0.tgz"
5-
sha256 "6c3d0a3a2a0f6520a7334d10eaadb34a2f258035e8df40abc18ccf862a0b892a"
5+
sha256 "7b69b4a3dad3c85bbffb30f1a7862e441b9c2984c063e60468d883df0ca0cf28"
66
license "Apache-2.0"
77

88
livecheck do
@@ -11,22 +11,23 @@ class Soplex < Formula
1111
end
1212

1313
bottle do
14-
sha256 cellar: :any, arm64_tahoe: "cb16219c3ec40a99330682bfc6a1b8330965dcf1f38549d615c6c43f3f5a1253"
15-
sha256 cellar: :any, arm64_sequoia: "0af4252d52360c93ec4c81340376a50cc1d6a0f5ca36c03713d237ba519d39f1"
16-
sha256 cellar: :any, arm64_sonoma: "2c08fc2ab9d1e6572bcd42bccb3abb311b67e6b4419f4f5dd4fcdf8cfdd318f8"
17-
sha256 cellar: :any, sonoma: "ca1cc65b9f5ccbc1f7c0337025bf98ee2dc509e564421aa7760c3119fce90ca8"
18-
sha256 cellar: :any_skip_relocation, arm64_linux: "63eba82c6bb4edcd6b50ce73bd744292ad5853964a43d8dd4170dd8efae6a468"
19-
sha256 cellar: :any_skip_relocation, x86_64_linux: "66ee8e874f5050b40a6175b14d6ed3266fb89a4652c1dbf6b2db3debccb6b760"
14+
rebuild 1
15+
sha256 cellar: :any, arm64_tahoe: "68059b60d46e80cf6c28d41c65190e6a0198421dcf3c2e7eeecf5c1890fc6e28"
16+
sha256 cellar: :any, arm64_sequoia: "50ab905ad91e6ceff4c92fc4851705374cf20c928737ff83719681cd9cd1b1d2"
17+
sha256 cellar: :any, arm64_sonoma: "3238afa7cad64a68f290efaee60ccc9c2fd2f3ab60a3b1f258c24e091576c069"
18+
sha256 cellar: :any, sonoma: "78413d50a860c9da05d5b4504c57d7a8e1aeffba6c6109b3d5a1f37783eb8997"
19+
sha256 cellar: :any_skip_relocation, arm64_linux: "32d147f2be34f87c6654cebe431867e661840b5b45675b73ba1e8da41b2d6a9c"
20+
sha256 cellar: :any_skip_relocation, x86_64_linux: "dc647fe802d9c62b04aa8a7a5cc46f67b60b6291a4d511fc016919b3a5193336"
2021
end
2122

2223
depends_on "cmake" => :build
2324
depends_on "boost"
2425
depends_on "gmp"
25-
depends_on "tbb"
26+
depends_on "mpfr"
2627
uses_from_macos "zlib"
2728

2829
def install
29-
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
30+
system "cmake", "-S", ".", "-B", "build", "-DPAPILO=OFF", *std_cmake_args
3031
system "cmake", "--build", "build"
3132
system "cmake", "--install", "build"
3233
pkgshare.install "src/example.cpp"
@@ -47,10 +48,14 @@ def install
4748
x4
4849
End
4950
EOS
50-
assert_match "problem is solved [optimal]", shell_output("#{bin}/soplex test.lp")
51+
assert_match "problem is solved [optimal]",
52+
shell_output("#{bin}/soplex test.lp")
53+
assert_match "problem is solved [optimal]",
54+
shell_output("#{bin}/soplex test.lp -f0 -o0 --readmode=1 --solvemode=2")
5155

5256
system ENV.cxx, pkgshare/"example.cpp", "-std=c++14", "-L#{lib}", "-I#{include}",
53-
"-L#{Formula["gmp"].opt_lib}", "-lsoplex", "-lz", "-lgmp", "-o", "test"
57+
"-L#{Formula["gmp"].opt_lib}", "-L#{Formula["mpfr"].opt_lib}",
58+
"-lsoplex", "-lz", "-lgmp", "-lmpfr", "-o", "test"
5459
system "./test"
5560
end
5661
end

0 commit comments

Comments
 (0)