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/shuffile/, sys-cluster/shuffile/files/
Date: Sat, 30 Oct 2021 19:37:52
Message-Id: 1635622664.b3c1f3a11b138d6cc8b32d58f6f3d0dd10a495ee.Alessandro-Barbieri@gentoo
1 commit: b3c1f3a11b138d6cc8b32d58f6f3d0dd10a495ee
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Fri Oct 29 15:01:58 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=b3c1f3a1
7
8 sys-cluster/shuffile: add 0.1.0
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 sys-cluster/shuffile/Manifest | 1 +
13 .../shuffile/files/shuffile-0.1.0-no-static.patch | 16 ++++++++++
14 sys-cluster/shuffile/shuffile-0.1.0.ebuild | 37 ++++++++++++++++++++++
15 3 files changed, 54 insertions(+)
16
17 diff --git a/sys-cluster/shuffile/Manifest b/sys-cluster/shuffile/Manifest
18 index e4993c803..286531b32 100644
19 --- a/sys-cluster/shuffile/Manifest
20 +++ b/sys-cluster/shuffile/Manifest
21 @@ -1 +1,2 @@
22 DIST shuffile-0.0.4.tar.gz 28847 BLAKE2B 7e36c8d96457eb44f59f9017d69ad53265d88c47b33d37b8b2ab6ea2365eb2bd0eb78a25a2496754d839ae5507615356e2cb5508879b82c99e2ef91ef9f7af0e SHA512 2c90e1aa852413f15fabc78c0553344b1b8975972ff84239d872738f102d7784f16422ccc2807189307db0feb0abb28b4db02c1666957a94a92e6be329f4a277
23 +DIST shuffile-0.1.0.tar.gz 28999 BLAKE2B bd8b972d75740ece74de91aa4a2bafad3ce1fc6ed3bd93d5ef4ad7df2264cb7abc26e37b2985bc79219163e1817f3925d76d828ff5a83677b4d601b161fc1d83 SHA512 750eb38a303dea5bb97ad72fcb040fb49c3c059ae974218fbeeaa23a3aa0296d971af45636895a099c719c1eed120e747c1fc06be8d77c0b3d948f89b8586c22
24
25 diff --git a/sys-cluster/shuffile/files/shuffile-0.1.0-no-static.patch b/sys-cluster/shuffile/files/shuffile-0.1.0-no-static.patch
26 new file mode 100644
27 index 000000000..c8b334b6a
28 --- /dev/null
29 +++ b/sys-cluster/shuffile/files/shuffile-0.1.0-no-static.patch
30 @@ -0,0 +1,16 @@
31 +--- a/src/CMakeLists.txt
32 ++++ b/src/CMakeLists.txt
33 +@@ -26,13 +26,3 @@
34 + SET_TARGET_PROPERTIES(shuffile PROPERTIES OUTPUT_NAME shuffile CLEAN_DIRECT_OUTPUT 1)
35 + INSTALL(TARGETS shuffile DESTINATION ${CMAKE_INSTALL_LIBDIR})
36 + ENDIF()
37 +-
38 +-ADD_LIBRARY(shuffile-static STATIC $<TARGET_OBJECTS:shuffile_o>)
39 +-IF(KVTREE_LINK_STATIC)
40 +- SET_TARGET_PROPERTIES(shuffile-static PROPERTIES LINK_SEARCH_START_STATIC 1)
41 +- SET_TARGET_PROPERTIES(shuffile-static PROPERTIES LINK_SEARCH_END_STATIC 1)
42 +-ENDIF(KVTREE_LINK_STATIC)
43 +-TARGET_LINK_LIBRARIES(shuffile-static ${SHUFFILE_EXTERNAL_LIBS})
44 +-
45 +-SET_TARGET_PROPERTIES(shuffile-static PROPERTIES OUTPUT_NAME shuffile CLEAN_DIRECT_OUTPUT 1)
46 +-INSTALL(TARGETS shuffile-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
47
48 diff --git a/sys-cluster/shuffile/shuffile-0.1.0.ebuild b/sys-cluster/shuffile/shuffile-0.1.0.ebuild
49 new file mode 100644
50 index 000000000..3887585e4
51 --- /dev/null
52 +++ b/sys-cluster/shuffile/shuffile-0.1.0.ebuild
53 @@ -0,0 +1,37 @@
54 +# Copyright 1999-2021 Gentoo Authors
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=8
58 +
59 +inherit cmake
60 +
61 +DESCRIPTION="SHUFFILE Shuffle files between processes"
62 +HOMEPAGE="https://github.com/ECP-VeloC/shuffile"
63 +SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
64 +
65 +LICENSE="MIT"
66 +SLOT="0"
67 +KEYWORDS="~amd64"
68 +IUSE="test"
69 +
70 +RDEPEND="
71 + >=sys-cluster/KVTree-1.0.2[mpi]
72 + sys-libs/zlib
73 + virtual/mpi
74 +"
75 +DEPEND="${RDEPEND}"
76 +BDEPEND="
77 + >=dev-util/cmake-2.8
78 +"
79 +
80 +PATCHES=( "${FILESDIR}/${P}-no-static.patch" )
81 +RESTRICT="!test? ( test )"
82 +
83 +src_configure() {
84 + mycmakeargs=(
85 + -DBUILD_SHARED_LIBS=ON
86 + -DENABLE_TESTS=$(usex test)
87 + -DSHUFFILE_LINK_STATIC=OFF
88 + )
89 + cmake_src_configure
90 +}