summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-rhdf5filters/package.py
blob: 8d27d93a00d23f3d963d1b4b5e61ec8f1ca66b9a (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
# 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 spack.package import *


class RRhdf5filters(RPackage):
    """HDF5 Compression Filters.

    Provides a collection of compression filters for use with HDF5 datasets."""

    bioc = "rhdf5filters"

    version('1.8.0', commit='b0b588b71a5595b30f4e698a50b84310dc19745d')
    version('1.6.0', commit='5f7f3a5b7dabd6e7d0c50cda70290e2472ff4f53')
    version('1.2.0', commit='25af0180f926b4b3ea11b30ec9277d26ad3d56b3')

    depends_on('r-rhdf5lib', type=('build', 'run'))
    depends_on('gmake', type='build')

    def configure_args(self):
        args = []
        if self.spec.target.family == 'aarch64':
            args.append("ax_cv_gcc_check_x86_cpu_init=yes")
            args.append("ax_cv_gcc_x86_cpu_supports_sse2=no")
        return args