app-crypt/dieharder - 3.31.1-r5 (gentoo)

Search

Install

Install this version:

emerge -a =app-crypt/dieharder-3.31.1-r5

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-crypt/dieharder-3.31.1-r5

Or alternatively:

emerge --autounmask-write -a =app-crypt/dieharder-3.31.1-r5

Package Information

Description:
An advanced suite for testing the randomness of RNGs
Homepage:
https://www.phy.duke.edu/~rgb/General/dieharder.php
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
3.31.1-r5 9 ~alpha ~amd64 ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=9

inherit autotools flag-o-matic

DESCRIPTION="An advanced suite for testing the randomness of RNGs"
HOMEPAGE="https://www.phy.duke.edu/~rgb/General/dieharder.php"
SRC_URI="https://www.phy.duke.edu/~rgb/General/${PN}/${P}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="doc"
RESTRICT="test" # Way too long

RDEPEND="sci-libs/gsl:="
DEPEND="${RDEPEND}"
BDEPEND=" doc? ( dev-tex/latex2html )"

PATCHES=(
	"${FILESDIR}"/${P}-build.patch
	"${FILESDIR}"/${P}-urandom-64bit.patch
	"${FILESDIR}"/${P}-cross-compile.patch
	"${FILESDIR}"/${P}-fix_shuffle.patch
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	append-flags -fcommon
	default
}

src_compile() {
	default
	use doc && emake -C manual
}

src_install() {
	if use doc; then
		DOCS=( ChangeLog manual/dieharder.pdf manual/dieharder.ps )
		HTML_DOCS=( dieharder.html )
	fi

	default

	docinto dieharder
	dodoc dieharder/{NOTES,README}
	docinto libdieharder
	dodoc libdieharder/{NOTES,README}

	find "${ED}" -name '*.la' -delete || die
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-crypt/dieharder | euse -E <flag> -p app-crypt/dieharder | euse -D <flag> -p app-crypt/dieharder

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

sci-libs/gsl:=

RDEPEND

sci-libs/gsl:=

BDEPEND

 doc? ( dev-tex/latex2html )