summaryrefslogtreecommitdiff
path: root/app-crypt/dieharder
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-crypt/dieharder
reinit the tree, so we can have metadata
Diffstat (limited to 'app-crypt/dieharder')
-rw-r--r--app-crypt/dieharder/Manifest6
-rw-r--r--app-crypt/dieharder/dieharder-3.31.1-r1.ebuild50
-rw-r--r--app-crypt/dieharder/files/dieharder-3.31.1-build.patch27
-rw-r--r--app-crypt/dieharder/metadata.xml8
4 files changed, 91 insertions, 0 deletions
diff --git a/app-crypt/dieharder/Manifest b/app-crypt/dieharder/Manifest
new file mode 100644
index 000000000000..f78e8c6f4079
--- /dev/null
+++ b/app-crypt/dieharder/Manifest
@@ -0,0 +1,6 @@
+AUX dieharder-3.31.1-build.patch 623 SHA256 fe93e67a6ee62f9653949552f7fa44292e8c888656df97896296ff97b9198064 SHA512 8d98efdcbfd4cea06d1cae1a1fbea1305e366c030c99b3abb944d1a47543e9b592304f60cd8dbfe9b3fa77ec9ee61c2537bf2390f072ced7d36ad7eb9550e4ea WHIRLPOOL 6f6d6bfaa5402df95bd4334d0de7871ff292ef93abcc3f75a0efe1b041e4ef34886385274c3936b2b8142cd46f6af6831117b75e2eb435942a9cb95f191eacac
+DIST dieharder-3.31.1.tgz 1149780 SHA256 6cff0ff8394c553549ac7433359ccfc955fb26794260314620dfa5e4cd4b727f SHA512 e01ed4266b4fe5d5fadde3c92c30e430d0ca5f7fedd26b26ed2ab98b7602aa9c35bb5c8fd9314ef2f5235b5087645ab13e5e6550156e26643baa5aeb77088dc5 WHIRLPOOL eb10fffbe839b2448b1955841dd4c3dee45f21ab89eb5107e82c3fef8706f7386ee6b6c21aa947c2cbe1f16075c7882975c9eff5fb17876799c15ccce9b5eca1
+EBUILD dieharder-3.31.1-r1.ebuild 919 SHA256 a4cef92a8aab20aea1569dbbaeefd974c1ee318daf1b6d30df345c6b8f9bbec8 SHA512 90f366343406cb52924825d09c6057d321c447135193995167ca01cc83a1adf0f3efb9ed6d0ef92c6c5d7999ee9bae8dec2ff29e97651c707ff29901faf2842d WHIRLPOOL 5063e0fcdd58ab9b2b2109d48708aacec8de7c2b4913c82879387553b0f4770f0c66490c35a804170d46862415c3262bd1f03542f23e45474630eb6e088925b5
+MISC ChangeLog 2825 SHA256 13aabd85b1f932a36f114280ec7ae7fece0f4d320323b53a105cc50744d755e8 SHA512 5da51e8f7c0c13e5edd881e5a30c3a8acf9536c2b89ab635a440dc215d26d54259bb3a5f3076103d2246ed98c309378325622fc35dff21db00788bc0f0cf465b WHIRLPOOL 2e2be3fc84cbbf111e9101f70f75385001382f2c9de8f27da25b023ffd9506b75752869bd5dd30d4115936c977f8e77715e8cca1777cd4f67ddc706a6d0e3dfe
+MISC ChangeLog-2015 982 SHA256 bbd04fe9d44bfde253b677bf1417315a6c7315f0635769e0576ee84785378c1c SHA512 d44a7fd0b8406e69f8c958a9dce056de565e2a63cf9b6b854b65d924deb0abb68631c277faa3e96e2060a3aed69d3eba68ba0b07c5283de0d8aaae8d8dc4900c WHIRLPOOL 92be7392081bc2b09e568133dbab1c83a434d50c088cde84e6081089632aff8640bdf22644bae2cfde98676724828cfd144c32d85e1563cad61ec43206187056
+MISC metadata.xml 236 SHA256 dd25b46c95b0c63da84b7ff5778479e31449a385df066e9ee14bf0d7d176f42f SHA512 5f6cd6a85527534d5de7118de5af212ee3044c8c5530a7f7087a28074a2d4ab7be1728325bd985adc063dc795d3cf2b1c4e58a4c4c4ec02d739bd4bbc544ef08 WHIRLPOOL b15a2dfb001c41c8de2895842148b2531b74949e89e93ff8c366519c35792996e344918eaf9144fb081fc240796e47890be356d2339bea60b1e1d41830447d31
diff --git a/app-crypt/dieharder/dieharder-3.31.1-r1.ebuild b/app-crypt/dieharder/dieharder-3.31.1-r1.ebuild
new file mode 100644
index 000000000000..68fb80d3fb6d
--- /dev/null
+++ b/app-crypt/dieharder/dieharder-3.31.1-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc"
+
+RDEPEND="sci-libs/gsl"
+DEPEND="${RDEPEND}
+ doc? ( dev-tex/latex2html )"
+
+DOCS=(
+ NOTES
+)
+HTML_DOCS=()
+
+PATCHES=(
+ "${FILESDIR}/${P}-build.patch"
+)
+
+pkg_setup() {
+ use doc && DOCS+=(
+ ChangeLog
+ manual/dieharder.pdf manual/dieharder.ps
+ )
+ use doc && HTML_DOCS+=(
+ dieharder.html
+ )
+}
+
+src_compile() {
+ emake -j1
+ use doc && emake -C manual
+}
+
+src_install() {
+ default
+
+ docinto "dieharder"
+ dodoc dieharder/README dieharder/NOTES
+ docinto "libdieharder"
+ dodoc libdieharder/README libdieharder/NOTES
+}
diff --git a/app-crypt/dieharder/files/dieharder-3.31.1-build.patch b/app-crypt/dieharder/files/dieharder-3.31.1-build.patch
new file mode 100644
index 000000000000..4cbd5021c77c
--- /dev/null
+++ b/app-crypt/dieharder/files/dieharder-3.31.1-build.patch
@@ -0,0 +1,27 @@
+diff --git a/include/dieharder/libdieharder.h b/include/dieharder/libdieharder.h
+index 2138ebf..f6d471b 100644
+--- a/include/dieharder/libdieharder.h
++++ b/include/dieharder/libdieharder.h
+@@ -6,6 +6,8 @@
+
+ #include "copyright.h"
+
++#define _GNU_SOURCE
++
+ /* To enable large file support */
+ #define _FILE_OFFSET_BITS 64
+
+@@ -16,13 +18,11 @@
+ #include <sys/time.h>
+
+ /* This turns on uint macro in c99 */
+-#define __USE_MISC 1
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
+
+ /* This turns on M_PI in math.h */
+-#define __USE_BSD 1
+ #include <math.h>
+ #include <limits.h>
+ #include <gsl/gsl_rng.h>
diff --git a/app-crypt/dieharder/metadata.xml b/app-crypt/dieharder/metadata.xml
new file mode 100644
index 000000000000..f1c3d59fb213
--- /dev/null
+++ b/app-crypt/dieharder/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>crypto@gentoo.org</email>
+ <name>Crypto</name>
+</maintainer>
+</pkgmetadata>