blob: cd65d0a7ae5f9c7b0469672cefd19b9b7c56e204 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
COMMIT="7375ba5bb0df87c68e58ad15e9e5e351ae020c08"
DESCRIPTION="A framework for bootstrapping extreme scale software systems"
HOMEPAGE="http://www.paradyn.org/mrnet/"
SRC_URI="https://github.com/dyninst/mrnet/archive/${COMMIT}.tar.gz -> ${P/libi/mrnet}.tar.gz"
S="${WORKDIR}/mrnet-${COMMIT}/external/libi"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="slurm"
RDEPEND="
sys-cluster/launchmon
sys-cluster/mrnet
"
DEPEND="
${RDEPEND}
slurm? ( sys-cluster/slurm )
"
PATCHES=(
"${FILESDIR}/${PN}-create-libdir.patch"
"${FILESDIR}/${PN}-link-launchmon.patch"
"${FILESDIR}/${PN}-shared-library.patch"
)
src_configure() {
tc-export AR
local myconf=(
--enable-shared
--with-launchmon="${EPREFIX}/usr"
--with-xplat="${EPREFIX}/usr"
)
use slurm && myconf+=( "--with-libi-startup=slurm" )
econf "${myconf[@]}"
}
src_install() {
dolib.so ../../build/*/lib/liblibi.so
insinto /usr/include
doins -r include/libi
}
|