git: 6c2798989f0e - main - devel/random123: New port: Counter-based random number generators for C, C++ and CUDA

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 27 Nov 2022 10:12:23 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6c2798989f0eb8c5d62fdb47b891ce41ee38499d

commit 6c2798989f0eb8c5d62fdb47b891ce41ee38499d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-27 07:47:32 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-27 10:12:20 +0000

    devel/random123: New port: Counter-based random number generators for C, C++ and CUDA
---
 devel/Makefile                          |  1 +
 devel/random123/Makefile                | 28 ++++++++++++++++++++++++++++
 devel/random123/distinfo                |  3 +++
 devel/random123/files/patch-GNUmakefile | 11 +++++++++++
 devel/random123/pkg-descr               |  9 +++++++++
 devel/random123/pkg-plist               | 27 +++++++++++++++++++++++++++
 6 files changed, 79 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 7342758933f1..23aa4a4d484d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5710,6 +5710,7 @@
     SUBDIR += radian
     SUBDIR += ragel
     SUBDIR += raknet
+    SUBDIR += random123
     SUBDIR += rang
     SUBDIR += range-v3
     SUBDIR += rapidcheck
diff --git a/devel/random123/Makefile b/devel/random123/Makefile
new file mode 100644
index 000000000000..fc752fcbf8df
--- /dev/null
+++ b/devel/random123/Makefile
@@ -0,0 +1,28 @@
+PORTNAME=	random123
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.14.0-5
+DISTVERSIONSUFFIX=	-g9545ff6
+CATEGORIES=	devel
+MASTER_SITES=	https://github.com/GlobalArrays/ga/releases/download/v${DISTVERSION}/
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Counter-based random number generators for C, C++ and CUDA
+WWW=		https://github.com/DEShawResearch/random123
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		gmake
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	DEShawResearch
+
+MAKEFILE=	GNUmakefile
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+INSTALL_TARGET=	install-include
+TEST_TARGET=	check
+
+.include <bsd.port.mk>
diff --git a/devel/random123/distinfo b/devel/random123/distinfo
new file mode 100644
index 000000000000..d843f9523384
--- /dev/null
+++ b/devel/random123/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1669533688
+SHA256 (DEShawResearch-random123-v1.14.0-5-g9545ff6_GH0.tar.gz) = ffb858bdbd0622bfb355fe87c4c09f15607536ac6eb4e7cab2868b501a5956e3
+SIZE (DEShawResearch-random123-v1.14.0-5-g9545ff6_GH0.tar.gz) = 318644
diff --git a/devel/random123/files/patch-GNUmakefile b/devel/random123/files/patch-GNUmakefile
new file mode 100644
index 000000000000..93879c7c3273
--- /dev/null
+++ b/devel/random123/files/patch-GNUmakefile
@@ -0,0 +1,11 @@
+--- GNUmakefile.orig	2022-01-17 21:45:51 UTC
++++ GNUmakefile
+@@ -24,7 +24,7 @@ install: install-html install-include install-examples
+ # recursively copy include/Random123 to $(includedir)
+ install-include:
+ 	mkdir -p $(DESTDIR)$(includedir)
+-	cp -dr include/Random123 $(DESTDIR)$(includedir)
++	cp -r include/Random123 $(DESTDIR)$(includedir)
+ .PHONY: install-include
+ 
+ # docs/main.md is the same as README.md, but it has a @mainpage
diff --git a/devel/random123/pkg-descr b/devel/random123/pkg-descr
new file mode 100644
index 000000000000..2623347c1758
--- /dev/null
+++ b/devel/random123/pkg-descr
@@ -0,0 +1,9 @@
+The Random123 library is a collection of counter-based random number generators
+( "CBRNGs") for CPUs (C and C++) and GPUs (CUDA and OpenCL), as described in
+Parallel Random Numbers: As Easy as 1, 2, 3, Salmon, Moraes, Dror & Shaw, SC11,
+Seattle, Washington, USA, 2011, ACM . They are intended for use in statistical
+applications and Monte Carlo simulation and have passed all of the rigorous
+SmallCrush, Crush and BigCrush tests in the extensive TestU01 suite of
+statistical tests for random number generators. They are not suitable for use in
+cryptography or security even though they are constructed using principles drawn
+from cryptography.
diff --git a/devel/random123/pkg-plist b/devel/random123/pkg-plist
new file mode 100644
index 000000000000..e052d99e444f
--- /dev/null
+++ b/devel/random123/pkg-plist
@@ -0,0 +1,27 @@
+include/Random123/MicroURNG.hpp
+include/Random123/ReinterpretCtr.hpp
+include/Random123/aes.h
+include/Random123/array.h
+include/Random123/ars.h
+include/Random123/boxmuller.hpp
+include/Random123/conventional/Engine.hpp
+include/Random123/conventional/gsl_cbrng.h
+include/Random123/features/clangfeatures.h
+include/Random123/features/compilerfeatures.h
+include/Random123/features/fujitsufeatures.h
+include/Random123/features/gccfeatures.h
+include/Random123/features/iccfeatures.h
+include/Random123/features/metalfeatures.h
+include/Random123/features/msvcfeatures.h
+include/Random123/features/nvccfeatures.h
+include/Random123/features/open64features.h
+include/Random123/features/openclfeatures.h
+include/Random123/features/pgccfeatures.h
+include/Random123/features/sse.h
+include/Random123/features/sunprofeatures.h
+include/Random123/features/xlcfeatures.h
+include/Random123/gsl_microrng.h
+include/Random123/philox.h
+include/Random123/threefry.h
+include/Random123/u01fixedpt.h
+include/Random123/uniform.hpp