Patchwork [5/7] gnu: Add r-optparse.

login
register
mail settings
Submitter Roel Janssen
Date Sept. 15, 2016, 11:38 a.m.
Message ID <87fup1s896.fsf@gnu.org>
Download mbox | patch
Permalink /patch/15654/
State New
Headers show

Comments

Roel Janssen - Sept. 15, 2016, 11:38 a.m.
* gnu/packages/bioinformatics.scm (r-optparse): New variable.
---
 gnu/packages/bioinformatics.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
Ricardo Wurmus - Sept. 19, 2016, 12:44 p.m.
That’s also one I’ve packaged but forgot to send to the ML :)

> +(define-public r-optparse
> +  (package
> +    (name "r-optparse")
> +    (version "1.3.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (cran-uri "optparse" version))
> +       (sha256
> +        (base32
> +         "1g8as89r91xxi5j5azsd6vrfrhg84mnfx2683j7pacdp8s33radw"))))
> +    (build-system r-build-system)
> +    (propagated-inputs
> +     `(("r-getopt" ,r-getopt)))
> +    (home-page
> +     "https://github.com/trevorld/optparse")
> +    (synopsis "Command Line Option Parser")

“Command line option parser”

> +    (description
> +     "This package provides 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.")

@code{optparse} instead of 'optparse'

and I’d drop “"#!"”. 

~~ Ricardo

Patch

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index 225e470..af32d66 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -5381,6 +5381,29 @@  Bioconductor PDF and HTML documents.  Package vignettes illustrate use and
 functionality.")
     (license license:artistic2.0)))
 
+(define-public r-optparse
+  (package
+    (name "r-optparse")
+    (version "1.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "optparse" version))
+       (sha256
+        (base32
+         "1g8as89r91xxi5j5azsd6vrfrhg84mnfx2683j7pacdp8s33radw"))))
+    (build-system r-build-system)
+    (propagated-inputs
+     `(("r-getopt" ,r-getopt)))
+    (home-page
+     "https://github.com/trevorld/optparse")
+    (synopsis "Command Line Option Parser")
+    (description
+     "This package provides 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.")
+    (license license:gpl2+)))
+
 (define-public r-dnacopy
   (package
     (name "r-dnacopy")