mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 09:07:26 -08:00
sci-libs/ceres-solver: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
parent
d7c5d17696
commit
83be03d476
@ -1,2 +1 @@
|
||||
DIST ceres-solver-2.1.0.tar.gz 3802187 BLAKE2B d8ff780cf9b9de2541c15a2b95bde07a2d1c8e60bab3a8a4b13134b99da699da452467afe3310b9f70c3c2a6bd033ea3c4bd3c401153899e9c70867fae30c633 SHA512 db777c4a4b85a9972628c714413fe9ca1a92cc6c8b14d80401842a02c4d7e7df4e9d236775e231e8337e47f21e47cd82c1a0fbcfeffbd9b654e46a66262996f2
|
||||
DIST ceres-solver-2.2.0.tar.gz 7635532 BLAKE2B ecdd5147e235df711705fc262fad18cfc79f8cfaaa9aba41428c70ae5996aab44c44e5b7d3f62d8ab4633ec2d7511c39191323911fea1276f5797e900c42bc60 SHA512 bf519fbcbd0ee2d4624be72cde061a09d191ee5e56dc33984669393799b885c2164efc99dcef71307f8b50a9ccad945882376ace3d9a44ba7e1f25c20511aabd
|
||||
|
||||
@ -1,102 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
DOCS_BUILDER="sphinx"
|
||||
DOCS_DEPEND="dev-python/sphinx-rtd-theme"
|
||||
DOCS_DIR="docs/source"
|
||||
inherit cmake-multilib python-any-r1 docs toolchain-funcs
|
||||
|
||||
DESCRIPTION="Nonlinear least-squares minimizer"
|
||||
HOMEPAGE="http://ceres-solver.org/"
|
||||
SRC_URI="http://ceres-solver.org/${P}.tar.gz"
|
||||
|
||||
LICENSE="sparse? ( BSD ) !sparse? ( LGPL-2.1 ) cxsparse? ( BSD )"
|
||||
SLOT="0/1"
|
||||
KEYWORDS="amd64 ~x86"
|
||||
IUSE="cxsparse examples gflags lapack openmp +schur sparse 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? ( <dev-libs/mathjax-3 )
|
||||
"
|
||||
RDEPEND="
|
||||
dev-cpp/glog[gflags?,${MULTILIB_USEDEP}]
|
||||
cxsparse? ( sci-libs/cxsparse )
|
||||
lapack? ( virtual/lapack )
|
||||
sparse? (
|
||||
sci-libs/amd
|
||||
sci-libs/camd
|
||||
sci-libs/ccolamd
|
||||
sci-libs/cholmod[metis(+)]
|
||||
sci-libs/colamd
|
||||
sci-libs/spqr
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
DOCS=( README.md VERSION )
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-2.0.0-system-mathjax.patch"
|
||||
)
|
||||
|
||||
pkg_pretend() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||
use doc && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
cmake_src_prepare
|
||||
|
||||
# search paths work for prefix
|
||||
sed -e "s:/usr:${EPREFIX}/usr:g" \
|
||||
-i cmake/*.cmake || die
|
||||
|
||||
# remove Werror
|
||||
sed -e 's/-Werror=(all|extra)//g' \
|
||||
-i CMakeLists.txt || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# CUSTOM_BLAS=OFF EIGENSPARSE=OFF MINIGLOG=OFF CXX11=OFF
|
||||
local mycmakeargs=(
|
||||
-DBUILD_BENCHMARKS=OFF
|
||||
-DBUILD_EXAMPLES=$(usex examples)
|
||||
-DBUILD_TESTING=$(usex test)
|
||||
-DBUILD_DOCUMENTATION=$(usex doc)
|
||||
-DGFLAGS=$(usex gflags)
|
||||
-DLAPACK=$(usex lapack)
|
||||
-DSCHUR_SPECIALIZATIONS=$(usex schur)
|
||||
-DCXSPARSE=$(usex cxsparse)
|
||||
-DSUITESPARSE=$(usex sparse)
|
||||
-DEigen3_DIR=/usr/$(get_libdir)/cmake/eigen3
|
||||
-DCERES_THREADING_MODEL=$(usex openmp OPENMP CXX_THREADS)
|
||||
)
|
||||
|
||||
use doc && mycmakeargs+=(
|
||||
-DCERES_DOCS_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF}
|
||||
)
|
||||
use sparse || use cxsparse || mycmakeargs+=( -DEIGENSPARSE=ON )
|
||||
|
||||
cmake-multilib_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cmake-multilib_src_install
|
||||
|
||||
if use examples; then
|
||||
docompress -x /usr/share/doc/${PF}/examples
|
||||
dodoc -r examples data
|
||||
fi
|
||||
}
|
||||
@ -22,8 +22,6 @@
|
||||
adjustment problems
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="cxsparse">Enable simple support for sparse matrix algebra from
|
||||
<pkg>sci-libs/cxsparse</pkg> with no LAPACK dependencies</flag>
|
||||
<flag name="schur">Enable fixed-size schur specializations (disable if
|
||||
binary size is an issue)</flag>
|
||||
<flag name="sparse">Enable support for sparse matrix algebra with various
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user