1 |
commit: bea0ab948cce6bce92628a2f04b703d94bd65fd7 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 28 15:50:31 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 15:50:31 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bea0ab94 |
7 |
|
8 |
dev-cpp/parallel-hashmap: add 1.35, drop 1.33 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
dev-cpp/parallel-hashmap/Manifest | 2 +- |
13 |
...ap-1.33.ebuild => parallel-hashmap-1.35.ebuild} | 23 +++++++++++++--------- |
14 |
2 files changed, 15 insertions(+), 10 deletions(-) |
15 |
|
16 |
diff --git a/dev-cpp/parallel-hashmap/Manifest b/dev-cpp/parallel-hashmap/Manifest |
17 |
index 198c39302..d80bc3e49 100644 |
18 |
--- a/dev-cpp/parallel-hashmap/Manifest |
19 |
+++ b/dev-cpp/parallel-hashmap/Manifest |
20 |
@@ -1,2 +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 |
+DIST parallel-hashmap-1.35.gh.tar.gz 2044770 BLAKE2B 18c4843ebd2ca046e1597a7fc0341440d888c4b39d2355e45b36e02b9f5dcf39baec1826434d70b591e6713fe2ff043a9ec8a68b7b43e0fbb2af176507b738ba SHA512 ffa70a6691784caa8acc6e191b3db4ffdbbc51db86c91118267fac96c178d434f890f773c9b31932eaed15b2cecbd74dcaddacefd0ef9771da0833c90d0f104c |
24 |
|
25 |
diff --git a/dev-cpp/parallel-hashmap/parallel-hashmap-1.33.ebuild b/dev-cpp/parallel-hashmap/parallel-hashmap-1.35.ebuild |
26 |
similarity index 57% |
27 |
rename from dev-cpp/parallel-hashmap/parallel-hashmap-1.33.ebuild |
28 |
rename to dev-cpp/parallel-hashmap/parallel-hashmap-1.35.ebuild |
29 |
index e2824c2e1..036b306d5 100644 |
30 |
--- a/dev-cpp/parallel-hashmap/parallel-hashmap-1.33.ebuild |
31 |
+++ b/dev-cpp/parallel-hashmap/parallel-hashmap-1.35.ebuild |
32 |
@@ -1,7 +1,7 @@ |
33 |
-# Copyright 1999-2021 Gentoo Authors |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
# Distributed under the terms of the GNU General Public License v2 |
36 |
|
37 |
-EAPI=7 |
38 |
+EAPI=8 |
39 |
|
40 |
inherit cmake |
41 |
|
42 |
@@ -10,20 +10,25 @@ HOMEPAGE=" |
43 |
https://greg7mdp.github.io/parallel-hashmap/ |
44 |
https://github.com/greg7mdp/parallel-hashmap |
45 |
" |
46 |
-SRC_URI="https://github.com/greg7mdp/parallel-hashmap/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+SRC_URI="https://github.com/greg7mdp/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz" |
48 |
|
49 |
LICENSE="Apache-2.0" |
50 |
-SLOT="0" |
51 |
+SLOT="0/${PV}" |
52 |
KEYWORDS="~amd64" |
53 |
-IUSE="examples" |
54 |
+IUSE="examples test" |
55 |
|
56 |
-DEPEND="" |
57 |
-RDEPEND="${DEPEND}" |
58 |
+CDEPEND="dev-libs/cereal" |
59 |
+DEPEND="test? ( ${CDEPEND} )" |
60 |
+RDEPEND="${CDEPEND}" |
61 |
|
62 |
-#TODO: explore the various cmake options (if any) |
63 |
-#TODO: tests |
64 |
+RESTRICT="!test? ( test )" |
65 |
|
66 |
src_compile() { |
67 |
+ mycmakeargs=( |
68 |
+ PHMAP_BUILD_EXAMPLES=$(usex examples) |
69 |
+ PHMAP_BUILD_TESTS=$(usex test) |
70 |
+ ) |
71 |
+ |
72 |
cmake_src_compile |
73 |
} |