# $Id: Portfile 50275 2009-04-28 18:33:01Z jmr@macports.org $

PortSystem 1.0

name			diehard
version			0.1
categories		math
platforms		darwin
maintainers		nomaintainer
description		Marsaglia's Diehard Battery of Tests of Randomness
long_description	${description}

homepage		http://stat.fsu.edu/pub/diehard/
master_sites	http://www.cs.hku.hk/~diehard/cdrom/ \
				http://stat.fsu.edu/pub/diehard/ freebsd
distname		die.c
checksums		md5 854ea157c0ff73dd0d58928c834b6122

use_configure	no

build.target
build.args	CC=${configure.cc}

destroot {
	xinstall -m 755 ${worksrcpath}/diehard ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/NOTES ${destroot}${prefix}/share/doc/${name}
}
