# 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 RRdpack(RPackage):
    """Functions for manipulation of R documentation objects, including
    functions reprompt() and ereprompt() for updating 'Rd' documentation for
    functions, methods and classes; 'Rd' macros for citations and import of
    references from 'bibtex' files for use in 'Rd' files and 'roxygen2'
    comments; 'Rd' macros for evaluating and inserting snippets of 'R' code and
    the results of its evaluation or creating graphics on the fly; and many
    functions for manipulation of references and Rd files."""

    homepage = "https://github.com/GeoBosh/Rdpack"
    url      = "https://cloud.r-project.org/src/contrib/Rdpack_0.11-0.tar.gz"
    list_url = "https://cloud.r-project.org/src/contrib/Archive/Rdpack"

    version('0.11-0', sha256='8fb449c80fbe931cdce51f728fb03a1978009ccce66fd6b9edacdc6ff4118d85')

    depends_on('r@2.15.0:', type=('build', 'run'))
    depends_on('r-bibtex@0.4.0:', type=('build', 'run'))
    depends_on('r-gbrd', type=('build', 'run'))
