sys-cluster/er: add 0.1.0

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-10-29 16:57:05 +02:00
parent 7e2ece5c40
commit 820762e44b
3 changed files with 56 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST er-0.0.4.tar.gz 20824 BLAKE2B 05d49669a04d94a39ae46f71fb2cf034b7b9d43831f9b5d12468264dd550a97db2fae1d2a0e1b73188d23404e091ef4a4870e04f7c37d5318961b0b542b5656a SHA512 8e5b78a7b3013c5e1bb71584afddb2f0162a2c1a6845cca112e36c5929eafb8f227288eabd237ed1fbb04fcf6e00edfa4042650d9910198f3d98abfccdb562fe
DIST er-0.1.0.tar.gz 20960 BLAKE2B f7e40459928a7a9b62c6fc2b89590b8e19087ba8741ec2666570a750bb58557e87e852e2a5fd80cf8ba59396533d8ffe9e69f089a2deda9d99f83e112e557f93 SHA512 e642ff388b810fd612a6482f9b324ecd5b0f93240d3cc476725aed21f84f3f9421a29838dac2ea6e4e12b7bbb57b628d82cb40d017094ab80c2b229478072a1b

View File

@@ -0,0 +1,39 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="High-level distributed erasure coding lib combining shuffile and redset"
HOMEPAGE="https://github.com/ECP-VeloC/er"
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RDEPEND="
sys-cluster/KVTree[mpi]
sys-cluster/redset
sys-cluster/shuffile
sys-libs/zlib
virtual/mpi
"
DEPEND="${RDEPEND}"
BDEPEND="
>=dev-util/cmake-2.8
"
PATCHES=( "${FILESDIR}/${P}-no-static.patch" )
RESTRICT="!test? ( test )"
src_configure() {
mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DENABLE_TESTS=$(usex test)
-DER_LINK_STATIC=OFF
)
cmake_src_configure
}

View File

@@ -0,0 +1,16 @@
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -25,13 +25,3 @@
SET_TARGET_PROPERTIES(er PROPERTIES OUTPUT_NAME er CLEAN_DIRECT_OUTPUT 1)
INSTALL(TARGETS er DESTINATION ${CMAKE_INSTALL_LIBDIR})
ENDIF()
-
-ADD_LIBRARY(er-static STATIC $<TARGET_OBJECTS:er_o>)
-IF(ER_LINK_STATIC)
- SET_TARGET_PROPERTIES(er-static PROPERTIES LINK_SEARCH_START_STATIC 1)
- SET_TARGET_PROPERTIES(er-static PROPERTIES LINK_SEARCH_END_STATIC 1)
-ENDIF(ER_LINK_STATIC)
-TARGET_LINK_LIBRARIES(er-static ${ER_EXTERNAL_LIBS})
-
-SET_TARGET_PROPERTIES(er-static PROPERTIES OUTPUT_NAME er CLEAN_DIRECT_OUTPUT 1)
-INSTALL(TARGETS er-static DESTINATION ${CMAKE_INSTALL_LIBDIR})