sci-libs/ceres-solver: add 2.2.0-r2

fixes compat with Eigen 5

Signed-off-by: crueter <crueter@eden-emu.dev>
Part-of: https://github.com/gentoo/gentoo/pull/46598
Closes: https://github.com/gentoo/gentoo/pull/46598
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
crueter
2026-07-20 22:28:27 -04:00
committed by Nowa Ammerlaan
parent c3944a75e7
commit 5402a160ed

View File

@@ -1,9 +1,9 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_COMPAT=( python3_{10..15} )
DOCS_BUILDER="sphinx"
DOCS_DEPEND="dev-python/sphinx-rtd-theme"
DOCS_DIR="docs/source"
@@ -60,6 +60,10 @@ src_prepare() {
# remove Werror
sed -e 's/-Werror=(all|extra)//g' \
-i CMakeLists.txt || die
# fix compat with Eigen 5
sed -i "s|Eigen3 3.3|Eigen3|g" CMakeLists.txt
sed -i "s|Eigen3 \${CERES_EIGEN_VERSION}|Eigen3|g" cmake/CeresConfig.cmake.in
}
src_configure() {