# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) DOCS_BUILDER="sphinx" DOCS_DEPEND="dev-python/sphinx-rtd-theme" DOCS_DIR="docs/source" inherit cmake-multilib cuda flag-o-matic python-any-r1 docs toolchain-funcs DESCRIPTION="Nonlinear least-squares minimizer" HOMEPAGE="http://ceres-solver.org/" SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz" LICENSE="sparse? ( BSD ) !sparse? ( LGPL-2.1 )" SLOT="0/4" # Based on soname libceres.so.4 KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux" CUDA_TARGETS_COMPAT=( sm_30 sm_35 sm_50 sm_52 sm_61 sm_70 sm_75 sm_86 sm_87 sm_89 sm_90 ) IUSE="cuda debug doc examples gflags lapack metis openmp +schur sparse test ${CUDA_TARGETS_COMPAT[@]/#/cuda_targets_}" RESTRICT=" mirror !test? ( test ) " REQUIRED_USE="test? ( gflags ) sparse? ( lapack ) abi_x86_32? ( !sparse !lapack )" RESTRICT="!test? ( test )" BDEPEND="${PYTHON_DEPS} >=dev-cpp/eigen-3.3.4:3 lapack? ( virtual/pkgconfig ) doc? (