summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-pkgmaker/package.py
blob: 47efa743ec40417c93db9609ee6a984e49b4d8e4 (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
35
36
37
38
39
# Copyright 2013-2024 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 RPkgmaker(RPackage):
    """Development Utilities for R Packages.

    This package provides some low-level utilities to use for package
    development. It currently provides managers for multiple package specific
    options and registries, vignette, unit test and bibtex related utilities.
    It serves as a base package for packages like NMF, RcppOctave, doRNG, and
    as an incubator package for other general purposes utilities, that will
    eventually be packaged separately. It is still under heavy development and
    changes in the interface(s) are more than likely to happen."""

    cran = "pkgmaker"

    license("GPL-2.0-or-later")

    version("0.32.8", sha256="0ff3578d2c051b544c3f105cfe4801575aac1564add048f9e952c53a8ccd1745")
    version("0.32.2", sha256="ce45b22def771a9c90a414093823e6befe7e23489c500eeccee5154b44d3ef91")
    version("0.27", sha256="17a289d8f596ba5637b07077b3bff22411a2c2263c0b7de59fe848666555ec6a")

    depends_on("r@3.0.0:", type=("build", "run"))
    depends_on("r-registry", type=("build", "run"))
    depends_on("r-codetools", type=("build", "run"))
    depends_on("r-digest", type=("build", "run"))
    depends_on("r-stringr", type=("build", "run"))
    depends_on("r-xtable", type=("build", "run"))
    depends_on("r-withr", type=("build", "run"))
    depends_on("r-assertthat", type=("build", "run"), when="@0.32.2:")

    depends_on("r-stringi", type=("build", "run"), when="@:0.27")
    depends_on("r-magrittr", type=("build", "run"), when="@:0.27")
    depends_on("r-bibtex@0.4:", type=("build", "run"), when="@:0.27")