summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/r-getopt/package.py1
-rw-r--r--var/spack/repos/builtin/packages/r-optparse/package.py21
2 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-getopt/package.py b/var/spack/repos/builtin/packages/r-getopt/package.py
index a1e1286b6c..f33f1de743 100644
--- a/var/spack/repos/builtin/packages/r-getopt/package.py
+++ b/var/spack/repos/builtin/packages/r-getopt/package.py
@@ -17,4 +17,5 @@ class RGetopt(RPackage):
url = "https://cran.r-project.org/src/contrib/getopt_1.20.1.tar.gz"
list_url = "https://cran.r-project.org/src/contrib/Archive/getopt"
+ version('1.20.2', sha256='3d6c12d32d6cd4b2909be626e570e158b3ed960e4739510e3a251e7f172de38e')
version('1.20.1', '323cf2846e306f49236b8174bc3d4e47')
diff --git a/var/spack/repos/builtin/packages/r-optparse/package.py b/var/spack/repos/builtin/packages/r-optparse/package.py
new file mode 100644
index 0000000000..7db2c88897
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-optparse/package.py
@@ -0,0 +1,21 @@
+# 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 ROptparse(RPackage):
+ """A command line parser inspired by Python's 'optparse' library to be used
+ with Rscript to write "#!" shebang scripts that accept short and long
+ flag/options"""
+
+ homepage = "https://cran.r-project.org/package=optparse"
+ url = "https://cran.r-project.org/src/contrib/optparse_1.6.0.tar.gz"
+ list_url = "https://cran.r-project.org/src/contrib/Archive/optparse"
+
+ version('1.6.0', '8d0bd89b2e25cc1580437cdeeb1faac2')
+
+ depends_on('r@2.9.0:', type=('build', 'run'))
+ depends_on('r-getopt@1.20.2:', type=('build', 'run'))