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


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

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

    homepage = "https://github.com/grimbough/rhdf5filters"
    git      = "https://git.bioconductor.org/packages/rhdf5filters"

    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