git: 4b63e8458145 - main - devel/robin-hood-hashing: New port: Fast & memory efficient hashtable based on robin hood hashing for C++

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 14 Aug 2022 23:00:22 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4b63e8458145ec21f5d10defb35a0fa4caac2873

commit 4b63e8458145ec21f5d10defb35a0fa4caac2873
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-14 22:59:42 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-14 23:00:18 +0000

    devel/robin-hood-hashing: New port: Fast & memory efficient hashtable based on robin hood hashing for C++
---
 devel/Makefile                     |  1 +
 devel/robin-hood-hashing/Makefile  | 26 ++++++++++++++++++++++++++
 devel/robin-hood-hashing/distinfo  |  3 +++
 devel/robin-hood-hashing/pkg-descr |  6 ++++++
 4 files changed, 36 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index a7197492b4a6..f1c414cb25d9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5656,6 +5656,7 @@
     SUBDIR += rkcommon
     SUBDIR += rlog
     SUBDIR += rlwrap
+    SUBDIR += robin-hood-hashing
     SUBDIR += robin-map
     SUBDIR += roboctl
     SUBDIR += robodoc
diff --git a/devel/robin-hood-hashing/Makefile b/devel/robin-hood-hashing/Makefile
new file mode 100644
index 000000000000..0b33165653a4
--- /dev/null
+++ b/devel/robin-hood-hashing/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	robin-hood-hashing
+DISTVERSION=	3.11.5
+CATEGORIES=	devel python
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Fast & memory efficient hashtable based on robin hood hashing for C++
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cmake compiler:c++14-lang
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	martinus
+
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+PLIST_FILES=	include/robin_hood.h
+
+do-install: # see https://github.com/martinus/robin-hood-hashing/issues/162
+	${INSTALL_DATA} ${WRKSRC}/src/include/robin_hood.h ${STAGEDIR}${PREFIX}/include
+
+# tests fail to build, see https://github.com/martinus/robin-hood-hashing/issues/161
+
+.include <bsd.port.mk>
diff --git a/devel/robin-hood-hashing/distinfo b/devel/robin-hood-hashing/distinfo
new file mode 100644
index 000000000000..bad533177f4a
--- /dev/null
+++ b/devel/robin-hood-hashing/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660515352
+SHA256 (martinus-robin-hood-hashing-3.11.5_GH0.tar.gz) = 3693e44dda569e9a8b87ce8263f7477b23af448a3c3600c8ab9004fe79c20ad0
+SIZE (martinus-robin-hood-hashing-3.11.5_GH0.tar.gz) = 177134
diff --git a/devel/robin-hood-hashing/pkg-descr b/devel/robin-hood-hashing/pkg-descr
new file mode 100644
index 000000000000..c958c3b3b269
--- /dev/null
+++ b/devel/robin-hood-hashing/pkg-descr
@@ -0,0 +1,6 @@
+robin-hood-hashing provides classes robin_hood::unordered_map and
+robin_hood::unordered_set. It is a platform independent replacement for
+std::unordered_map and std::unordered_set which is both faster and more memory
+efficient for real-world use cases.
+
+WWW: https://github.com/martinus/robin-hood-hashing