aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Barbieri <lssndrbarbieri@gmail.com>2021-10-29 17:28:33 +0200
committerAlessandro Barbieri <lssndrbarbieri@gmail.com>2021-10-30 21:37:44 +0200
commitdd41c01c477e9ce51a436e43e517469971da9ce8 (patch)
tree4407059d37952932038c75a8f9b9c03773109358 /sys-cluster/redset
parentsys-cluster/KVTree: add 1.2.0 (diff)
downloadguru-dd41c01c477e9ce51a436e43e517469971da9ce8.tar.gz
guru-dd41c01c477e9ce51a436e43e517469971da9ce8.tar.bz2
guru-dd41c01c477e9ce51a436e43e517469971da9ce8.zip
sys-cluster/redset: add 0.1.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'sys-cluster/redset')
-rw-r--r--sys-cluster/redset/Manifest1
-rw-r--r--sys-cluster/redset/files/redset-0.1.0-no-static.patch31
-rw-r--r--sys-cluster/redset/metadata.xml3
-rw-r--r--sys-cluster/redset/redset-0.1.0.ebuild50
4 files changed, 85 insertions, 0 deletions
diff --git a/sys-cluster/redset/Manifest b/sys-cluster/redset/Manifest
index 2332a1de0..b3f5720a7 100644
--- a/sys-cluster/redset/Manifest
+++ b/sys-cluster/redset/Manifest
@@ -1 +1,2 @@
DIST redset-0.0.5.tar.gz 465120 BLAKE2B 2050015cdc2b5e8b7e209d99ef5a85dd6ea301c9dec774206e9eab23e5a49b355c89acd05a0997295240b2d3831601e0247295b992af8834bf5667295c407791 SHA512 80c44dd7eb72d8da234f9247743be67bbdf6943bf1f20fe6e66b015d1be47f8b519702bd027b15f43473dae69096a6677a4db58b8bd16fbeffe0d692f7b987a9
+DIST redset-0.1.0.tar.gz 466858 BLAKE2B bf60cdc95dc7cb748c9ce131265a2c24d575137b9642ff7ba63f520fbe67c58cd5bbe026f2036d54f239ffadebb5ac4a4a266b7ec8bd9a66eca541b378c8089e SHA512 dc78b668d03a309c44f7c070a08c3fbf9f00fa82bf517c199fac4a67116e6c5b2ab73776299b0b1942a90f9decc6fb238fcf1d0f06a81f6130ae2fdf8eb82541
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
new file mode 100644
index 000000000..31e3ab385
--- /dev/null
+++ b/sys-cluster/redset/files/redset-0.1.0-no-static.patch
@@ -0,0 +1,31 @@
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -46,16 +46,6 @@
+ INSTALL(TARGETS redset DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ ENDIF()
+
+-ADD_LIBRARY(redset-static STATIC $<TARGET_OBJECTS:redset_o>)
+-IF(REDSET_LINK_STATIC)
+- SET_TARGET_PROPERTIES(redset-static PROPERTIES LINK_SEARCH_START_STATIC 1)
+- SET_TARGET_PROPERTIES(redset-static PROPERTIES LINK_SEARCH_END_STATIC 1)
+-ENDIF(REDSET_LINK_STATIC)
+-TARGET_LINK_LIBRARIES(redset-static ${REDSET_EXTERNAL_LIBS})
+-
+-SET_TARGET_PROPERTIES(redset-static PROPERTIES OUTPUT_NAME redset CLEAN_DIRECT_OUTPUT 1)
+-INSTALL(TARGETS redset-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
+-
+ # Non-MPI library for CLI
+ if (BUILD_SHARED_LIBS)
+ ADD_LIBRARY(redset_base SHARED ${redset_noMPI_srcs})
+@@ -63,11 +53,6 @@
+ INSTALL(TARGETS redset_base DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
+
+-ADD_LIBRARY(redset_base-static STATIC ${redset_noMPI_srcs})
+-TARGET_LINK_LIBRARIES(redset_base-static ${REDSET_SERIAL_LIBS})
+-SET_TARGET_PROPERTIES(redset_base-static PROPERTIES OUTPUT_NAME redset_base CLEAN_DIRECT_OUTPUT 1)
+-INSTALL(TARGETS redset_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
+-
+ ##############
+ # CLI REDSET #
+ ##############
diff --git a/sys-cluster/redset/metadata.xml b/sys-cluster/redset/metadata.xml
index 5c2fc9dab..aa16954c8 100644
--- a/sys-cluster/redset/metadata.xml
+++ b/sys-cluster/redset/metadata.xml
@@ -8,6 +8,9 @@
<upstream>
<remote-id type="github">ECP-VeloC/redset</remote-id>
</upstream>
+ <use>
+ <flag name="slurm">Use <pkg>sys-cluster/slurm</pkg> as resource manager</flag>
+ </use>
<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.
</longdescription>
</pkgmetadata>
diff --git a/sys-cluster/redset/redset-0.1.0.ebuild b/sys-cluster/redset/redset-0.1.0.ebuild
new file mode 100644
index 000000000..a1948f0a0
--- /dev/null
+++ b/sys-cluster/redset/redset-0.1.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Low-level distributed erasure coding lib to protect datasets of MPI applications"
+HOMEPAGE="https://github.com/ECP-VeloC/redset"
+SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="slurm test"
+
+RDEPEND="
+ sys-cluster/KVTree[mpi]
+ sys-cluster/rankstr
+ sys-libs/zlib
+ virtual/mpi
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ slurm? ( sys-cluster/slurm )
+ )
+"
+BDEPEND=">=dev-util/cmake-2.8"
+
+RESTRICT="!test? ( test )"
+PATCHES=( "${FILESDIR}/${P}-no-static.patch" )
+
+src_configure() {
+ local resman="NONE"
+ use slurm && resman="SLURM"
+ export "VELOC_RESOURCE_MANAGER=${resman}"
+
+ mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ -DREDSET_LINK_STATIC=OFF
+ -DENABLE_TESTS=$(usex test)
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ dodoc -r doc/rst/.
+}