summaryrefslogtreecommitdiff
blob: 668d315305224b4c57ab3cedffa766e49d37a0e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

WANT_AUTOCONF="2.5"
inherit autotools eutils

DESCRIPTION="An advanced suite for testing the randomness of RNG's"

HOMEPAGE="http://www.phy.duke.edu/~rgb/General/dieharder.php"
SRC_URI="http://www.phy.duke.edu/~rgb/General/${PN}/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="sci-libs/gsl"
RDEPEND="${DEPEND}"

src_prepare() {
	eautoreconf
}

src_compile() {
	emake || die
}

src_install() {
	emake DESTDIR="${D}" install || die
	dodoc NEWS README* NOTES || die
	docinto "dieharder"
	dodoc dieharder/README dieharder/NOTES || die
	docinto "libdieharder"
	dodoc libdieharder/README libdieharder/NOTES || die
}