summaryrefslogtreecommitdiff
path: root/sci-libs/ceres-solver
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-10 18:45:26 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-10 18:45:26 +0000
commitf50d60b8eb707b56133e594376e993b98e726b5d (patch)
treebe9f0c658e4e0ace79af92f89becddd06c01c772 /sci-libs/ceres-solver
parent84e395ce722d1f39cf3ef1467b23eda9c2462017 (diff)
gentoo auto-resync : 10:03:2024 - 18:45:26
Diffstat (limited to 'sci-libs/ceres-solver')
-rw-r--r--sci-libs/ceres-solver/Manifest2
-rw-r--r--sci-libs/ceres-solver/ceres-solver-2.2.0.ebuild89
2 files changed, 91 insertions, 0 deletions
diff --git a/sci-libs/ceres-solver/Manifest b/sci-libs/ceres-solver/Manifest
index 1b9277657400..1d88e9e21552 100644
--- a/sci-libs/ceres-solver/Manifest
+++ b/sci-libs/ceres-solver/Manifest
@@ -1,4 +1,6 @@
AUX ceres-solver-2.0.0-system-mathjax.patch 325 BLAKE2B a649088517ec1bef7d5a6144de57657daeff2b5a1a0b053c0bfa81d8af7143ad5d829571be947d8853bd6d1fe39adc63b4f14a4075004775151fa649747911c6 SHA512 e16646210fddb350f5cc43665afaa88d2ffe53c817dab778c0e2534c1a0001242865a547e8a308621a9068555e7e20a57e83b0447ff5d32688ed5fb3f5694d29
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
EBUILD ceres-solver-2.1.0-r1.ebuild 2426 BLAKE2B 05047be09beed316cc5d288923a31553f9ee3c4afb01b83265b67be04d84dd9104b3c444f867a1a9b632ef6fb013e4556897f7bc0da7dbdc9ccefe647a994689 SHA512 c46f722f17201355c791fea3e3229c2fd8fa74432205635abd68d20544039f879196ebec6ffda10b40a9138a4c9e507724de2e7bd48d2a7e07cf12629bb88869
+EBUILD ceres-solver-2.2.0.ebuild 1975 BLAKE2B 91449c74c31e3116073c8f5081fd71d8ef05652e01a29586451ee58ada90f2767524f3b2e9d90cbbdb84c14ecba3235f670da7cc543af98c20cd8fafbda34d18 SHA512 64e2136f0199f60d2195a246c68c42fa88c9aab693bc6471b622f6d16e46f998d58ee138f2a58a44544d219f6737e5c1e1c9710a31fd9f9b8e7809c1cf2f05a3
MISC metadata.xml 1454 BLAKE2B af5a9cef52650cff056c7804782e7024696ed9122e8998faad23796960d94155f5f318cec2750a4ead6610f89fe55e49301a30ec62bfc846ea2a955a430f42cf SHA512 cf928d9400bbac7ba003ad44fc6c1d77cef43a58d2cc9b399ee854880ad75b38062e3a61899403eda529e7eaba528606a8da25b5e287c53bc4721d025b6a7e59
diff --git a/sci-libs/ceres-solver/ceres-solver-2.2.0.ebuild b/sci-libs/ceres-solver/ceres-solver-2.2.0.ebuild
new file mode 100644
index 000000000000..6abc595b8231
--- /dev/null
+++ b/sci-libs/ceres-solver/ceres-solver-2.2.0.ebuild
@@ -0,0 +1,89 @@
+# 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 flag-o-matic python-any-r1 docs
+
+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 )"
+SLOT="0/1"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="examples gflags lapack +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}]
+ 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"
+)
+
+src_prepare() {
+ cmake_src_prepare
+
+ filter-lto
+
+ # 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)
+ -DSUITESPARSE=$(usex sparse)
+ -DEigen3_DIR=/usr/$(get_libdir)/cmake/eigen3
+ )
+
+ use sparse || 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
+}