1 |
commit: dd41c01c477e9ce51a436e43e517469971da9ce8 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Oct 29 15:28:33 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Oct 30 19:37:44 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dd41c01c |
7 |
|
8 |
sys-cluster/redset: add 0.1.0 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
sys-cluster/redset/Manifest | 1 + |
13 |
.../redset/files/redset-0.1.0-no-static.patch | 31 ++++++++++++++ |
14 |
sys-cluster/redset/metadata.xml | 3 ++ |
15 |
sys-cluster/redset/redset-0.1.0.ebuild | 50 ++++++++++++++++++++++ |
16 |
4 files changed, 85 insertions(+) |
17 |
|
18 |
diff --git a/sys-cluster/redset/Manifest b/sys-cluster/redset/Manifest |
19 |
index 2332a1de0..b3f5720a7 100644 |
20 |
--- a/sys-cluster/redset/Manifest |
21 |
+++ b/sys-cluster/redset/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST redset-0.0.5.tar.gz 465120 BLAKE2B 2050015cdc2b5e8b7e209d99ef5a85dd6ea301c9dec774206e9eab23e5a49b355c89acd05a0997295240b2d3831601e0247295b992af8834bf5667295c407791 SHA512 80c44dd7eb72d8da234f9247743be67bbdf6943bf1f20fe6e66b015d1be47f8b519702bd027b15f43473dae69096a6677a4db58b8bd16fbeffe0d692f7b987a9 |
24 |
+DIST redset-0.1.0.tar.gz 466858 BLAKE2B bf60cdc95dc7cb748c9ce131265a2c24d575137b9642ff7ba63f520fbe67c58cd5bbe026f2036d54f239ffadebb5ac4a4a266b7ec8bd9a66eca541b378c8089e SHA512 dc78b668d03a309c44f7c070a08c3fbf9f00fa82bf517c199fac4a67116e6c5b2ab73776299b0b1942a90f9decc6fb238fcf1d0f06a81f6130ae2fdf8eb82541 |
25 |
|
26 |
diff --git a/sys-cluster/redset/files/redset-0.1.0-no-static.patch b/sys-cluster/redset/files/redset-0.1.0-no-static.patch |
27 |
new file mode 100644 |
28 |
index 000000000..31e3ab385 |
29 |
--- /dev/null |
30 |
+++ b/sys-cluster/redset/files/redset-0.1.0-no-static.patch |
31 |
@@ -0,0 +1,31 @@ |
32 |
+--- a/src/CMakeLists.txt |
33 |
++++ b/src/CMakeLists.txt |
34 |
+@@ -46,16 +46,6 @@ |
35 |
+ INSTALL(TARGETS redset DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
36 |
+ ENDIF() |
37 |
+ |
38 |
+-ADD_LIBRARY(redset-static STATIC $<TARGET_OBJECTS:redset_o>) |
39 |
+-IF(REDSET_LINK_STATIC) |
40 |
+- SET_TARGET_PROPERTIES(redset-static PROPERTIES LINK_SEARCH_START_STATIC 1) |
41 |
+- SET_TARGET_PROPERTIES(redset-static PROPERTIES LINK_SEARCH_END_STATIC 1) |
42 |
+-ENDIF(REDSET_LINK_STATIC) |
43 |
+-TARGET_LINK_LIBRARIES(redset-static ${REDSET_EXTERNAL_LIBS}) |
44 |
+- |
45 |
+-SET_TARGET_PROPERTIES(redset-static PROPERTIES OUTPUT_NAME redset CLEAN_DIRECT_OUTPUT 1) |
46 |
+-INSTALL(TARGETS redset-static DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
47 |
+- |
48 |
+ # Non-MPI library for CLI |
49 |
+ if (BUILD_SHARED_LIBS) |
50 |
+ ADD_LIBRARY(redset_base SHARED ${redset_noMPI_srcs}) |
51 |
+@@ -63,11 +53,6 @@ |
52 |
+ INSTALL(TARGETS redset_base DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
53 |
+ endif() |
54 |
+ |
55 |
+-ADD_LIBRARY(redset_base-static STATIC ${redset_noMPI_srcs}) |
56 |
+-TARGET_LINK_LIBRARIES(redset_base-static ${REDSET_SERIAL_LIBS}) |
57 |
+-SET_TARGET_PROPERTIES(redset_base-static PROPERTIES OUTPUT_NAME redset_base CLEAN_DIRECT_OUTPUT 1) |
58 |
+-INSTALL(TARGETS redset_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
59 |
+- |
60 |
+ ############## |
61 |
+ # CLI REDSET # |
62 |
+ ############## |
63 |
|
64 |
diff --git a/sys-cluster/redset/metadata.xml b/sys-cluster/redset/metadata.xml |
65 |
index 5c2fc9dab..aa16954c8 100644 |
66 |
--- a/sys-cluster/redset/metadata.xml |
67 |
+++ b/sys-cluster/redset/metadata.xml |
68 |
@@ -8,6 +8,9 @@ |
69 |
<upstream> |
70 |
<remote-id type="github">ECP-VeloC/redset</remote-id> |
71 |
</upstream> |
72 |
+ <use> |
73 |
+ <flag name="slurm">Use <pkg>sys-cluster/slurm</pkg> as resource manager</flag> |
74 |
+ </use> |
75 |
<longdescription lang="en">This module lets one create one or more redundancy descriptors, which then may be applied to a set of files distributed across a group of processes. |
76 |
</longdescription> |
77 |
</pkgmetadata> |
78 |
|
79 |
diff --git a/sys-cluster/redset/redset-0.1.0.ebuild b/sys-cluster/redset/redset-0.1.0.ebuild |
80 |
new file mode 100644 |
81 |
index 000000000..a1948f0a0 |
82 |
--- /dev/null |
83 |
+++ b/sys-cluster/redset/redset-0.1.0.ebuild |
84 |
@@ -0,0 +1,50 @@ |
85 |
+# Copyright 1999-2021 Gentoo Authors |
86 |
+# Distributed under the terms of the GNU General Public License v2 |
87 |
+ |
88 |
+EAPI=8 |
89 |
+ |
90 |
+inherit cmake |
91 |
+ |
92 |
+DESCRIPTION="Low-level distributed erasure coding lib to protect datasets of MPI applications" |
93 |
+HOMEPAGE="https://github.com/ECP-VeloC/redset" |
94 |
+SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
95 |
+ |
96 |
+LICENSE="MIT" |
97 |
+SLOT="0" |
98 |
+KEYWORDS="~amd64" |
99 |
+IUSE="slurm test" |
100 |
+ |
101 |
+RDEPEND=" |
102 |
+ sys-cluster/KVTree[mpi] |
103 |
+ sys-cluster/rankstr |
104 |
+ sys-libs/zlib |
105 |
+ virtual/mpi |
106 |
+" |
107 |
+DEPEND=" |
108 |
+ ${RDEPEND} |
109 |
+ test? ( |
110 |
+ slurm? ( sys-cluster/slurm ) |
111 |
+ ) |
112 |
+" |
113 |
+BDEPEND=">=dev-util/cmake-2.8" |
114 |
+ |
115 |
+RESTRICT="!test? ( test )" |
116 |
+PATCHES=( "${FILESDIR}/${P}-no-static.patch" ) |
117 |
+ |
118 |
+src_configure() { |
119 |
+ local resman="NONE" |
120 |
+ use slurm && resman="SLURM" |
121 |
+ export "VELOC_RESOURCE_MANAGER=${resman}" |
122 |
+ |
123 |
+ mycmakeargs=( |
124 |
+ -DBUILD_SHARED_LIBS=ON |
125 |
+ -DREDSET_LINK_STATIC=OFF |
126 |
+ -DENABLE_TESTS=$(usex test) |
127 |
+ ) |
128 |
+ cmake_src_configure |
129 |
+} |
130 |
+ |
131 |
+src_install() { |
132 |
+ cmake_src_install |
133 |
+ dodoc -r doc/rst/. |
134 |
+} |