summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorNeil Flood <neilflood@fastmail.fm>2018-12-04 22:20:08 +1000
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2018-12-04 13:20:08 +0100
commit47b7016ea7270bf1908dbb4ce727370d0ef6b010 (patch)
tree3fe87209bcb34069f7e0ab5e3d93358bb4213dcd /var
parent9551b34cb5c774e2feec9cf46691105d72b7e8c3 (diff)
downloadspack-47b7016ea7270bf1908dbb4ce727370d0ef6b010.tar.gz
spack-47b7016ea7270bf1908dbb4ce727370d0ef6b010.tar.bz2
spack-47b7016ea7270bf1908dbb4ce727370d0ef6b010.tar.xz
spack-47b7016ea7270bf1908dbb4ce727370d0ef6b010.zip
r-optparse: new package (#9967)
Diffstat (limited to 'var')
-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'))