From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1153800-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EE0CF138350 for <garchives@archives.gentoo.org>; Thu, 19 Mar 2020 13:23:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21AFBE0CCB; Thu, 19 Mar 2020 13:23:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB078E09DA for <gentoo-commits@lists.gentoo.org>; Thu, 19 Mar 2020 13:23:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 98BF934E528 for <gentoo-commits@lists.gentoo.org>; Thu, 19 Mar 2020 13:23:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1954B186 for <gentoo-commits@lists.gentoo.org>; Thu, 19 Mar 2020 13:23:44 +0000 (UTC) From: "Andreas Sturmlechner" <asturm@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" <asturm@gentoo.org> Message-ID: <1584624207.bc28470c9cc435c88c35041a0ff52ea83595edae.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/ceres-solver/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/ceres-solver/Manifest sci-libs/ceres-solver/ceres-solver-1.14.0.ebuild X-VCS-Directories: sci-libs/ceres-solver/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: bc28470c9cc435c88c35041a0ff52ea83595edae X-VCS-Branch: master Date: Thu, 19 Mar 2020 13:23:44 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ab683ebd-4378-4870-83d2-1b0a51bb8627 X-Archives-Hash: 2f3d69a86ba5593c7b3ba0f64f0475d0 commit: bc28470c9cc435c88c35041a0ff52ea83595edae Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Thu Mar 19 13:01:24 2020 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Thu Mar 19 13:23:27 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc28470c sci-libs/ceres-solver: 1.14.0 version bump, EAPI-7 bump, cmake.eclass fix doc install path python3_7 + python3_8 Closes: https://bugs.gentoo.org/700294 Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> sci-libs/ceres-solver/Manifest | 1 + sci-libs/ceres-solver/ceres-solver-1.14.0.ebuild | 100 +++++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/sci-libs/ceres-solver/Manifest b/sci-libs/ceres-solver/Manifest index 9eea55fad9f..0b1e2173e3d 100644 --- a/sci-libs/ceres-solver/Manifest +++ b/sci-libs/ceres-solver/Manifest @@ -1 +1,2 @@ DIST ceres-solver-1.12.0.tar.gz 5008861 BLAKE2B 52b3954dde96386bd031543ab9d7370368f58f76f1dec9d24ef10803da787cc96f40a1c775626fde832b70ebd94cf4274c70a8fb4bd7e1bcf040e119cbec09f8 SHA512 485eece0471cf05d31b5dd7e133e23115a334a4ed557a3c1bd0b715a063f840738af8f507e935522a0dae90ce6851984c0002a25e9b445b90889792f68a05571 +DIST ceres-solver-1.14.0.tar.gz 5450130 BLAKE2B cfcfe07cecb267528081dfc6deb5283bc5a04b79d4595e45365960895b84a6dca2a3024b046868f06709fc81e8514730cbc409ab01cb0cbee488b5bad5b9f7cc SHA512 a2af9918d2730709361ec971431a2b22e6ca3ca440081be87fa52729ec43702020b021837bfe5a42a58db1ab89ea6aada11f2d1888da66bef614ec1f27ab30c6 diff --git a/sci-libs/ceres-solver/ceres-solver-1.14.0.ebuild b/sci-libs/ceres-solver/ceres-solver-1.14.0.ebuild new file mode 100644 index 00000000000..6b175ba5ec7 --- /dev/null +++ b/sci-libs/ceres-solver/ceres-solver-1.14.0.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake +PYTHON_COMPAT=( python3_{6,7,8} ) +inherit cmake-multilib python-any-r1 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 ~amd64-linux ~x86-linux" +IUSE="cxsparse c++11 doc 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 + doc? ( + dev-python/sphinx + dev-python/sphinx_rtd_theme + ) + lapack? ( virtual/pkgconfig ) +" +RDEPEND=" + dev-cpp/glog[gflags?,${MULTILIB_USEDEP}] + cxsparse? ( sci-libs/cxsparse:0= ) + lapack? ( virtual/lapack ) + sparse? ( + sci-libs/amd:0= + sci-libs/camd:0= + sci-libs/ccolamd:0= + sci-libs/cholmod:0=[metis] + sci-libs/colamd:0= + sci-libs/spqr:0= + ) +" +DEPEND="${RDEPEND}" + +DOCS=( README.md VERSION ) + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]] && use openmp; then + if [[ $(tc-getCXX) == *g++* ]] && ! tc-has-openmp; then + ewarn "OpenMP is not available in your current selected gcc" + die "need openmp capable gcc" + fi + fi +} + +pkg_setup() { + 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=OFF + -DBUILD_TESTING=$(usex test) + -DCXX11=$(usex c++11) + -DBUILD_DOCUMENTATION=$(usex doc) + -DCERES_DOCS_INSTALL_DIR="${EPREFIX}"/usr/share/doc/${PF} + -DGFLAGS=$(usex gflags) + -DLAPACK=$(usex lapack) + -DOPENMP=$(usex openmp) + -DSCHUR_SPECIALIZATIONS=$(usex schur) + -DCXSPARSE=$(usex cxsparse) + -DSUITESPARSE=$(usex sparse) + ) + 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 +}