summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-downlit/package.py
blob: 08fb5495418a7408d657de0dfe2956a9791e529d (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
# Copyright 2013-2023 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 RDownlit(RPackage):
    """Syntax Highlighting and Automatic Linking.

    Syntax highlighting of R code, specifically designed for the needs of
    'RMarkdown' packages like 'pkgdown', 'hugodown', and 'bookdown'. It
    includes linking of function calls to their documentation on the web, and
    automatic translation of ANSI escapes in output to the equivalent HTML."""

    cran = "downlit"

    license("MIT")

    version("0.4.2", sha256="33dff66909104d1a5ba8e57b1288986e82b61fd5e91dce0cd358d53724b37e3c")

    depends_on("r@3.4.0:", type=("build", "run"))
    depends_on("r-brio", type=("build", "run"))
    depends_on("r-desc", type=("build", "run"))
    depends_on("r-digest", type=("build", "run"))
    depends_on("r-evaluate", type=("build", "run"))
    depends_on("r-fansi", type=("build", "run"))
    depends_on("r-memoise", type=("build", "run"))
    depends_on("r-rlang", type=("build", "run"))
    depends_on("r-vctrs", type=("build", "run"))
    depends_on("r-withr", type=("build", "run"))
    depends_on("r-yaml", type=("build", "run"))