summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/r-getopt/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/r-getopt/package.py')
-rw-r--r--var/spack/repos/builtin/packages/r-getopt/package.py20
1 files changed, 20 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
new file mode 100644
index 0000000000..a1e1286b6c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-getopt/package.py
@@ -0,0 +1,20 @@
+# 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 RGetopt(RPackage):
+ """Package designed to be used with Rscript to write "#!" shebang scripts
+ that accept short and long flags/options. Many users will prefer using
+ instead the packages optparse or argparse which add extra features like
+ automatically generated help option and usage, support for default
+ values, positional argument support, etc."""
+
+ homepage = "https://github.com/trevorld/getopt"
+ 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.1', '323cf2846e306f49236b8174bc3d4e47')