1 |
commit: 51c357668de88f2966d7e80ae554f5e12c5a9dd0 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Feb 23 03:44:18 2020 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Feb 23 03:44:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=51c35766 |
7 |
|
8 |
sys-cluster/KVTree: new package |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
sys-cluster/KVTree/KVTree-1.0.2.ebuild | 68 ++++++++++++++++++++++++++++++++++ |
14 |
sys-cluster/KVTree/KVTree-9999.ebuild | 68 ++++++++++++++++++++++++++++++++++ |
15 |
sys-cluster/KVTree/Manifest | 1 + |
16 |
sys-cluster/KVTree/metadata.xml | 18 +++++++++ |
17 |
4 files changed, 155 insertions(+) |
18 |
|
19 |
diff --git a/sys-cluster/KVTree/KVTree-1.0.2.ebuild b/sys-cluster/KVTree/KVTree-1.0.2.ebuild |
20 |
new file mode 100644 |
21 |
index 0000000..0be4f18 |
22 |
--- /dev/null |
23 |
+++ b/sys-cluster/KVTree/KVTree-1.0.2.ebuild |
24 |
@@ -0,0 +1,68 @@ |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI="7" |
29 |
+ |
30 |
+inherit cmake-utils |
31 |
+ |
32 |
+case "${PV}" in |
33 |
+9999) |
34 |
+ SRC_URI="" |
35 |
+ EGIT_REPO_URI="https://github.com/ECP-VeloC/${PN}.git" |
36 |
+ inherit git-r3 |
37 |
+ KEYWORDS="" |
38 |
+ ;; |
39 |
+*) |
40 |
+ SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ KEYWORDS="~amd64" |
42 |
+ ;; |
43 |
+esac |
44 |
+ |
45 |
+DESCRIPTION="KVTree provides a fully extensible C data structure modeled after Perl hashes." |
46 |
+HOMEPAGE="https://github.com/ECP-VeloC/KVTree" |
47 |
+ |
48 |
+LICENSE="MIT" |
49 |
+SLOT="0" |
50 |
+IUSE="fcntl +flock mpi test" |
51 |
+ |
52 |
+REQUIRED_USE=" |
53 |
+ ?? ( fcntl flock ) |
54 |
+" |
55 |
+RESTRICT="test? ( userpriv ) !test? ( test )" |
56 |
+ |
57 |
+RDEPEND=" |
58 |
+ mpi? ( virtual/mpi ) |
59 |
+ sys-libs/zlib |
60 |
+" |
61 |
+DEPEND="${RDEPEND}" |
62 |
+BDEPEND=" |
63 |
+ >=dev-util/cmake-2.8 |
64 |
+ app-admin/chrpath |
65 |
+" |
66 |
+ |
67 |
+src_prepare() { |
68 |
+ #do not build static library |
69 |
+ sed -i '/kvtree-static/d' src/CMakeLists.txt || die |
70 |
+ #do not install README.md automatically |
71 |
+ sed -i '/FILES README.md DESTINATION/d' CMakeLists.txt || die |
72 |
+ default |
73 |
+ cmake-utils_src_prepare |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ local mycmakeargs=( |
78 |
+ -DMPI="$(usex mpi ON OFF)" |
79 |
+ -DKVTREE_FILE_LOCK="$(usex flock FLOCK $(usex fcntl FCNTL NONE))" |
80 |
+ ) |
81 |
+ |
82 |
+ cmake-utils_src_configure |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ chrpath -d "${BUILD_DIR}/src/kvtree_print_file" || die |
87 |
+ cmake-utils_src_install |
88 |
+ chrpath -d "${ED}/usr/$(get_libdir)/libkvtree.so" || die |
89 |
+ dodoc doc/rst/*.rst |
90 |
+ docinto "${DOCSDIR}/users" |
91 |
+ dodoc -r doc/rst/users/. |
92 |
+} |
93 |
|
94 |
diff --git a/sys-cluster/KVTree/KVTree-9999.ebuild b/sys-cluster/KVTree/KVTree-9999.ebuild |
95 |
new file mode 100644 |
96 |
index 0000000..0be4f18 |
97 |
--- /dev/null |
98 |
+++ b/sys-cluster/KVTree/KVTree-9999.ebuild |
99 |
@@ -0,0 +1,68 @@ |
100 |
+# Copyright 1999-2020 Gentoo Authors |
101 |
+# Distributed under the terms of the GNU General Public License v2 |
102 |
+ |
103 |
+EAPI="7" |
104 |
+ |
105 |
+inherit cmake-utils |
106 |
+ |
107 |
+case "${PV}" in |
108 |
+9999) |
109 |
+ SRC_URI="" |
110 |
+ EGIT_REPO_URI="https://github.com/ECP-VeloC/${PN}.git" |
111 |
+ inherit git-r3 |
112 |
+ KEYWORDS="" |
113 |
+ ;; |
114 |
+*) |
115 |
+ SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
116 |
+ KEYWORDS="~amd64" |
117 |
+ ;; |
118 |
+esac |
119 |
+ |
120 |
+DESCRIPTION="KVTree provides a fully extensible C data structure modeled after Perl hashes." |
121 |
+HOMEPAGE="https://github.com/ECP-VeloC/KVTree" |
122 |
+ |
123 |
+LICENSE="MIT" |
124 |
+SLOT="0" |
125 |
+IUSE="fcntl +flock mpi test" |
126 |
+ |
127 |
+REQUIRED_USE=" |
128 |
+ ?? ( fcntl flock ) |
129 |
+" |
130 |
+RESTRICT="test? ( userpriv ) !test? ( test )" |
131 |
+ |
132 |
+RDEPEND=" |
133 |
+ mpi? ( virtual/mpi ) |
134 |
+ sys-libs/zlib |
135 |
+" |
136 |
+DEPEND="${RDEPEND}" |
137 |
+BDEPEND=" |
138 |
+ >=dev-util/cmake-2.8 |
139 |
+ app-admin/chrpath |
140 |
+" |
141 |
+ |
142 |
+src_prepare() { |
143 |
+ #do not build static library |
144 |
+ sed -i '/kvtree-static/d' src/CMakeLists.txt || die |
145 |
+ #do not install README.md automatically |
146 |
+ sed -i '/FILES README.md DESTINATION/d' CMakeLists.txt || die |
147 |
+ default |
148 |
+ cmake-utils_src_prepare |
149 |
+} |
150 |
+ |
151 |
+src_configure() { |
152 |
+ local mycmakeargs=( |
153 |
+ -DMPI="$(usex mpi ON OFF)" |
154 |
+ -DKVTREE_FILE_LOCK="$(usex flock FLOCK $(usex fcntl FCNTL NONE))" |
155 |
+ ) |
156 |
+ |
157 |
+ cmake-utils_src_configure |
158 |
+} |
159 |
+ |
160 |
+src_install() { |
161 |
+ chrpath -d "${BUILD_DIR}/src/kvtree_print_file" || die |
162 |
+ cmake-utils_src_install |
163 |
+ chrpath -d "${ED}/usr/$(get_libdir)/libkvtree.so" || die |
164 |
+ dodoc doc/rst/*.rst |
165 |
+ docinto "${DOCSDIR}/users" |
166 |
+ dodoc -r doc/rst/users/. |
167 |
+} |
168 |
|
169 |
diff --git a/sys-cluster/KVTree/Manifest b/sys-cluster/KVTree/Manifest |
170 |
new file mode 100644 |
171 |
index 0000000..0c53638 |
172 |
--- /dev/null |
173 |
+++ b/sys-cluster/KVTree/Manifest |
174 |
@@ -0,0 +1 @@ |
175 |
+DIST KVTree-1.0.2.tar.gz 46868 BLAKE2B 6c443eba3a861f1ecb0a04c0fa63d8fec32ed856de2d6324e011fc6a20ffb9d5eb85354bb0f6faa5e63462ced46e6a6b1af198b53219f96a865ec5eb26c9e832 SHA512 d3586ae8e5084ea4ce3293f1432127c0466e09ab32ba044df1ea793a13e424b2453dac71e38c7cea928601fcce1a16f2f1474e2785c523110ef091d7296a869f |
176 |
|
177 |
diff --git a/sys-cluster/KVTree/metadata.xml b/sys-cluster/KVTree/metadata.xml |
178 |
new file mode 100644 |
179 |
index 0000000..f4359c5 |
180 |
--- /dev/null |
181 |
+++ b/sys-cluster/KVTree/metadata.xml |
182 |
@@ -0,0 +1,18 @@ |
183 |
+<?xml version="1.0" encoding="UTF-8"?> |
184 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
185 |
+<pkgmetadata> |
186 |
+ <maintainer type="person"> |
187 |
+ <email>lssndrbarbieri@×××××.com</email> |
188 |
+ <name>Alessandro Barbieri</name> |
189 |
+ </maintainer> |
190 |
+ <upstream> |
191 |
+ <remote-id type="github">ECP-VeloC/KVTree</remote-id> |
192 |
+ </upstream> |
193 |
+ <use> |
194 |
+ <flag name="fcntl">Set the type of file locking to fcntl.</flag> |
195 |
+ <flag name="flock">Set the type of file locking to flock.</flag> |
196 |
+ </use> |
197 |
+ <longdescription lang="en">Each KVTree object contains a list of key/value pairs. Each key is a string, each value is another kvtree object. This is a nested data structures, similar to a python dict or perl hash. The library provides functions to serialize a kvtree object to / from a file. It also optionally provides MPI send / recv functions to transfer an object from one process to another. |
198 |
+In addition to getter and setter utilities, this library provides serialization (for persisting an KVTree to a file) and optional MPI functionality. |
199 |
+ </longdescription> |
200 |
+</pkgmetadata> |