Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Formula/c/ceres-solver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class CeresSolver < Formula
url "http://ceres-solver.org/ceres-solver-2.2.0.tar.gz"
sha256 "48b2302a7986ece172898477c3bcd6deb8fb5cf19b3327bc49969aad4cede82d"
license "BSD-3-Clause"
revision 1
revision 2
head "https://ceres-solver.googlesource.com/ceres-solver.git", branch: "master"

livecheck do
Expand Down
32 changes: 22 additions & 10 deletions Formula/e/eigen.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
class Eigen < Formula
desc "C++ template library for linear algebra"
homepage "https://eigen.tuxfamily.org/"
url "https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz"
sha256 "8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72"
license "MPL-2.0"
revision 1
homepage "https://gitlab.com/libeigen/eigen"
# TODO: remove LGPL from licenses in 5.0.0
url "https://gitlab.com/libeigen/eigen/-/archive/3.4.1/eigen-3.4.1.tar.gz"
sha256 "b93c667d1b69265cdb4d9f30ec21f8facbbe8b307cf34c0b9942834c6d4fdbe2"
license all_of: [
"MPL-2.0",
"Apache-2.0", # BFloat16.h
"BSD-3-Clause", # bindings to BLAS, LAPACKe and MKL
"Minpack", # LevenbergMarquardt
"LGPL-2.1-only", # IterativeSolvers, removed in 5.0.0
]
head "https://gitlab.com/libeigen/eigen.git", branch: "master"

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

no_autobump! because: :requires_manual_review

bottle do
rebuild 3
sha256 cellar: :any_skip_relocation, all: "06503290dc3c07a67b8f582046b0a7f0bd68c2cb2da1e5bc071710de5ba7f5ec"
Expand All @@ -22,8 +29,13 @@ class Eigen < Formula
depends_on "cmake" => :build

def install
system "cmake", "-S", ".", "-B", "eigen-build", "-Dpkg_config_libdir=#{lib}", *std_cmake_args
system "cmake", "--install", "eigen-build"
args = %w[
-DEIGEN_BUILD_BLAS=OFF
-DEIGEN_BUILD_LAPACK=OFF
]

system "cmake", "-S", ".", "-B", "build", *args, *std_cmake_args
system "cmake", "--install", "build"
end

test do
Expand Down
Loading