From 90baf3040e5a1dd328efc4fe286ee1b077ceb938 Mon Sep 17 00:00:00 2001 From: Sergey Skvortsov Date: Thu, 4 Jul 2002 07:52:58 +0000 Subject: Add diehard 0.1, Marsaglia's Diehard Battery of Tests of Randomness. --- math/Makefile | 1 + math/diehard/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ math/diehard/distinfo | 1 + math/diehard/pkg-comment | 1 + math/diehard/pkg-descr | 7 +++++++ math/diehard/pkg-plist | 6 ++++++ 6 files changed, 56 insertions(+) create mode 100644 math/diehard/Makefile create mode 100644 math/diehard/distinfo create mode 100644 math/diehard/pkg-comment create mode 100644 math/diehard/pkg-descr create mode 100644 math/diehard/pkg-plist (limited to 'math') diff --git a/math/Makefile b/math/Makefile index 87668a26a0c6..38e325bbb9ae 100644 --- a/math/Makefile +++ b/math/Makefile @@ -21,6 +21,7 @@ SUBDIR += concorde SUBDIR += cxsc SUBDIR += dcdflib + SUBDIR += diehard SUBDIR += djbfft SUBDIR += eispack SUBDIR += eukleides diff --git a/math/diehard/Makefile b/math/diehard/Makefile new file mode 100644 index 000000000000..2f20ce37ec1e --- /dev/null +++ b/math/diehard/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: diehard +# Date created: 04 Jule 2002 +# Whom: Sergey Skvortsov +# +# $FreeBSD$ +# + +PORTNAME= diehard +PORTVERSION= 0.1 +CATEGORIES= math +MASTER_SITES= http://stat.fsu.edu/pub/diehard/ +DISTNAME= die.c + +MAINTAINER= skv@FreeBSD.org + +ALL_TARGET= diehard +USE_REINPLACE= YES +WRKSRC= ${WRKDIR}/${DISTNAME} +PLIST_SUB= DOCSDIR="share/doc/${PORTNAME}" DATADIR="share/${PORTNAME}" + +DOCSLIST= NOTES readme + +post-patch: + @${REINPLACE_CMD} -e 's|operm5\.cov|${DATADIR}/operm5.cov|g;' \ + ${WRKSRC}/cdoperm5.c + @${REINPLACE_CMD} -e 's|CC=gcc||g;' ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/diehard ${PREFIX}/bin + @${MKDIR} ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/operm5.cov ${DATADIR} + +post-install: +.ifndef(NOPORTDOCS) + @${ECHO_MSG} "===> Installing documentation for ${PKGNAME}" + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${DOCSLIST:S!^!${WRKSRC}/!} ${DOCSDIR} +.endif + +.include diff --git a/math/diehard/distinfo b/math/diehard/distinfo new file mode 100644 index 000000000000..5a42fea3243d --- /dev/null +++ b/math/diehard/distinfo @@ -0,0 +1 @@ +MD5 (die.c.tar.gz) = 854ea157c0ff73dd0d58928c834b6122 diff --git a/math/diehard/pkg-comment b/math/diehard/pkg-comment new file mode 100644 index 000000000000..3d6592b8a1a6 --- /dev/null +++ b/math/diehard/pkg-comment @@ -0,0 +1 @@ +Marsaglia's Diehard Battery of Tests of Randomness diff --git a/math/diehard/pkg-descr b/math/diehard/pkg-descr new file mode 100644 index 000000000000..b3d9ff792ff8 --- /dev/null +++ b/math/diehard/pkg-descr @@ -0,0 +1,7 @@ +Diehard is a battery of tests for random number generators developed by +Dr. George Marsaglia of Florida State University Department of +Statistics. Originally developed for testing pseudo-random generators, +Diehard has since become a de facto standard for testing RNGs. + +-- Sergey Skvortsov +skv@FreeBSD.org diff --git a/math/diehard/pkg-plist b/math/diehard/pkg-plist new file mode 100644 index 000000000000..6b25751129d7 --- /dev/null +++ b/math/diehard/pkg-plist @@ -0,0 +1,6 @@ +bin/diehard +%%PORTDOCS%%%%DOCSDIR%%/NOTES +%%PORTDOCS%%%%DOCSDIR%%/readme +%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%DATADIR%%/operm5.cov +@dirrm %%DATADIR%% -- cgit v1.2.3