sys-cluster/rankstr: add 0.1.0

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-10-29 17:05:45 +02:00
parent b3c1f3a11b
commit 6fb7c19fd2
3 changed files with 47 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST rankstr-0.0.3.tar.gz 14734 BLAKE2B 574dff65368912e0f63da81b35069888cf40c6768e7bea456aa8104976a87c49102ee860f22f405bcc732f1d36be3e4d35e4e58dfba901eda85ce18a0d9d557b SHA512 d1672bb6d09567c44c6bdf96d2dd670edc1d1abb113bb5b893c1cb5a78428b95e425639d5d65f2a68a76f11034a9009c659b5e53ca9f543a6a78d0c14ba59e57
DIST rankstr-0.1.0.tar.gz 14909 BLAKE2B 488386e2588e71db43d59b02ba277cc409df21615ae6c8e2fa822a0aee2ebf4d0ac4f09c262759b7c4066cf118420404d297c9dfcf2fe80bdd19977a2e120174 SHA512 be36c6316fe2286015f704dbf8733ae2b682f32f5c180cfa5e1adf91ebec2dcba24af1fda8a9f83612edb20327d21aaaf869bb41fcdfb7873b0f1aab7bf6c36a

View File

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

View File

@@ -0,0 +1,30 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Split an MPI communicator into subcomms based on string values"
HOMEPAGE="https://github.com/ECP-VeloC/rankstr"
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="virtual/mpi"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/${P}-no-static.patch" )
RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
-DBUILD_SHARED_LIBS=ON
-DENABLE_TESTS=$(usex test)
-DRANKSTR_LINK_STATIC=OFF
)
cmake_src_configure
}