mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -04:00
dev-libs/unordered_dense: new package, add 2.0.0, 9999
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
1
dev-libs/unordered_dense/Manifest
Normal file
1
dev-libs/unordered_dense/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST unordered_dense-2.0.0.tar.gz 307275 BLAKE2B d579740134a8e67e8487c1d6779bc5ea2bf0b3ab70ce60f3b8b68d1fdabc9b45a099e49500b417f21a3fc4c88d2aadbf96afa7b56a8d7d581a0d3f3f6badf61b SHA512 8c7d582abd2142310b50d835ce3cb9a0731a6f7bc6419d01742860cbcb0ade31aad393c93523b8ff82ce456f6cbab5a3d93f91f95c8eb5f7f960fa4793f57d8d
|
||||
20
dev-libs/unordered_dense/metadata.xml
Normal file
20
dev-libs/unordered_dense/metadata.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>vowstar@gmail.com</email>
|
||||
<name>Huang Rui</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">martinus/unordered_dense</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">
|
||||
A fast and densely stored hashmap and hashset based on robin-hood
|
||||
backward shift deletion.
|
||||
The classes ankerl::unordered_dense::map and
|
||||
ankerl::unordered_dense::set are (almost) drop-in replacements of
|
||||
std::unordered_map and std::unordered_set. While they don't have as
|
||||
strong iterator / reference stability guaranties, they are typically
|
||||
much faster.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
37
dev-libs/unordered_dense/unordered_dense-2.0.0.ebuild
Normal file
37
dev-libs/unordered_dense/unordered_dense-2.0.0.ebuild
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="A fast and densely stored hashmap and hashset"
|
||||
HOMEPAGE="https://github.com/martinus/unordered_dense"
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/martinus/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/martinus/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||
S="${WORKDIR}/${P}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND=""
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-D CMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
||||
-D BUILD_SHARED_LIBS=ON
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
37
dev-libs/unordered_dense/unordered_dense-9999.ebuild
Normal file
37
dev-libs/unordered_dense/unordered_dense-9999.ebuild
Normal file
@@ -0,0 +1,37 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="A fast and densely stored hashmap and hashset"
|
||||
HOMEPAGE="https://github.com/martinus/unordered_dense"
|
||||
|
||||
if [[ "${PV}" == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/martinus/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/martinus/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||
S="${WORKDIR}/${P}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND=""
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-D CMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
||||
-D BUILD_SHARED_LIBS=ON
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user