Skip to content

Commit 192a664

Browse files
authored
Merge pull request #233233 from Homebrew/bump-scotch-7.0.8
scotch 7.0.8
2 parents 732bfe8 + 7f00f82 commit 192a664

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

Formula/s/scotch.rb

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Scotch < Formula
22
desc "Package for graph partitioning, graph clustering, and sparse matrix ordering"
33
homepage "https://gitlab.inria.fr/scotch/scotch"
4-
url "https://gitlab.inria.fr/scotch/scotch/-/archive/v7.0.7/scotch-v7.0.7.tar.bz2"
5-
sha256 "d88a9005dd05a9b3b86e6d1d7925740a789c975e5a92718ca0070e16b6567893"
4+
url "https://gitlab.inria.fr/scotch/scotch/-/archive/v7.0.8/scotch-v7.0.8.tar.bz2"
5+
sha256 "f4f05f56ad2c3219d9c6118eaa21d07af5c266cdc59db194b5fd47efe1ec1448"
66
license "CECILL-C"
77
head "https://gitlab.inria.fr/scotch/scotch.git", branch: "master"
88

@@ -12,14 +12,13 @@ class Scotch < Formula
1212
end
1313

1414
bottle do
15-
rebuild 1
16-
sha256 cellar: :any, arm64_sequoia: "39084ae881ffe4dccdb9d22b73055f179fc30b7e60ae5428036996c7055bb56c"
17-
sha256 cellar: :any, arm64_sonoma: "c55478e91e7451e694d3ab1c809d4c56718cc95c3c4977704d234e9a7214b637"
18-
sha256 cellar: :any, arm64_ventura: "1d0b2f7d0f7aa088a2f9b197995dcfbcd1d76c6f86e39639a894ac12d076d74f"
19-
sha256 cellar: :any, sonoma: "80a9d176f4bfe11816faa6b4297383557f5a9d8c65ea50e0e2842981c51ef522"
20-
sha256 cellar: :any, ventura: "f3393fa769311f954f65d3453bae2a3853eb3b3eb5ab08437b2d323d457e8c86"
21-
sha256 cellar: :any_skip_relocation, arm64_linux: "82d32fd19a12847c9ae008fc199e30f692068503f6a92e0395ce194e6acf16fd"
22-
sha256 cellar: :any_skip_relocation, x86_64_linux: "855bafd1f9712cfe84d3dfb9bc11f17856b95304d65449a450672ef996dae625"
15+
sha256 cellar: :any, arm64_sequoia: "d8c5fe3782cbbd1be8139687292c7667ab7e8e7306effba8d3fa573d0fa31e46"
16+
sha256 cellar: :any, arm64_sonoma: "8a1d849b18952d91af7b83a72a6de05fe9b196ce127623cd5a58b93d77443c7e"
17+
sha256 cellar: :any, arm64_ventura: "f98001ad9ecb92be30b197af939f2b5d4a78ded4847a2849c006b52fc4bfd9b0"
18+
sha256 cellar: :any, sonoma: "baf9ea8176f013b20b5cb5458ca2d563a68f9f8909f8747f016b73f3c1aa4140"
19+
sha256 cellar: :any, ventura: "b875b519ca2e79ce4a5b5f00a144402e55c2b8aeb8da23280e042b7bedf7718b"
20+
sha256 cellar: :any_skip_relocation, arm64_linux: "4ec2f1cac4183664702034026eac0c5a8a21c5a246bc7933627ace790e1c59f2"
21+
sha256 cellar: :any_skip_relocation, x86_64_linux: "7e126c4c82ce24aa18666fe306f42bcf6a3ba2b903ca9069a1980564dcce6a44"
2322
end
2423

2524
depends_on "bison" => :build
@@ -32,17 +31,20 @@ class Scotch < Formula
3231
uses_from_macos "zlib"
3332

3433
def install
35-
system "cmake", "-S", ".", "-B", "build",
36-
"-DBUILD_SHARED_LIBS=ON",
37-
"-DCMAKE_INSTALL_RPATH=#{rpath}",
38-
"-DENABLE_TESTS=OFF",
39-
"-DINSTALL_METIS_HEADERS=OFF",
40-
*std_cmake_args
34+
args = %W[
35+
-DBUILD_SHARED_LIBS=ON
36+
-DCMAKE_INSTALL_RPATH=#{rpath}
37+
-DENABLE_TESTS=OFF
38+
-DINSTALL_METIS_HEADERS=OFF
39+
]
40+
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
4141
system "cmake", "--build", "build"
4242
system "cmake", "--install", "build"
4343

44-
pkgshare.install "src/check/test_strat_seq.c"
45-
pkgshare.install "src/check/test_strat_par.c"
44+
(pkgshare/"check").install "src/check/test_strat_seq.c"
45+
(pkgshare/"check").install "src/check/test_strat_par.c"
46+
(pkgshare/"libscotch").install "src/libscotch/common.h"
47+
(pkgshare/"libscotch").install "src/libscotch/module.h"
4648

4749
# License file has a non-standard filename
4850
prefix.install buildpath.glob("LICEN[CS]E_*.txt")
@@ -61,18 +63,17 @@ def install
6163
return 0;
6264
}
6365
C
64-
system ENV.cc, "test.c", "-L#{lib}", "-lscotch", "-lscotcherr",
65-
"-pthread", "-L#{Formula["zlib"].opt_lib}", "-lz", "-lm"
66+
67+
args = %W[-I#{include} -L#{lib} -lscotch -lscotcherr -pthread -lz -lm]
68+
69+
system ENV.cc, "test.c", *args
6670
assert_match version.to_s, shell_output("./a.out")
6771

68-
system ENV.cc, pkgshare/"test_strat_seq.c", "-o", "test_strat_seq",
69-
"-I#{include}", "-L#{lib}", "-lscotch", "-lscotcherr", "-lm", "-pthread",
70-
"-L#{Formula["zlib"].opt_lib}", "-lz"
72+
system ENV.cc, pkgshare/"check/test_strat_seq.c", "-o", "test_strat_seq", *args
7173
assert_match "Sequential mapping strategy, SCOTCH_STRATDEFAULT", shell_output("./test_strat_seq")
7274

73-
system "mpicc", pkgshare/"test_strat_par.c", "-o", "test_strat_par",
74-
"-I#{include}", "-L#{lib}", "-lptscotch", "-lscotch", "-lptscotcherr", "-lm", "-pthread",
75-
"-L#{Formula["zlib"].opt_lib}", "-lz", "-Wl,-rpath,#{lib}"
75+
system "mpicc", pkgshare/"check/test_strat_par.c", "-o", "test_strat_par",
76+
"-lptscotch", "-Wl,-rpath,#{lib}", *args
7677
assert_match "Parallel mapping strategy, SCOTCH_STRATDEFAULT", shell_output("./test_strat_par")
7778
end
7879
end

0 commit comments

Comments
 (0)