diff options
author | skv <skv@FreeBSD.org> | 2002-07-04 15:52:58 +0800 |
---|---|---|
committer | skv <skv@FreeBSD.org> | 2002-07-04 15:52:58 +0800 |
commit | 325a985e34a002d9b695dd43442bff7cd8e5794a (patch) | |
tree | 6f8ebb27cff3b6bb58562ea8f63e5df97c93f56e /math | |
parent | f3f949abccee4a458be5a54256685bcbc4e55888 (diff) | |
download | freebsd-ports-graphics-325a985e34a002d9b695dd43442bff7cd8e5794a.tar.gz freebsd-ports-graphics-325a985e34a002d9b695dd43442bff7cd8e5794a.tar.zst freebsd-ports-graphics-325a985e34a002d9b695dd43442bff7cd8e5794a.zip |
Add diehard 0.1, Marsaglia's Diehard Battery of Tests of Randomness.
Diffstat (limited to 'math')
-rw-r--r-- | math/Makefile | 1 | ||||
-rw-r--r-- | math/diehard/Makefile | 40 | ||||
-rw-r--r-- | math/diehard/distinfo | 1 | ||||
-rw-r--r-- | math/diehard/pkg-comment | 1 | ||||
-rw-r--r-- | math/diehard/pkg-descr | 7 | ||||
-rw-r--r-- | math/diehard/pkg-plist | 6 |
6 files changed, 56 insertions, 0 deletions
diff --git a/math/Makefile b/math/Makefile index 87668a26a0c..38e325bbb9a 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 00000000000..2f20ce37ec1 --- /dev/null +++ b/math/diehard/Makefile @@ -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> diff --git a/math/diehard/distinfo b/math/diehard/distinfo new file mode 100644 index 00000000000..5a42fea3243 --- /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 00000000000..3d6592b8a1a --- /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 00000000000..b3d9ff792ff --- /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 00000000000..6b25751129d --- /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%% |