# 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 RBiocgenerics(RPackage):
    """S4 generic functions needed by many Bioconductor packages."""

    homepage = "https://www.bioconductor.org/packages/BiocGenerics/"
    git      = "https://git.bioconductor.org/packages/BiocGenerics.git"

    version('0.26.0', commit='5b2a6df639e48c3cd53789e0b174aec9dda6b67d')
    version('0.24.0', commit='3db111e8c1f876267da89f4f0c5406a9d5c31cd1')
    version('0.22.1', commit='9c90bb8926885289d596a81ff318ee3745cbb6ad')

    depends_on('r@3.4.0:3.4.9', when='@0.22.1', type=('build', 'run'))
    depends_on('r@3.5.0:3.5.9', when='@0.26.0', type=('build', 'run'))
