Files
guru/sys-cluster/TCL/TCL-1.0.ebuild
Alessandro Barbieri 90b2362d0e */*: remove useless variable IUSE_EXPAND
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2021-09-10 11:23:54 +02:00

79 lines
1.4 KiB
Bash

# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
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"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE_TCL="
tcl-debug
tcl-instrumentation
tcl-instrumentation-debug
+tcl-performance
"
IUSE="${IUSE_TCL} fti scr veloc"
RDEPEND="
virtual/mpi
fti? ( sys-cluster/fti )
scr? ( sys-cluster/scr )
veloc? ( sys-cluster/veloc )
"
DEPEND="${RDEPEND}"
REQUIRED_USE="
|| ( fti scr veloc )
|| ( ${IUSE_TCL//+/} )
"
src_prepare() {
default
eautoreconf
}
src_configure() {
local myconf=(
--disable-static
--enable-shared
--includedir="${EPREFIX}/usr/include/TCL"
--with-mpi="${EPREFIX}/usr"
$(use_enable tcl-debug debug)
$(use_enable tcl-instrumentation instrumentation)
$(use_enable tcl-instrumentation-debug instrumentation-debug)
$(use_enable tcl-performance performance)
)
if use fti; then
myconf+=( "--with-fti=${EPREFIX}/usr" )
else
myconf+=( "--without-fti" )
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
}