summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-argparse/package.py
blob: c722eae792a1500d32647782c553f3450f557dec (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
# Copyright 2013-2018 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 RArgparse(RPackage):
    """A command line parser to be used with Rscript to write "#!"
       shebang scripts that gracefully accept positional and optional
       arguments and automatically generate usage."""

    homepage = "https://github.com/trevorld/argparse"
    url      = "https://cran.r-project.org/src/contrib/argparse_1.1.1.tar.gz"
    list_url = "https://cran.r-project.org/src/contrib/Archive/argparse"

    version('1.1.1', sha256='441449f0816411a868fd1b15cf4b2bc45931bbd4b67d6592dbe48875905cf93b')

    depends_on('r-proto@1:', type=('build', 'run'))
    depends_on('r-findpython', type=('build', 'run'))
    depends_on('r-getopt', type=('build', 'run'))
    depends_on('r-jsonlite', type=('build', 'run'))