summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-sitmo/package.py
blob: eab70f5ac40bb741d961643aaeb0e546f5dc7ac4 (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-2019 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 spack import *


class RSitmo(RPackage):
    """Provided within are two high quality and fast PPRNGs that may be used in
    an 'OpenMP' parallel environment. In addition, there is a generator for one
    dimensional low-discrepancy sequence. The objective of this library to
    consolidate the distribution of the 'sitmo' (C++98 & C++11), 'threefry' and
    'vandercorput' (C++11-only) engines on CRAN by enabling others to link to
    the header files inside of 'sitmo' instead of including a copy of each
    engine within their individual package. Lastly, the package contains
    example implementations using the 'sitmo' package and three accompanying
    vignette that provide additional information."""

    homepage = "https://github.com/coatless/sitmo"
    url      = "https://cloud.r-project.org/src/contrib/sitmo_2.0.1.tar.gz"
    list_url = "https://cloud.r-project.org/src/contrib/Archive/sitmo"

    version('2.0.1', sha256='0c90d357af334d5c99c8956739dc12623ddd87dda5efa59f4a43f7393c87ed2a')

    depends_on('r@3.2.0:', type=('build', 'run'))
    depends_on('r-rcpp@0.12.13:', type=('build', 'run'))