sys-cluster/TCL: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-08-03 01:01:24 +02:00
parent c232c90452
commit 5b22685646
3 changed files with 89 additions and 0 deletions

View File

@@ -0,0 +1,70 @@
# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools
DESCRIPTION="Transparent Checkpointing Library"
HOMEPAGE="https://github.com/bsc-pm/TCL"
SRC_URI="https://github.com/bsc-pm/TCL/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
#S="${WORKDIR}/${PN}-version-${PV}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug fti instrumentation scr veloc"
RDEPEND="
virtual/mpi
fti? ( sys-cluster/fti )
scr? ( sys-cluster/scr )
veloc? ( sys-cluster/veloc )
"
DEPEND="${RDEPEND}"
REQUIRED_USE="|| ( fti scr veloc )"
src_prepare() {
default
eautoreconf
}
src_configure() {
local myconf=(
--disable-static
--enable-shared
--includedir="${EPREFIX}/usr/include/TCL"
--with-mpi="${EPREFIX}/usr"
$(use_enable debug)
$(use_enable instrumentation)
)
if use fti; then
myconf+=( "--with-fti=${EPREFIX}/usr" )
else
myconf+=( "--without-fti" )
fi
if use instrumentation; then
myconf+=( $(use_enable instrumentation-debug debug) )
fi
if use scr; then
myconf+=( "--with-scr=${EPREFIX}/usr" )
else
myconf+=( "--without-scr" )
fi
if use veloc; then
myconf+=( "--with-veloc=${EPREFIX}/usr" )
else
myconf+=( "--without-veloc" )
fi
econf "${myconf[@]}"
}
src_install() {
default
dodoc NEWS AUTHORS INSTALL
find "${ED}" -name '*.la' -delete || die
}