Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-cpp/parallel-hashmap/
Date: Sat, 26 Mar 2022 07:36:40
Message-Id: 1648278461.0a28baca56248cdc29acce0886ebc4b379ca4dc7.Alessandro-Barbieri@gentoo
1 commit: 0a28baca56248cdc29acce0886ebc4b379ca4dc7
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sat Mar 26 07:07:41 2022 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sat Mar 26 07:07:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0a28baca
7
8 dev-cpp/parallel-hashmap: add 1.34
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 dev-cpp/parallel-hashmap/Manifest | 1 +
13 .../parallel-hashmap/parallel-hashmap-1.34.ebuild | 41 ++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-cpp/parallel-hashmap/Manifest b/dev-cpp/parallel-hashmap/Manifest
17 index da8d78b3e..198c39302 100644
18 --- a/dev-cpp/parallel-hashmap/Manifest
19 +++ b/dev-cpp/parallel-hashmap/Manifest
20 @@ -1 +1,2 @@
21 DIST parallel-hashmap-1.33.tar.gz 2038996 BLAKE2B b704a0230bd6d15e8a3a1aa11bec456183119d5104e1ac191e556edae1c0b0d2a27c5b52c84cae167cd09a90f4fc43f817c21d64d6b288a70596b6495ee872e6 SHA512 287f098229153d925632e68e3cdbabfae0ea0ab8864089e4c0553a166c6079ca82ed5246ba53afd2a2917abcf06f37bc18f098e721f5f3b8def4d2d8c1c8c745
22 +DIST parallel-hashmap-1.34.tar.gz 2043028 BLAKE2B 30629288656a22cfd56da9485458f604487383cc5951e230a833b182cbbcc706b78d0b8a45fb76c4fca6da930f49cdb79b2ca63926ca8cd60cc7445b58c8edbd SHA512 3747422e80406aa77b009adee3c16325640dd1044560882fb881dac5ef4109f7d165d26ed7e64002c9285275f95962725ce20c918da12c0c113999c8ca3c7429
23
24 diff --git a/dev-cpp/parallel-hashmap/parallel-hashmap-1.34.ebuild b/dev-cpp/parallel-hashmap/parallel-hashmap-1.34.ebuild
25 new file mode 100644
26 index 000000000..a4119b6dc
27 --- /dev/null
28 +++ b/dev-cpp/parallel-hashmap/parallel-hashmap-1.34.ebuild
29 @@ -0,0 +1,41 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit cmake
36 +
37 +DESCRIPTION="Family of header-only, fast and memory-friendly hashmap and btree containers"
38 +HOMEPAGE="
39 + https://greg7mdp.github.io/parallel-hashmap/
40 + https://github.com/greg7mdp/parallel-hashmap
41 +"
42 +SRC_URI="https://github.com/greg7mdp/parallel-hashmap/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +IUSE="examples test"
48 +
49 +CDEPEND="dev-libs/cereal"
50 +DEPEND="test? ( ${CDEPEND} )"
51 +RDEPEND="${CDEPEND}"
52 +
53 +RESTRICT="!test? ( test )"
54 +
55 +src_compile() {
56 + mycmakeargs=(
57 + PHMAP_BUILD_EXAMPLES=$(usex examples)
58 + PHMAP_BUILD_TESTS=$(usex test)
59 + )
60 +
61 + cmake_src_compile
62 +}
63 +
64 +src_install() {
65 + cmake_src_install
66 + if use examples ; then
67 + dodoc -r examples
68 + docompress -x "/usr/share/doc/${PF}/examples"
69 + fi
70 +}