git: 07d9aad8767e - main - devel/readerwriterqueue: New port: Fast single-producer, single-consumer lock-free queue for C++

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 19 Oct 2022 01:21:38 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=07d9aad8767e1ef51bc0a0ae038387d3995f49fa

commit 07d9aad8767e1ef51bc0a0ae038387d3995f49fa
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-10-19 01:20:55 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-10-19 01:21:33 +0000

    devel/readerwriterqueue: New port: Fast single-producer, single-consumer lock-free queue for C++
---
 devel/Makefile                    |  1 +
 devel/readerwriterqueue/Makefile  | 26 ++++++++++++++++++++++++++
 devel/readerwriterqueue/distinfo  |  3 +++
 devel/readerwriterqueue/pkg-descr |  5 +++++
 4 files changed, 35 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index d72eb230e350..64f86b7a9775 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5705,6 +5705,7 @@
     SUBDIR += rcs57
     SUBDIR += re2
     SUBDIR += re2c
+    SUBDIR += readerwriterqueue
     SUBDIR += readline
     SUBDIR += rebar
     SUBDIR += rebar3
diff --git a/devel/readerwriterqueue/Makefile b/devel/readerwriterqueue/Makefile
new file mode 100644
index 000000000000..d06bd4ca2a94
--- /dev/null
+++ b/devel/readerwriterqueue/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	readerwriterqueue
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.0.6
+CATEGORIES=	devel
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Fast single-producer, single-consumer lock-free queue for C++
+WWW=		https://github.com/cameron314/readerwriterqueue
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+USES=		cmake
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	cameron314
+
+NO_ARCH=	yes
+
+PLIST_FILES=	include/readerwriterqueue/LICENSE.md \
+		include/readerwriterqueue/atomicops.h \
+		include/readerwriterqueue/readerwritercircularbuffer.h \
+		include/readerwriterqueue/readerwriterqueue.h
+
+.include <bsd.port.mk>
diff --git a/devel/readerwriterqueue/distinfo b/devel/readerwriterqueue/distinfo
new file mode 100644
index 000000000000..2642314b20b5
--- /dev/null
+++ b/devel/readerwriterqueue/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1666141537
+SHA256 (cameron314-readerwriterqueue-v1.0.6_GH0.tar.gz) = fc68f55bbd49a8b646462695e1777fb8f2c0b4f342d5e6574135211312ba56c1
+SIZE (cameron314-readerwriterqueue-v1.0.6_GH0.tar.gz) = 41219
diff --git a/devel/readerwriterqueue/pkg-descr b/devel/readerwriterqueue/pkg-descr
new file mode 100644
index 000000000000..c2bf2f89431c
--- /dev/null
+++ b/devel/readerwriterqueue/pkg-descr
@@ -0,0 +1,5 @@
+readerwriterqueue is a lock-free queue for C++.
+
+It only supports a two-thread use case (one consuming, and one producing). The
+threads can't switch roles, though you could use this queue completely from a
+single thread if you wish.