text: # 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 RPkgbuild(RPackage):
      """Find Tools Needed to Build R Packages
  
      Provides functions used to build R packages. Locates compilers needed to
      build R packages on various platforms and ensures the PATH is configured
      appropriately so R can use them."""
  
      homepage = "https://cloud.r-project.org/package=pkgbuild"
      url      = "https://cloud.r-project.org/src/contrib/pkgbuild_1.0.3.tar.gz"
      list_url = "https://cloud.r-project.org/src/contrib/Archive/pkgbuild/"
  
      version('1.2.0', sha256='2e19308d3271fefd5e118c6d132d6a2511253b903620b5417892c72d2010a963')
      version('1.0.8', sha256='b149fcf3e98ef148945ff9f4272512cd03e21408c235ec6c0548167fd41219a1')
      version('1.0.4', sha256='2934efa5ff9ccfe1636d360aedec36713f3bb3128a493241dbb728d842ea3b5f')
      version('1.0.3', sha256='c93aceb499886e42bcd61eb7fb59e47a76c9ba5ab5349a426736d46c8ce21f4d')
  
      depends_on('r@3.1:', type=('build', 'run'))
      depends_on('r-callr@2.0.0:', when='@:1.0.3', type=('build', 'run'))
      depends_on('r-callr@3.2.0:', when='@1.0.4:', type=('build', 'run'))
      depends_on('r-cli', type=('build', 'run'))
      depends_on('r-crayon', type=('build', 'run'))
      depends_on('r-desc', type=('build', 'run'))
      depends_on('r-prettyunits', type=('build', 'run'))
      depends_on('r-r6', type=('build', 'run'))
      depends_on('r-rprojroot', type=('build', 'run'))
      depends_on('r-withr@2.1.2:', type=('build', 'run'))
  