summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-getoptlong/package.py
blob: e6064611e5f7590105c8e4708daaa74f8a2c77a8 (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
# 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 RGetoptlong(RPackage):
    """This is yet another command-line argument parser which wraps the
       powerful Perl module Getopt::Long and with some adaptation for easier
       use in R. It also provides a simple way for variable interpolation in
       R."""

    homepage = "https://cloud.r-project.org/package=GetoptLong"
    url      = "https://cloud.r-project.org/src/contrib/GetoptLong_0.1.6.tar.gz"
    list_url = "https://cloud.r-project.org/src/contrib/Archive/GetoptLong"

    version('0.1.7', sha256='b9a98881db407eae9b711c4fa9170168fd5f3be1f8485cd8f28d0a60ace083ba')
    version('0.1.6', 'e4b964d0817cb6c6a707297b21405749')

    depends_on('r@3.0.0:', type=('build', 'run'))
    depends_on('r-rjson', type=('build', 'run'))
    depends_on('r-globaloptions@0.1.0:', type=('build', 'run'))

    # The CRAN site lists SystemRequirments as: Perl, Getopt::Long. The
    # Getop::Long package will be installed with Perl so just depend on perl.
    depends_on('perl')