# 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 RBibtex(RPackage):
    """bibtex: Bibtex Parser

       Utility to parse a bibtex file."""

    homepage = "https://cloud.r-project.org/package=bibtex"
    url      = "https://cloud.r-project.org/src/contrib/bibtex_0.4.2.tar.gz"
    list_url = "https://cloud.r-project.org/src/contrib/Archive/bibtex/"

    version('0.4.2', sha256='1f06ab3660c940405230ad16ff6e4ba38d4418a59cd9b16d78a4349f8b488372')

    depends_on('r@3.0.2:', type=('build', 'run'))
    depends_on('r-stringr', type=('build', 'run'))
