svn commit: r567859 - in head/devel: . pcg-cpp pcg-cpp/files

Yuri Victorovich yuri at FreeBSD.org
Mon Mar 8 17:50:20 UTC 2021


Author: yuri
Date: Mon Mar  8 17:50:18 2021
New Revision: 567859
URL: https://svnweb.freebsd.org/changeset/ports/567859

Log:
  New port: devel/pcg-cpp: PCG Random Number Generation, C++ Edition

Added:
  head/devel/pcg-cpp/
  head/devel/pcg-cpp/Makefile   (contents, props changed)
  head/devel/pcg-cpp/distinfo   (contents, props changed)
  head/devel/pcg-cpp/files/
  head/devel/pcg-cpp/files/patch-Makefile   (contents, props changed)
  head/devel/pcg-cpp/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Mar  8 17:34:26 2021	(r567858)
+++ head/devel/Makefile	Mon Mar  8 17:50:18 2021	(r567859)
@@ -3706,6 +3706,7 @@
     SUBDIR += pasm
     SUBDIR += patch
     SUBDIR += pcc-libs
+    SUBDIR += pcg-cpp
     SUBDIR += pcl
     SUBDIR += pcre
     SUBDIR += pcre++

Added: head/devel/pcg-cpp/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pcg-cpp/Makefile	Mon Mar  8 17:50:18 2021	(r567859)
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+PORTNAME=	pcg-cpp
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.98.1-59
+DISTVERSIONSUFFIX=	-g5b5cac8
+CATEGORIES=	devel
+
+MAINTAINER=	yuri at FreeBSD.org
+COMMENT=	PCG Random Number Generation, C++ Edition
+
+LICENSE=	APACHE20 MIT
+LICENSE_COMB=	dual
+LICENSE_FILE_APACHE20=	${WRKSRC}/LICENSE-APACHE.txt
+LICENSE_FILE_MIT=	${WRKSRC}/LICENSE-MIT.txt
+
+USES=		compiler:c++11-lang
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	imneme
+
+NO_BUILD=	yes
+NO_ARCH=	yes
+
+PLIST_FILES=	include/pcg_extras.hpp \
+		include/pcg_random.hpp \
+		include/pcg_uint128.hpp
+
+do-test:
+	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} CXXFLAGS=-I${WRKSRC}/include ${MAKE_CMD} ${MAKE_ARGS} test
+
+.include <bsd.port.mk>

Added: head/devel/pcg-cpp/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pcg-cpp/distinfo	Mon Mar  8 17:50:18 2021	(r567859)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1615225111
+SHA256 (imneme-pcg-cpp-v0.98.1-59-g5b5cac8_GH0.tar.gz) = 35d2efafa991927098d94b8765e977da4b7cbe1573725feee640015ba711ac5b
+SIZE (imneme-pcg-cpp-v0.98.1-59-g5b5cac8_GH0.tar.gz) = 77523

Added: head/devel/pcg-cpp/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pcg-cpp/files/patch-Makefile	Mon Mar  8 17:50:18 2021	(r567859)
@@ -0,0 +1,11 @@
+--- Makefile.orig	2021-03-08 17:39:48 UTC
++++ Makefile
+@@ -25,7 +25,7 @@ all:
+ 
+ PREFIX = /usr/local
+ 
+-install: all
++install:
+ 	install -d $(DESTDIR)$(PREFIX)/include
+ 	install -m 0644 include/*.hpp $(DESTDIR)$(PREFIX)/include
+ 

Added: head/devel/pcg-cpp/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/pcg-cpp/pkg-descr	Mon Mar  8 17:50:18 2021	(r567859)
@@ -0,0 +1,13 @@
+This code provides an implementation of the PCG family of random number
+generators, which are fast, statistically excellent, and offer a number of
+useful features.
+
+There are two kinds of generator, normal generators and extended generators.
+Extended generators provide k dimensional equidistribution and can perform party
+tricks, but generally speaking most people only need the normal generators.
+
+There are two ways to access the generators, using a convenience typedef or by
+using the underlying templates directly (similar to C++11's std::mt19937 typedef
+vs its std::mersenne_twister_engine template).
+
+WWW: https://github.com/imneme/pcg-cpp


More information about the svn-ports-head mailing list