Files
guru/sys-cluster/mrnet/mrnet-5.0.1_p20180510-r3.ebuild
Alessandro Barbieri fcdc7e3531 sys-cluster/mrnet: libi support
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2021-07-13 17:35:58 +02:00

77 lines
1.5 KiB
Bash

# Copyright 2019-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
COMMIT="7375ba5bb0df87c68e58ad15e9e5e351ae020c08"
inherit flag-o-matic
DESCRIPTION="A Multicast/Reduction Network"
HOMEPAGE="http://www.paradyn.org/mrnet"
SRC_URI="https://github.com/dyninst/mrnet/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="LGPL-2.1+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="libi slurm threadsafe"
RDEPEND="
dev-libs/boost:=
libi? (
sys-cluster/launchmon
sys-cluster/libi
)
"
DEPEND="
${RDEPEND}
slurm? ( sys-cluster/slurm )
"
PATCHES=( "${FILESDIR}/${PN}-no-libi.patch" )
REQUIRED_USE="slurm? ( libi )"
src_prepare() {
rm -r external || die
default
}
src_configure() {
use libi && append-cxxflags "-llibi"
local myconf=(
--enable-shared
--enable-verbosebuild
--with-boost="${EPREFIX}/usr"
$(use_enable threadsafe ltwt-threadsafe)
)
if use libi; then
myconf+=( "--with-launchmon=${EPREFIX}/usr" )
myconf+=( "--with-libi=${EPREFIX}/usr" )
myconf+=( "--with-startup=libi" )
use slurm && myconf+=( "--with-libi-startup=slurm" )
else
myconf+=( "--without-launchmon" )
myconf+=( "--without-libi" )
myconf+=( "--with-startup=ssh" )
fi
econf "${myconf[@]}"
}
src_compile() {
MAKEOPTS="-j1" emake
}
src_install() {
dolib.so build/*/lib/*.so*
dobin build/*/bin/*
insinto /usr/include
doins -r xplat/include/*
doins -r include/mrnet*
doheader build/*/*.h
dodoc README ACKNOWLEDGMENTS
}