summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2002-07-04 07:52:58 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2002-07-04 07:52:58 +0000
commit90baf3040e5a1dd328efc4fe286ee1b077ceb938 (patch)
tree5f27ebf5b521ccb4b51c34e5e257a1bbb56ee5b3 /math
parento Update to 0.12 (diff)
Add diehard 0.1, Marsaglia's Diehard Battery of Tests of Randomness.
Notes
Notes: svn path=/head/; revision=62415
Diffstat (limited to 'math')
-rw-r--r--math/Makefile1
-rw-r--r--math/diehard/Makefile40
-rw-r--r--math/diehard/distinfo1
-rw-r--r--math/diehard/pkg-comment1
-rw-r--r--math/diehard/pkg-descr7
-rw-r--r--math/diehard/pkg-plist6
6 files changed, 56 insertions, 0 deletions
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 <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 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%%