Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/libi/files/, sys-cluster/libi/
Date: Tue, 13 Jul 2021 15:36:36
Message-Id: 1626185100.5517117e3d828dfa338c9519fc9db1e727dba4fa.Alessandro-Barbieri@gentoo
1 commit: 5517117e3d828dfa338c9519fc9db1e727dba4fa
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Tue Jul 13 14:05:00 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Tue Jul 13 14:05:00 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5517117e
7
8 sys-cluster/libi: initial import
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 sys-cluster/libi/Manifest | 1 +
13 sys-cluster/libi/files/libi-create-libdir.patch | 11 ++++++
14 sys-cluster/libi/libi-5.0.1_p20180510.ebuild | 45 +++++++++++++++++++++++++
15 sys-cluster/libi/metadata.xml | 15 +++++++++
16 4 files changed, 72 insertions(+)
17
18 diff --git a/sys-cluster/libi/Manifest b/sys-cluster/libi/Manifest
19 new file mode 100644
20 index 000000000..e0d53f35e
21 --- /dev/null
22 +++ b/sys-cluster/libi/Manifest
23 @@ -0,0 +1 @@
24 +DIST mrnet-5.0.1_p20180510.tar.gz 809277 BLAKE2B c3465db9977f133994d9d8aa619d50e8bbf03f4d17b04ed4f0bdfdbd185fbf9b3c74f63de458cfebc79493228a9243c08c95333ae30ef2a19c01625c77e94408 SHA512 e190cf0b291a0fdebd7ff8449ea1cf0ef5bbda4c1ec4af8341db18fdcd1407ace428dc2a527d004987dc4171a82b4db2cfa34534695e3ec67c519523058915a2
25
26 diff --git a/sys-cluster/libi/files/libi-create-libdir.patch b/sys-cluster/libi/files/libi-create-libdir.patch
27 new file mode 100644
28 index 000000000..c23c8075b
29 --- /dev/null
30 +++ b/sys-cluster/libi/files/libi-create-libdir.patch
31 @@ -0,0 +1,11 @@
32 +--- a/conf/Makefile.in
33 ++++ b/conf/Makefile.in
34 +@@ -92,7 +92,7 @@
35 +
36 + libi-prep:
37 + @echo Creating Pre-Install directories ...
38 +- for dir in $(OBJDIR) $(DEPDIR) ; do \
39 ++ for dir in $(OBJDIR) $(DEPDIR) $(LIBDIR) ; do \
40 + if [ ! -d $$dir ] ; then \
41 + $(MKDIR_P) $$dir ; \
42 + chmod 755 $$dir ; \
43
44 diff --git a/sys-cluster/libi/libi-5.0.1_p20180510.ebuild b/sys-cluster/libi/libi-5.0.1_p20180510.ebuild
45 new file mode 100644
46 index 000000000..9ecf9e76a
47 --- /dev/null
48 +++ b/sys-cluster/libi/libi-5.0.1_p20180510.ebuild
49 @@ -0,0 +1,45 @@
50 +# Copyright 2019-2021 Gentoo Authors
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=8
54 +
55 +COMMIT="7375ba5bb0df87c68e58ad15e9e5e351ae020c08"
56 +
57 +DESCRIPTION="A framework for bootstrapping extreme scale software systems"
58 +HOMEPAGE="http://www.paradyn.org/mrnet"
59 +SRC_URI="https://github.com/dyninst/mrnet/archive/${COMMIT}.tar.gz -> ${P/libi/mrnet}.tar.gz"
60 +S="${WORKDIR}/mrnet-${COMMIT}/external/libi"
61 +
62 +LICENSE="LGPL-2.1"
63 +SLOT="0"
64 +KEYWORDS="~amd64"
65 +IUSE="slurm"
66 +
67 +DEPEND="
68 + sys-cluster/launchmon
69 + sys-cluster/mrnet
70 +"
71 +DEPEND="
72 + ${RDEPEND}
73 + slurm? ( sys-cluster/slurm )
74 +"
75 +
76 +PATCHES=( "${FILESDIR}/${PN}-create-libdir.patch" )
77 +
78 +src_configure() {
79 + local myconf=(
80 + --enable-shared
81 + --with-launchmon="${EPREFIX}/usr"
82 + --with-xplat="${EPREFIX}/usr"
83 + )
84 +
85 + use slurm && myconf+=( "--with-libi-startup=slurm" )
86 +
87 + econf "${myconf[@]}"
88 +}
89 +
90 +src_install() {
91 + dolib.so ../../build/*/lib/liblibi.so
92 + insinto /usr/include
93 + doins -r include/libi
94 +}
95
96 diff --git a/sys-cluster/libi/metadata.xml b/sys-cluster/libi/metadata.xml
97 new file mode 100644
98 index 000000000..3387ce51d
99 --- /dev/null
100 +++ b/sys-cluster/libi/metadata.xml
101 @@ -0,0 +1,15 @@
102 +<?xml version="1.0" encoding="UTF-8"?>
103 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
104 +<pkgmetadata>
105 + <maintainer type="person">
106 + <email>lssndrbarbieri@×××××.com</email>
107 + <name>Alessandro Barbieri</name>
108 + </maintainer>
109 + <use>
110 + <flag name="slurm">Use slurm as tree instantiation method instead of ssh</flag>
111 + </use>
112 + <upstream>
113 + <bugs-to>https://github.com/dyninst/mrnet/issues</bugs-to>
114 + <remote-id type="github">dyninst/mrnet</remote-id>
115 + </upstream>
116 +</pkgmetadata>