diff options
author | Matthias Maier <tamiko@gentoo.org> | 2020-04-06 21:42:23 -0500 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2020-04-06 21:55:07 -0500 |
commit | 089a51d54c30f815658abf8b0c628e09aeb5e346 (patch) | |
tree | c27efbe9548ca677bf93a5079633f53bb15b4720 /sci-libs/adolc/adolc-2.7.2.ebuild | |
parent | sci-libs/adolc: live ebuild: update repository, EAPI 7 (diff) | |
download | gentoo-089a51d54c30f815658abf8b0c628e09aeb5e346.tar.gz gentoo-089a51d54c30f815658abf8b0c628e09aeb5e346.tar.bz2 gentoo-089a51d54c30f815658abf8b0c628e09aeb5e346.zip |
sci-libs/adolc: version bump to 2.7.2
Upstream has released a new version after 3 years.
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'sci-libs/adolc/adolc-2.7.2.ebuild')
-rw-r--r-- | sci-libs/adolc/adolc-2.7.2.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sci-libs/adolc/adolc-2.7.2.ebuild b/sci-libs/adolc/adolc-2.7.2.ebuild new file mode 100644 index 000000000000..dc6d88c74f35 --- /dev/null +++ b/sci-libs/adolc/adolc-2.7.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools toolchain-funcs eutils + +DESCRIPTION="Automatic differentiation system for C/C++" +HOMEPAGE="https://projects.coin-or.org/ADOL-C/" + +if [[ ${PV} = *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/coin-or/ADOL-C" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="https://github.com/coin-or/ADOL-C/archive/releases/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" + S="${WORKDIR}/ADOL-C-releases-${PV}" +fi + +LICENSE="|| ( EPL-1.0 GPL-2 )" +SLOT="0/2" +IUSE="+boost mpi sparse static-libs" + +RDEPEND=" + boost? ( dev-libs/boost:0= ) + mpi? ( sys-cluster/ampi:0= ) + sparse? ( sci-libs/colpack:0= )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-2.5.0-no-colpack.patch + "${FILESDIR}"/${PN}-2.5.0-pkgconfig-no-ldflags.patch + "${FILESDIR}"/${PN}-2.6.2-dash.patch +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --enable-advanced-branching \ + --enable-atrig-erf \ + $(use_enable mpi ampi) \ + $(use_enable sparse) \ + $(use_enable static-libs static) \ + $(use_with boost) \ + $(use_with sparse colpack "${EPREFIX}"/usr) +} + +src_test() { + emake test +} + +src_install() { + default + use static-libs || find "${D}" -name '*.la' -type f -delete || die +} |