mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 12:33:40 -04:00
77 lines
1.5 KiB
Bash
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
|
|
}
|