summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/testu01/package.py
blob: 4c5a32aa4f67243749b64c1eb2255398920fcf9c (plain) (blame)
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
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from os import chmod

from spack.package import *


class Testu01(AutotoolsPackage):
    """TestU01 is a software library, implemented in the ANSI C language, and
    offering a collection of utilities for the empirical statistical testing of
    uniform random number generators."""

    homepage = "http://simul.iro.umontreal.ca/testu01/tu01.html"
    git = "https://github.com/umontreal-simul/TestU01-2009/"

    maintainers = ['sethrj']

    version('1.2.3', sha256='bc1d1dd2aea7ed3b3d28eaad2c8ee55913f11ce67aec8fe4f643c1c0d2ed1cac',
            url='http://simul.iro.umontreal.ca/testu01/TestU01.zip')

    @run_before('configure')
    def fix_permissions(self):
        if not self.force_autoreconf:
            chmod(join_path(self.stage.source_path, "configure"), 0o755)