1 |
commit: bc4ef87d3222f6ab31eab9a2af61649a40fde85a |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Oct 29 16:02:35 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=bc4ef87d |
7 |
|
8 |
sys-cluster/spath: add 0.1.0 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
sys-cluster/spath/Manifest | 1 + |
13 |
.../spath/files/spath-0.1.0-no-static.patch | 33 ++++++++++++++++ |
14 |
sys-cluster/spath/spath-0.1.0.ebuild | 46 ++++++++++++++++++++++ |
15 |
3 files changed, 80 insertions(+) |
16 |
|
17 |
diff --git a/sys-cluster/spath/Manifest b/sys-cluster/spath/Manifest |
18 |
index 882d12355..34b2a26b1 100644 |
19 |
--- a/sys-cluster/spath/Manifest |
20 |
+++ b/sys-cluster/spath/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST spath-0.0.2.tar.gz 21719 BLAKE2B eb55c5d5129f11b43cd2c76985e85b89fe1044b76ec54cd60a62eb7615918b89eace7051ec55a03e063ab50a84a2285d5e14354ab16f6727d8548b3fc7f4255d SHA512 fbe7c14c581eaefab2d0760ceb80623393113a0f00cf0c7c4996c92c752b78a3a66022ca5f9b479e02e82cd1426b000510d5a2f83154131ef1fb188a19d97882 |
23 |
+DIST spath-0.1.0.tar.gz 25189 BLAKE2B b122e3606d226e610650c97f4e2809183af2b1fce6991f3d55c5652fac4b9fb2ddebc83efca5b10fa24a096e344639076c9be445548e0cc3e89cac6d3e69cd51 SHA512 77e8207e2d1fa62b12133237e9adccc15dcb72f96bf5abbf5883d85d9cde5fac36b39208e1ae30e4386acffea3b7f69aac8abda9ff1ad28cbd6ffac8ad1aac8e |
24 |
|
25 |
diff --git a/sys-cluster/spath/files/spath-0.1.0-no-static.patch b/sys-cluster/spath/files/spath-0.1.0-no-static.patch |
26 |
new file mode 100644 |
27 |
index 000000000..6953f537f |
28 |
--- /dev/null |
29 |
+++ b/sys-cluster/spath/files/spath-0.1.0-no-static.patch |
30 |
@@ -0,0 +1,33 @@ |
31 |
+--- a/src/CMakeLists.txt |
32 |
++++ b/src/CMakeLists.txt |
33 |
+@@ -48,16 +48,6 @@ |
34 |
+ INSTALL(TARGETS spath DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
35 |
+ ENDIF(BUILD_SHARED_LIBS) |
36 |
+ |
37 |
+-ADD_LIBRARY(spath-static STATIC $<TARGET_OBJECTS:spath_o>) |
38 |
+-IF(SPATH_LINK_STATIC) |
39 |
+- SET_TARGET_PROPERTIES(spath-static PROPERTIES LINK_SEARCH_START_STATIC 1) |
40 |
+- SET_TARGET_PROPERTIES(spath-static PROPERTIES LINK_SEARCH_END_STATIC 1) |
41 |
+-ENDIF(SPATH_LINK_STATIC) |
42 |
+-TARGET_LINK_LIBRARIES(spath-static ${SPATH_EXTERNAL_LIBS}) |
43 |
+- |
44 |
+-SET_TARGET_PROPERTIES(spath-static PROPERTIES OUTPUT_NAME spath CLEAN_DIRECT_OUTPUT 1) |
45 |
+-INSTALL(TARGETS spath-static DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
46 |
+- |
47 |
+ # SPATH Library |
48 |
+ ADD_LIBRARY(spath_base_o OBJECT ${libspath_noMPI_srcs}) |
49 |
+ |
50 |
+@@ -67,13 +57,3 @@ |
51 |
+ SET_TARGET_PROPERTIES(spath_base PROPERTIES OUTPUT_NAME spath_base CLEAN_DIRECT_OUTPUT 1) |
52 |
+ INSTALL(TARGETS spath_base DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
53 |
+ ENDIF(BUILD_SHARED_LIBS) |
54 |
+- |
55 |
+-ADD_LIBRARY(spath_base-static STATIC $<TARGET_OBJECTS:spath_base_o>) |
56 |
+-IF(SPATH_LINK_STATIC) |
57 |
+- SET_TARGET_PROPERTIES(spath_base-static PROPERTIES LINK_SEARCH_START_STATIC 1) |
58 |
+- SET_TARGET_PROPERTIES(spath_base-static PROPERTIES LINK_SEARCH_END_STATIC 1) |
59 |
+-ENDIF(SPATH_LINK_STATIC) |
60 |
+-TARGET_LINK_LIBRARIES(spath_base-static ${SPATH_SERIAL_LIBS}) |
61 |
+- |
62 |
+-SET_TARGET_PROPERTIES(spath_base-static PROPERTIES OUTPUT_NAME spath_base CLEAN_DIRECT_OUTPUT 1) |
63 |
+-INSTALL(TARGETS spath_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
64 |
|
65 |
diff --git a/sys-cluster/spath/spath-0.1.0.ebuild b/sys-cluster/spath/spath-0.1.0.ebuild |
66 |
new file mode 100644 |
67 |
index 000000000..56edd92ab |
68 |
--- /dev/null |
69 |
+++ b/sys-cluster/spath/spath-0.1.0.ebuild |
70 |
@@ -0,0 +1,46 @@ |
71 |
+# Copyright 1999-2021 Gentoo Authors |
72 |
+# Distributed under the terms of the GNU General Public License v2 |
73 |
+ |
74 |
+EAPI=8 |
75 |
+ |
76 |
+inherit cmake |
77 |
+ |
78 |
+DESCRIPTION="Path manipulation functions" |
79 |
+HOMEPAGE="https://github.com/ECP-VeloC/spath" |
80 |
+SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
81 |
+ |
82 |
+LICENSE="MIT" |
83 |
+SLOT="0" |
84 |
+KEYWORDS="~amd64" |
85 |
+IUSE="+mpi slurm test" |
86 |
+ |
87 |
+RDEPEND=" |
88 |
+ mpi? ( virtual/mpi ) |
89 |
+" |
90 |
+DEPEND=" |
91 |
+ ${RDEPEND} |
92 |
+ test? ( slurm? ( sys-cluster/slurm ) ) |
93 |
+ |
94 |
+" |
95 |
+ |
96 |
+PATCHES=( "${FILESDIR}/${P}-no-static.patch" ) |
97 |
+RESTRICT="!test? ( test )" |
98 |
+REQUIRED_USE=" |
99 |
+ test? ( mpi ) |
100 |
+" |
101 |
+ |
102 |
+src_configure() { |
103 |
+ local vrm="NONE" |
104 |
+ use slurm && vrm="SLURM" |
105 |
+ export "VELOC_RESOURCE_MANAGER=${vrm}" |
106 |
+ |
107 |
+ local mycmakeargs=( |
108 |
+ -DBUILD_SHARED_LIBS=ON |
109 |
+ -DSPATH_LINK_STATIC=OFF |
110 |
+ -DTVDISPLAY=OFF |
111 |
+ |
112 |
+ -DENABLE_TESTS=$(usex test) |
113 |
+ -DMPI=$(usex mpi) |
114 |
+ ) |
115 |
+ cmake_src_configure |
116 |
+} |