From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- sci-libs/adolc/adolc-9999.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 sci-libs/adolc/adolc-9999.ebuild (limited to 'sci-libs/adolc/adolc-9999.ebuild') diff --git a/sci-libs/adolc/adolc-9999.ebuild b/sci-libs/adolc/adolc-9999.ebuild new file mode 100644 index 000000000000..c029efc2ea29 --- /dev/null +++ b/sci-libs/adolc/adolc-9999.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools toolchain-funcs eutils git-r3 + +MYPN=ADOL-C + +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://gitlab.com/adol-c/adol-c.git" + SRC_URI="" + KEYWORDS="" +else + SRC_URI="http://www.coin-or.org/download/source/${MYPN}/${MYPN}-${PV}.tgz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" + S="${WORKDIR}/${MYPN}-${PV}" +fi + +LICENSE="|| ( EPL-1.0 GPL-2 )" +SLOT="0/2" +IUSE="mpi sparse static-libs" + +RDEPEND=" + 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 \ + $(use_enable static-libs static) \ + $(use_enable mpi ampi) \ + $(use_enable sparse) \ + $(use_with sparse colpack "${EPREFIX}"/usr) +} + +src_test() { + emake test +} + +src_install() { + default + use static-libs || prune_libtool_files --all +} -- cgit v1.2.3