1 |
commit: 62ff0ec718bde04f4e25485ddb3aeca3b6f5fa65 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jul 28 23:13:22 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Jul 28 23:39:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=62ff0ec7 |
7 |
|
8 |
sys-cluster/spath: initial import |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
sys-cluster/spath/Manifest | 1 + |
13 |
.../spath/files/spath-0.0.2-no-static.patch | 33 ++++++++++++++ |
14 |
sys-cluster/spath/metadata.xml | 19 ++++++++ |
15 |
sys-cluster/spath/spath-0.0.2.ebuild | 50 ++++++++++++++++++++++ |
16 |
4 files changed, 103 insertions(+) |
17 |
|
18 |
diff --git a/sys-cluster/spath/Manifest b/sys-cluster/spath/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..882d12355 |
21 |
--- /dev/null |
22 |
+++ b/sys-cluster/spath/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST spath-0.0.2.tar.gz 21719 BLAKE2B eb55c5d5129f11b43cd2c76985e85b89fe1044b76ec54cd60a62eb7615918b89eace7051ec55a03e063ab50a84a2285d5e14354ab16f6727d8548b3fc7f4255d SHA512 fbe7c14c581eaefab2d0760ceb80623393113a0f00cf0c7c4996c92c752b78a3a66022ca5f9b479e02e82cd1426b000510d5a2f83154131ef1fb188a19d97882 |
25 |
|
26 |
diff --git a/sys-cluster/spath/files/spath-0.0.2-no-static.patch b/sys-cluster/spath/files/spath-0.0.2-no-static.patch |
27 |
new file mode 100644 |
28 |
index 000000000..13d92a232 |
29 |
--- /dev/null |
30 |
+++ b/sys-cluster/spath/files/spath-0.0.2-no-static.patch |
31 |
@@ -0,0 +1,33 @@ |
32 |
+--- a/src/CMakeLists.txt |
33 |
++++ b/src/CMakeLists.txt |
34 |
+@@ -36,16 +36,6 @@ |
35 |
+ SET_TARGET_PROPERTIES(spath PROPERTIES OUTPUT_NAME spath CLEAN_DIRECT_OUTPUT 1) |
36 |
+ INSTALL(TARGETS spath DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
37 |
+ |
38 |
+-ADD_LIBRARY(spath-static STATIC $<TARGET_OBJECTS:spath_o>) |
39 |
+-IF(SPATH_LINK_STATIC) |
40 |
+- SET_TARGET_PROPERTIES(spath-static PROPERTIES LINK_SEARCH_START_STATIC 1) |
41 |
+- SET_TARGET_PROPERTIES(spath-static PROPERTIES LINK_SEARCH_END_STATIC 1) |
42 |
+-ENDIF(SPATH_LINK_STATIC) |
43 |
+-TARGET_LINK_LIBRARIES(spath-static ${SPATH_EXTERNAL_LIBS}) |
44 |
+- |
45 |
+-SET_TARGET_PROPERTIES(spath-static PROPERTIES OUTPUT_NAME spath CLEAN_DIRECT_OUTPUT 1) |
46 |
+-INSTALL(TARGETS spath-static DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
47 |
+- |
48 |
+ # SPATH Library |
49 |
+ ADD_LIBRARY(spath_base_o OBJECT ${libspath_noMPI_srcs}) |
50 |
+ |
51 |
+@@ -53,13 +43,3 @@ |
52 |
+ TARGET_LINK_LIBRARIES(spath_base ${SPATH_SERIAL_LIBS}) |
53 |
+ SET_TARGET_PROPERTIES(spath_base PROPERTIES OUTPUT_NAME spath_base CLEAN_DIRECT_OUTPUT 1) |
54 |
+ INSTALL(TARGETS spath_base DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
55 |
+- |
56 |
+-ADD_LIBRARY(spath_base-static STATIC $<TARGET_OBJECTS:spath_base_o>) |
57 |
+-IF(SPATH_LINK_STATIC) |
58 |
+- SET_TARGET_PROPERTIES(spath_base-static PROPERTIES LINK_SEARCH_START_STATIC 1) |
59 |
+- SET_TARGET_PROPERTIES(spath_base-static PROPERTIES LINK_SEARCH_END_STATIC 1) |
60 |
+-ENDIF(SPATH_LINK_STATIC) |
61 |
+-TARGET_LINK_LIBRARIES(spath_base-static ${SPATH_SERIAL_LIBS}) |
62 |
+- |
63 |
+-SET_TARGET_PROPERTIES(spath_base-static PROPERTIES OUTPUT_NAME spath_base CLEAN_DIRECT_OUTPUT 1) |
64 |
+-INSTALL(TARGETS spath_base-static DESTINATION ${CMAKE_INSTALL_LIBDIR}) |
65 |
|
66 |
diff --git a/sys-cluster/spath/metadata.xml b/sys-cluster/spath/metadata.xml |
67 |
new file mode 100644 |
68 |
index 000000000..126a6c5a6 |
69 |
--- /dev/null |
70 |
+++ b/sys-cluster/spath/metadata.xml |
71 |
@@ -0,0 +1,19 @@ |
72 |
+<?xml version="1.0" encoding="UTF-8"?> |
73 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
74 |
+<pkgmetadata> |
75 |
+ <maintainer type="person"> |
76 |
+ <email>lssndrbarbieri@×××××.com</email> |
77 |
+ <name>Alessandro Barbieri</name> |
78 |
+ </maintainer> |
79 |
+ <upstream> |
80 |
+ <bugs-to>https://github.com/ECP-VeloC/spath/issues</bugs-to> |
81 |
+ <remote-id type="github">ECP-VeloC/spath</remote-id> |
82 |
+ </upstream> |
83 |
+ <longdescription lang="en"> |
84 |
+The spath libary defines a data structure and a number of functions to manipulate paths, including combining, slicing, simplification, computing relative paths, and converting to/from character strings. |
85 |
+ </longdescription> |
86 |
+ <use> |
87 |
+ <flag name="lsf">Use LFS (Load Sharing Facility) as resource manager</flag> |
88 |
+ <flag name="slurm">Use <pkg>sys-cluster/slurm</pkg> as resource manager</flag> |
89 |
+ </use> |
90 |
+</pkgmetadata> |
91 |
|
92 |
diff --git a/sys-cluster/spath/spath-0.0.2.ebuild b/sys-cluster/spath/spath-0.0.2.ebuild |
93 |
new file mode 100644 |
94 |
index 000000000..e0931de14 |
95 |
--- /dev/null |
96 |
+++ b/sys-cluster/spath/spath-0.0.2.ebuild |
97 |
@@ -0,0 +1,50 @@ |
98 |
+# Copyright 1999-2021 Gentoo Authors |
99 |
+# Distributed under the terms of the GNU General Public License v2 |
100 |
+ |
101 |
+EAPI="7" |
102 |
+ |
103 |
+inherit cmake |
104 |
+ |
105 |
+DESCRIPTION="Path manipulation functions" |
106 |
+HOMEPAGE="https://github.com/ECP-VeloC/spath" |
107 |
+SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
108 |
+ |
109 |
+LICENSE="MIT" |
110 |
+SLOT="0" |
111 |
+KEYWORDS="~amd64" |
112 |
+IUSE="lsf +mpi slurm test" |
113 |
+ |
114 |
+#remove zlib in the next release (not used) https://github.com/ECP-VeloC/spath/issues/12 |
115 |
+RDEPEND=" |
116 |
+ mpi? ( virtual/mpi ) |
117 |
+" |
118 |
+DEPEND=" |
119 |
+ ${RDEPEND} |
120 |
+ sys-libs/zlib |
121 |
+ test? ( slurm? ( sys-cluster/slurm ) ) |
122 |
+ |
123 |
+" |
124 |
+ |
125 |
+PATCHES=( "${FILESDIR}/${P}-no-static.patch" ) |
126 |
+RESTRICT="!test? ( test )" |
127 |
+REQUIRED_USE=" |
128 |
+ ?? ( lsf slurm ) |
129 |
+ test? ( mpi ) |
130 |
+" |
131 |
+ |
132 |
+src_configure() { |
133 |
+ local vrm="NONE" |
134 |
+ use lsf && vrm="LSF" |
135 |
+ use slurm && vrm="SLURM" |
136 |
+ |
137 |
+ local mycmakeargs=( |
138 |
+ -DBUILD_SHARED_LIBS=ON |
139 |
+ -DSPATH_LINK_STATIC=OFF |
140 |
+ -DTVDISPLAY=OFF |
141 |
+ |
142 |
+ -DENABLE_TESTS=$(usex test) |
143 |
+ -DMPI=$(usex mpi) |
144 |
+ -DVELOC_RESOURCE_MANAGER="${vrm}" |
145 |
+ ) |
146 |
+ cmake_src_configure |
147 |
+} |