1 |
commit: 308e7f755a0f7bb81c419b1c15cd4be83cc71874 |
2 |
Author: Huang Rui <vowstar <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Nov 2 07:09:59 2022 +0000 |
4 |
Commit: Haelwenn Monnier <contact <AT> hacktivis <DOT> me> |
5 |
CommitDate: Wed Nov 2 07:10:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=308e7f75 |
7 |
|
8 |
dev-libs/unordered_dense: new package, add 2.0.0, 9999 |
9 |
|
10 |
Signed-off-by: Huang Rui <vowstar <AT> gmail.com> |
11 |
|
12 |
dev-libs/unordered_dense/Manifest | 1 + |
13 |
dev-libs/unordered_dense/metadata.xml | 20 ++++++++++++ |
14 |
.../unordered_dense/unordered_dense-2.0.0.ebuild | 37 ++++++++++++++++++++++ |
15 |
.../unordered_dense/unordered_dense-9999.ebuild | 37 ++++++++++++++++++++++ |
16 |
4 files changed, 95 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/unordered_dense/Manifest b/dev-libs/unordered_dense/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..ad9aa17ea |
21 |
--- /dev/null |
22 |
+++ b/dev-libs/unordered_dense/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST unordered_dense-2.0.0.tar.gz 307275 BLAKE2B d579740134a8e67e8487c1d6779bc5ea2bf0b3ab70ce60f3b8b68d1fdabc9b45a099e49500b417f21a3fc4c88d2aadbf96afa7b56a8d7d581a0d3f3f6badf61b SHA512 8c7d582abd2142310b50d835ce3cb9a0731a6f7bc6419d01742860cbcb0ade31aad393c93523b8ff82ce456f6cbab5a3d93f91f95c8eb5f7f960fa4793f57d8d |
25 |
|
26 |
diff --git a/dev-libs/unordered_dense/metadata.xml b/dev-libs/unordered_dense/metadata.xml |
27 |
new file mode 100644 |
28 |
index 000000000..552890653 |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/unordered_dense/metadata.xml |
31 |
@@ -0,0 +1,20 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+<pkgmetadata> |
35 |
+ <maintainer type="person"> |
36 |
+ <email>vowstar@×××××.com</email> |
37 |
+ <name>Huang Rui</name> |
38 |
+ </maintainer> |
39 |
+ <upstream> |
40 |
+ <remote-id type="github">martinus/unordered_dense</remote-id> |
41 |
+ </upstream> |
42 |
+ <longdescription lang="en"> |
43 |
+ A fast and densely stored hashmap and hashset based on robin-hood |
44 |
+ backward shift deletion. |
45 |
+ The classes ankerl::unordered_dense::map and |
46 |
+ ankerl::unordered_dense::set are (almost) drop-in replacements of |
47 |
+ std::unordered_map and std::unordered_set. While they don't have as |
48 |
+ strong iterator / reference stability guaranties, they are typically |
49 |
+ much faster. |
50 |
+ </longdescription> |
51 |
+</pkgmetadata> |
52 |
|
53 |
diff --git a/dev-libs/unordered_dense/unordered_dense-2.0.0.ebuild b/dev-libs/unordered_dense/unordered_dense-2.0.0.ebuild |
54 |
new file mode 100644 |
55 |
index 000000000..05a399fc4 |
56 |
--- /dev/null |
57 |
+++ b/dev-libs/unordered_dense/unordered_dense-2.0.0.ebuild |
58 |
@@ -0,0 +1,37 @@ |
59 |
+# Copyright 1999-2022 Gentoo Authors |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+ |
62 |
+EAPI="8" |
63 |
+ |
64 |
+inherit cmake |
65 |
+ |
66 |
+DESCRIPTION="A fast and densely stored hashmap and hashset" |
67 |
+HOMEPAGE="https://github.com/martinus/unordered_dense" |
68 |
+ |
69 |
+if [[ "${PV}" == "9999" ]] ; then |
70 |
+ inherit git-r3 |
71 |
+ EGIT_REPO_URI="https://github.com/martinus/${PN}.git" |
72 |
+else |
73 |
+ SRC_URI="https://github.com/martinus/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
74 |
+ KEYWORDS="~amd64 ~arm64 ~riscv ~x86" |
75 |
+ S="${WORKDIR}/${P}" |
76 |
+fi |
77 |
+ |
78 |
+LICENSE="MIT" |
79 |
+SLOT="0" |
80 |
+IUSE="test" |
81 |
+RESTRICT="!test? ( test )" |
82 |
+ |
83 |
+RDEPEND="" |
84 |
+ |
85 |
+DEPEND=" |
86 |
+ ${RDEPEND} |
87 |
+" |
88 |
+ |
89 |
+src_configure() { |
90 |
+ local mycmakeargs=( |
91 |
+ -D CMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)" |
92 |
+ -D BUILD_SHARED_LIBS=ON |
93 |
+ ) |
94 |
+ cmake_src_configure |
95 |
+} |
96 |
|
97 |
diff --git a/dev-libs/unordered_dense/unordered_dense-9999.ebuild b/dev-libs/unordered_dense/unordered_dense-9999.ebuild |
98 |
new file mode 100644 |
99 |
index 000000000..05a399fc4 |
100 |
--- /dev/null |
101 |
+++ b/dev-libs/unordered_dense/unordered_dense-9999.ebuild |
102 |
@@ -0,0 +1,37 @@ |
103 |
+# Copyright 1999-2022 Gentoo Authors |
104 |
+# Distributed under the terms of the GNU General Public License v2 |
105 |
+ |
106 |
+EAPI="8" |
107 |
+ |
108 |
+inherit cmake |
109 |
+ |
110 |
+DESCRIPTION="A fast and densely stored hashmap and hashset" |
111 |
+HOMEPAGE="https://github.com/martinus/unordered_dense" |
112 |
+ |
113 |
+if [[ "${PV}" == "9999" ]] ; then |
114 |
+ inherit git-r3 |
115 |
+ EGIT_REPO_URI="https://github.com/martinus/${PN}.git" |
116 |
+else |
117 |
+ SRC_URI="https://github.com/martinus/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
118 |
+ KEYWORDS="~amd64 ~arm64 ~riscv ~x86" |
119 |
+ S="${WORKDIR}/${P}" |
120 |
+fi |
121 |
+ |
122 |
+LICENSE="MIT" |
123 |
+SLOT="0" |
124 |
+IUSE="test" |
125 |
+RESTRICT="!test? ( test )" |
126 |
+ |
127 |
+RDEPEND="" |
128 |
+ |
129 |
+DEPEND=" |
130 |
+ ${RDEPEND} |
131 |
+" |
132 |
+ |
133 |
+src_configure() { |
134 |
+ local mycmakeargs=( |
135 |
+ -D CMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)" |
136 |
+ -D BUILD_SHARED_LIBS=ON |
137 |
+ ) |
138 |
+ cmake_src_configure |
139 |
+} |