|
1 | 1 | class Eigen < Formula
|
2 | 2 | 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 | + ] |
8 | 14 | head "https://gitlab.com/libeigen/eigen.git", branch: "master"
|
9 | 15 |
|
10 | 16 | livecheck do
|
11 |
| - url :stable |
| 17 | + url "https://gitlab.com/api/v4/projects/libeigen%2Feigen/releases" |
12 | 18 | 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 |
13 | 22 | end
|
14 | 23 |
|
15 |
| - no_autobump! because: :requires_manual_review |
16 |
| - |
17 | 24 | bottle do
|
18 |
| - rebuild 3 |
19 |
| - sha256 cellar: :any_skip_relocation, all: "06503290dc3c07a67b8f582046b0a7f0bd68c2cb2da1e5bc071710de5ba7f5ec" |
| 25 | + sha256 cellar: :any_skip_relocation, all: "64ee1c43cc38e7ceb2efcfacd905212dcb4ffb1434d3833c006cbffdd3a7608c" |
20 | 26 | end
|
21 | 27 |
|
22 | 28 | depends_on "cmake" => :build
|
23 | 29 |
|
24 | 30 | 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" |
27 | 38 | end
|
28 | 39 |
|
29 | 40 | test do
|
|
0 commit comments