1 |
commit: e1a9c01dff9ffc38041eae1f9985772a2f718497 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Feb 14 19:56:42 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Mar 5 01:34:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e1a9c01d |
7 |
|
8 |
sys-cluster/shuffile: check for /dev/shm |
9 |
Bug: 784647 |
10 |
|
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
sys-cluster/shuffile/shuffile-0.1.0-r1.ebuild | 46 +++++++++++++++++++++++++++ |
14 |
1 file changed, 46 insertions(+) |
15 |
|
16 |
diff --git a/sys-cluster/shuffile/shuffile-0.1.0-r1.ebuild b/sys-cluster/shuffile/shuffile-0.1.0-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000..da4689e0e |
19 |
--- /dev/null |
20 |
+++ b/sys-cluster/shuffile/shuffile-0.1.0-r1.ebuild |
21 |
@@ -0,0 +1,46 @@ |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+inherit cmake |
28 |
+ |
29 |
+DESCRIPTION="SHUFFILE Shuffle files between processes" |
30 |
+HOMEPAGE="https://github.com/ECP-VeloC/shuffile" |
31 |
+SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
+ |
33 |
+LICENSE="MIT" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64" |
36 |
+IUSE="test" |
37 |
+ |
38 |
+RDEPEND=" |
39 |
+ >=sys-cluster/KVTree-1.0.2[mpi] |
40 |
+ sys-libs/zlib |
41 |
+ virtual/mpi |
42 |
+" |
43 |
+DEPEND="${RDEPEND}" |
44 |
+BDEPEND=" |
45 |
+ >=dev-util/cmake-2.8 |
46 |
+" |
47 |
+ |
48 |
+PATCHES=( "${FILESDIR}/${P}-no-static.patch" ) |
49 |
+RESTRICT="!test? ( test )" |
50 |
+ |
51 |
+src_configure() { |
52 |
+ mycmakeargs=( |
53 |
+ -DBUILD_SHARED_LIBS=ON |
54 |
+ -DENABLE_TESTS=$(usex test) |
55 |
+ -DSHUFFILE_LINK_STATIC=OFF |
56 |
+ ) |
57 |
+ cmake_src_configure |
58 |
+} |
59 |
+ |
60 |
+src_test() { |
61 |
+ if mountpoint -q /dev/shm ; then |
62 |
+ cmake_src_test |
63 |
+ else |
64 |
+ eerror "make sure to mount /dev/shm or tests will fail" |
65 |
+ die |
66 |
+ fi |
67 |
+} |