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/KVTree/
Date: Fri, 02 Apr 2021 23:16:25
Message-Id: 1617405378.ecffeb2cb01e88d123ad237164d8f33b4b9392d2.Alessandro-Barbieri@gentoo
1 commit: ecffeb2cb01e88d123ad237164d8f33b4b9392d2
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Fri Apr 2 23:16:03 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Fri Apr 2 23:16:18 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ecffeb2c
7
8 sys-cluster/KVTree: bump
9
10 Package-Manager: Portage-3.0.18, Repoman-3.0.3
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 sys-cluster/KVTree/KVTree-1.1.0.ebuild | 56 ++++++++++++++++++++++++++++++++++
14 sys-cluster/KVTree/Manifest | 1 +
15 2 files changed, 57 insertions(+)
16
17 diff --git a/sys-cluster/KVTree/KVTree-1.1.0.ebuild b/sys-cluster/KVTree/KVTree-1.1.0.ebuild
18 new file mode 100644
19 index 000000000..e64d0507d
20 --- /dev/null
21 +++ b/sys-cluster/KVTree/KVTree-1.1.0.ebuild
22 @@ -0,0 +1,56 @@
23 +# Copyright 1999-2021 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI="7"
27 +
28 +inherit cmake
29 +
30 +SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
31 +KEYWORDS="~amd64"
32 +DESCRIPTION="KVTree provides a fully extensible C data structure modeled after Perl hashes"
33 +HOMEPAGE="https://github.com/ECP-VeloC/KVTree"
34 +LICENSE="MIT"
35 +SLOT="0"
36 +IUSE="fcntl +flock mpi test"
37 +REQUIRED_USE="
38 + ?? ( fcntl flock )
39 +"
40 +RESTRICT="test? ( userpriv ) !test? ( test )"
41 +RDEPEND="
42 + mpi? ( virtual/mpi )
43 + sys-libs/zlib
44 +"
45 +DEPEND="${RDEPEND}"
46 +BDEPEND="
47 + >=dev-util/cmake-2.8
48 + app-admin/chrpath
49 +"
50 +
51 +src_prepare() {
52 + #do not build static library
53 + sed -i '/kvtree-static/d' src/CMakeLists.txt || die
54 + sed -i '/kvtree_base-static/d' src/CMakeLists.txt || die
55 + #do not install README.md automatically
56 + sed -i '/FILES README.md DESTINATION/d' CMakeLists.txt || die
57 + default
58 + cmake_src_prepare
59 +}
60 +
61 +src_configure() {
62 + local mycmakeargs=(
63 + -DMPI="$(usex mpi ON OFF)"
64 + -DKVTREE_FILE_LOCK="$(usex flock FLOCK $(usex fcntl FCNTL NONE))"
65 + -DKVTREE_LINK_STATIC=FALSE
66 + )
67 + cmake_src_configure
68 +}
69 +
70 +src_install() {
71 + chrpath -d "${BUILD_DIR}/src/kvtree_print" || die
72 + cmake_src_install
73 + chrpath -d "${ED}/usr/$(get_libdir)/libkvtree.so" || die
74 + chrpath -d "${ED}/usr/$(get_libdir)/libkvtree_base.so" || die
75 + dodoc doc/rst/*.rst
76 + docinto "${DOCSDIR}/users"
77 + dodoc -r doc/rst/users/.
78 +}
79
80 diff --git a/sys-cluster/KVTree/Manifest b/sys-cluster/KVTree/Manifest
81 index 0c536388b..c37cfdc93 100644
82 --- a/sys-cluster/KVTree/Manifest
83 +++ b/sys-cluster/KVTree/Manifest
84 @@ -1 +1,2 @@
85 DIST KVTree-1.0.2.tar.gz 46868 BLAKE2B 6c443eba3a861f1ecb0a04c0fa63d8fec32ed856de2d6324e011fc6a20ffb9d5eb85354bb0f6faa5e63462ced46e6a6b1af198b53219f96a865ec5eb26c9e832 SHA512 d3586ae8e5084ea4ce3293f1432127c0466e09ab32ba044df1ea793a13e424b2453dac71e38c7cea928601fcce1a16f2f1474e2785c523110ef091d7296a869f
86 +DIST KVTree-1.1.0.tar.gz 61555 BLAKE2B 250634e9c13335ae3cfd51b6159b5f6b20c68fb7cd0804f2712f79f7a914669cc65a2bbeac6c84020c744e7ee00ab12d1621f91f8bb816d72f65427c3b574760 SHA512 84885d62fe52f4ee13d8c78472b57f32b1422c275623192c2b0114e7925865912455e76459aaed7888f98acae418325e4e833c6e979e668323b96b65baecaf91