From 39897f1a304088d98599fd6675b0580ccb698ac6 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Fri, 26 Feb 2021 14:13:36 -0500 Subject: sci-libs/coinor-cppad: bump to 20210000.5, ported to EAPI 7 + cmake Most old issues should be resolved or need re-test as this is completely different now. wrt bug #741428, tests currently pass using clang++ and default USE. Closes: https://bugs.gentoo.org/603226 Closes: https://bugs.gentoo.org/725470 Closes: https://bugs.gentoo.org/741428 Package-Manager: Portage-3.0.15, Repoman-3.0.2 Signed-off-by: Ionen Wolkens Signed-off-by: Sam James --- sci-libs/coinor-cppad/Manifest | 1 + .../coinor-cppad/coinor-cppad-20210000.5.ebuild | 73 ++++++++++++++++++++++ .../files/coinor-cppad-20210000.5-pkgconfig.patch | 26 ++++++++ sci-libs/coinor-cppad/metadata.xml | 5 ++ 4 files changed, 105 insertions(+) create mode 100644 sci-libs/coinor-cppad/coinor-cppad-20210000.5.ebuild create mode 100644 sci-libs/coinor-cppad/files/coinor-cppad-20210000.5-pkgconfig.patch (limited to 'sci-libs/coinor-cppad') diff --git a/sci-libs/coinor-cppad/Manifest b/sci-libs/coinor-cppad/Manifest index 674756df5262..16ecbbb85d38 100644 --- a/sci-libs/coinor-cppad/Manifest +++ b/sci-libs/coinor-cppad/Manifest @@ -1 +1,2 @@ +DIST coinor-cppad-20210000.5.tar.gz 1663397 BLAKE2B 3ce4f5733641fac16ac00b6e49cb74e2237502eac32f592190491ddd5dcb8a41f340c1eed8529dbdecb343f7a791d4fc5ddc1e21ce9f9706f28608ac3a5e965a SHA512 40cbe8dc32af9bb3b92cdd4c81e6f75424ece701df9251d4c63652998ca4cb8d50057e190a16e51333d168299f33ff2353074fa7f24f2cec29f68db53f6ae17c DIST cppad-20140519.gpl.tgz 2208236 BLAKE2B 5d53891ef3b458c3914f5d59f6656290be2811fbc84ca3f9bd253ce4620b1a4b00397e1beed694cdc5284a1f74441b68520b861c90d158c4eee11d1f8927b362 SHA512 8f47e545bc76f66edccb9ea083ddebcb5852fa1807d727b6e1f445ca74731e74f7614a1d33b48c6eafbc5129b319e513594b415ee838bdc634f9c00a6d9a22af diff --git a/sci-libs/coinor-cppad/coinor-cppad-20210000.5.ebuild b/sci-libs/coinor-cppad/coinor-cppad-20210000.5.ebuild new file mode 100644 index 000000000000..b0f442dd2f2c --- /dev/null +++ b/sci-libs/coinor-cppad/coinor-cppad-20210000.5.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR="emake" # needed for tests +inherit cmake + +DESCRIPTION="COIN-OR C++ Algorithmic Differentiation" +HOMEPAGE="https://projects.coin-or.org/CppAD/" +SRC_URI="https://github.com/coin-or/CppAD/archive/${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/CppAD-${PV}" + +LICENSE="EPL-2.0" +SLOT="0/${PV}" # soname is bumped every versions +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="adolc doc eigen ipopt" + +# adolc currently can't build tests and ipopt fails them. +RESTRICT="adolc? ( test ) ipopt? ( test )" + +# No need for RDEPEND. +DEPEND=" + dev-libs/boost[threads] + adolc? ( sci-libs/adolc ) + eigen? ( dev-cpp/eigen ) + ipopt? ( sci-libs/ipopt )" +BDEPEND=" + virtual/pkgconfig + doc? ( + app-doc/doxygen[dot] + virtual/latex-base + )" + +PATCHES=( "${FILESDIR}"/${P}-pkgconfig.patch ) + +src_prepare() { + cmake_src_prepare + # Gentoo uses coin/ rather than coin-or/ for includes. + sed -i 's/ + + Add support for ADOL-C (sci-libs/adolc) + Add support for Eigen (dev-cpp/eigen) + Add support for IPOPT (sci-libs/ipopt) + coin-or/CppAD -- cgit v1.2.3-65-gdbad