summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-rmpfr/package.py
blob: e0028a11d25f1076faec10cdcc10ba2ece714dca (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
28
29
30
31
32
33
34
# Copyright 2013-2021 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 RRmpfr(RPackage):
    """R MPFR - Multiple Precision Floating-Point Reliable

    Arithmetic (via S4 classes and methods) for arbitrary precision floating
    point numbers, including transcendental ("special") functions. To this end,
    Rmpfr interfaces to the LGPL'ed MPFR (Multiple Precision Floating-Point
    Reliable) Library which itself is based on the GMP (GNU Multiple Precision)
    Library."""

    homepage = "https://rmpfr.r-forge.r-project.org"
    url      = "https://cloud.r-project.org/src/contrib/Rmpfr_0.6-1.tar.gz"
    list_url = "https://cloud.r-project.org/src/contrib/Archive/Rmpfr"

    version('0.8-2', sha256='74f6af1738b2cd21e7f2564b4cc2c84d5473a3745ba88ec76355d07fdd61f700')
    version('0.7-2', sha256='ec1da6ec5292ea6ac95495c6a299591d367e520ae324719817fb884c865603ff')
    version('0.7-1', sha256='9b3021617a22b0710b0f1acc279290762317ff123fd9e8fd03f1449f4bbfe204')
    version('0.6-1', sha256='bf50991055e9336cd6a110d711ae8a91a0551b96f9eaab5fef8c05f578006e1c')

    depends_on('r@3.0.1:', type=('build', 'run'))
    depends_on('r@3.1.0:', when='@0.7-0', type=('build', 'run'))
    depends_on('r@3.3.0:', when='@0.7-1:', type=('build', 'run'))
    depends_on('r@3.5.0:', when='@0.8-2:', type=('build', 'run'))
    depends_on('r-gmp@0.5-8:', type=('build', 'run'))
    depends_on('r-gmp@0.6-1:', when='@0.8-2:', type=('build', 'run'))
    depends_on('gmp@4.2.3:')
    depends_on('mpfr@3.0.0:')