Skip to content

Commit f6c44fa

Browse files
authored
Merge pull request #246481 from Homebrew/eigen-3.4.1
eigen 3.4.1
2 parents 6df4afe + 0552ed3 commit f6c44fa

File tree

2 files changed

+30
-23
lines changed

2 files changed

+30
-23
lines changed

Formula/c/ceres-solver.rb

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class CeresSolver < Formula
44
url "http://ceres-solver.org/ceres-solver-2.2.0.tar.gz"
55
sha256 "48b2302a7986ece172898477c3bcd6deb8fb5cf19b3327bc49969aad4cede82d"
66
license "BSD-3-Clause"
7-
revision 1
7+
revision 2
88
head "https://ceres-solver.googlesource.com/ceres-solver.git", branch: "master"
99

1010
livecheck do
@@ -15,16 +15,12 @@ class CeresSolver < Formula
1515
no_autobump! because: :requires_manual_review
1616

1717
bottle do
18-
sha256 cellar: :any, arm64_tahoe: "92f275053ffb7eb14a72172c0d98a3dc0c684bed6493a3091fd8458ad5440c05"
19-
sha256 cellar: :any, arm64_sequoia: "988b6c630059fd2c89f693ae791b329123e8edf5e1135f57b3a23434ef4fd6e2"
20-
sha256 cellar: :any, arm64_sonoma: "82321500433aa189b94707782c92b280d9f370c2da70d81f337c33e7d3ce0924"
21-
sha256 cellar: :any, arm64_ventura: "7b298b5e784c97df200a87e5ecb612c6a8a3feaff2b7906a47254822c697ddfa"
22-
sha256 cellar: :any, arm64_monterey: "3de5b3e4c7e884954abc07b9456ec86e08cc98dc172194b2ab7781d354ccc412"
23-
sha256 cellar: :any, sonoma: "f949ae21f99855aa96d25e8cb2a30cf7d001b8af8193a9b0ab4032969c5ab6a9"
24-
sha256 cellar: :any, ventura: "0fb671f15c3b25e771ebeacb0bd8cfe5f3b47535c766091e24adc6f50e7e4e23"
25-
sha256 cellar: :any, monterey: "c3dce08c0c5c4c239c60fad44ebe52333428f4925fd3f69faa30d1ad34d11f65"
26-
sha256 cellar: :any_skip_relocation, arm64_linux: "a81bb14618a9bb0c8e3bace126d01e4d0e1c643aa10bc3bd6ce00f93a03ae3b4"
27-
sha256 cellar: :any_skip_relocation, x86_64_linux: "68107edf1952d270ebdad753857acf97e253956b48cd115047d89b6364c3f903"
18+
sha256 cellar: :any, arm64_tahoe: "313ed5690a361970bdea14a72c09a8303dc2172b84fc1d8204dbb79b913d00e7"
19+
sha256 cellar: :any, arm64_sequoia: "4e5508fed469c7de173c44f6875a93e27758aa61a1f3ee0daa1bea279b5703b5"
20+
sha256 cellar: :any, arm64_sonoma: "4dc3d66678294486b58e513950109a4d593286eeb02d21b076de35d1aae0d126"
21+
sha256 cellar: :any, sonoma: "c17ec0c69c71db298cc62c1447e9c108cbbd8711e676051d7768049ec6614caa"
22+
sha256 cellar: :any_skip_relocation, arm64_linux: "ceceda8cfbf36c576474fef71487f756ee03183c20453e1fe25ba304972ee994"
23+
sha256 cellar: :any_skip_relocation, x86_64_linux: "3bf8a2f59441ee79ae0d2fab7a7cfabf6f3aec910c1c2695a215fe673bf7a0c5"
2824
end
2925

3026
depends_on "cmake" => [:build, :test]

Formula/e/eigen.rb

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,40 @@
11
class Eigen < Formula
22
desc "C++ template library for linear algebra"
3-
homepage "https://eigen.tuxfamily.org/"
4-
url "https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz"
5-
sha256 "8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72"
6-
license "MPL-2.0"
7-
revision 1
3+
homepage "https://gitlab.com/libeigen/eigen"
4+
# TODO: remove LGPL from licenses in 5.0.0
5+
url "https://gitlab.com/libeigen/eigen/-/archive/3.4.1/eigen-3.4.1.tar.gz"
6+
sha256 "b93c667d1b69265cdb4d9f30ec21f8facbbe8b307cf34c0b9942834c6d4fdbe2"
7+
license all_of: [
8+
"MPL-2.0",
9+
"Apache-2.0", # BFloat16.h
10+
"BSD-3-Clause", # bindings to BLAS, LAPACKe and MKL
11+
"Minpack", # LevenbergMarquardt
12+
"LGPL-2.1-only", # IterativeSolvers, removed in 5.0.0
13+
]
814
head "https://gitlab.com/libeigen/eigen.git", branch: "master"
915

1016
livecheck do
11-
url :stable
17+
url "https://gitlab.com/api/v4/projects/libeigen%2Feigen/releases"
1218
regex(/^v?(\d+(?:\.\d+)+)$/i)
19+
strategy :json do |json, regex|
20+
json.filter_map { |item| item["tag_name"]&.[](regex, 1) unless item["upcoming_release"] }
21+
end
1322
end
1423

15-
no_autobump! because: :requires_manual_review
16-
1724
bottle do
18-
rebuild 3
19-
sha256 cellar: :any_skip_relocation, all: "06503290dc3c07a67b8f582046b0a7f0bd68c2cb2da1e5bc071710de5ba7f5ec"
25+
sha256 cellar: :any_skip_relocation, all: "64ee1c43cc38e7ceb2efcfacd905212dcb4ffb1434d3833c006cbffdd3a7608c"
2026
end
2127

2228
depends_on "cmake" => :build
2329

2430
def install
25-
system "cmake", "-S", ".", "-B", "eigen-build", "-Dpkg_config_libdir=#{lib}", *std_cmake_args
26-
system "cmake", "--install", "eigen-build"
31+
args = %w[
32+
-DEIGEN_BUILD_BLAS=OFF
33+
-DEIGEN_BUILD_LAPACK=OFF
34+
]
35+
36+
system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
37+
system "cmake", "--install", "build"
2738
end
2839

2940
test do

0 commit comments

Comments
 (0)