Add diehard 0.1, Marsaglia's Diehard Battery of Tests of Randomness.

This commit is contained in:
Sergey Skvortsov 2002-07-04 07:52:58 +00:00
parent 6d80918d43
commit 90baf3040e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62415
6 changed files with 56 additions and 0 deletions

View file

@ -21,6 +21,7 @@
SUBDIR += concorde
SUBDIR += cxsc
SUBDIR += dcdflib
SUBDIR += diehard
SUBDIR += djbfft
SUBDIR += eispack
SUBDIR += eukleides

40
math/diehard/Makefile Normal file
View file

@ -0,0 +1,40 @@
# New ports collection makefile for: diehard
# Date created: 04 Jule 2002
# Whom: Sergey Skvortsov <skv@protey.ru>
#
# $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 <bsd.port.mk>

1
math/diehard/distinfo Normal file
View file

@ -0,0 +1 @@
MD5 (die.c.tar.gz) = 854ea157c0ff73dd0d58928c834b6122

1
math/diehard/pkg-comment Normal file
View file

@ -0,0 +1 @@
Marsaglia's Diehard Battery of Tests of Randomness

7
math/diehard/pkg-descr Normal file
View file

@ -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

6
math/diehard/pkg-plist Normal file
View file

@ -0,0 +1,6 @@
bin/diehard
%%PORTDOCS%%%%DOCSDIR%%/NOTES
%%PORTDOCS%%%%DOCSDIR%%/readme
%%PORTDOCS%%@dirrm %%DOCSDIR%%
%%DATADIR%%/operm5.cov
@dirrm %%DATADIR%%