pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

R-optparse: Command Line Option Parser



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Mon Nov 5 11:23:47 2018 -0600
Changeset:	ebd5bd1391c4ca298b42f3c6ca2a12c82437f5d7

Modified Files:
	Makefile
Added Files:
	R-optparse/DESCR
	R-optparse/Makefile
	R-optparse/distinfo

Log Message:
R-optparse: Command Line Option Parser

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ebd5bd1391c4ca298b42f3c6ca2a12c82437f5d7

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile            |  1 +
 R-optparse/DESCR    |  3 +++
 R-optparse/Makefile | 24 ++++++++++++++++++++++++
 R-optparse/distinfo |  6 ++++++
 4 files changed, 34 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 1e306dcb68..14b47646a1 100644
--- a/Makefile
+++ b/Makefile
@@ -53,6 +53,7 @@ SUBDIR+=	R-gsl
 SUBDIR+=	R-mclust
 SUBDIR+=	R-mpfr
 SUBDIR+=	R-np
+SUBDIR+=	R-optparse
 SUBDIR+=	R-quantreg
 SUBDIR+=	R-readxl
 SUBDIR+=	R-rematch
diff --git a/R-optparse/DESCR b/R-optparse/DESCR
new file mode 100644
index 0000000000..b08ab024e1
--- /dev/null
+++ b/R-optparse/DESCR
@@ -0,0 +1,3 @@
+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.
diff --git a/R-optparse/Makefile b/R-optparse/Makefile
new file mode 100644
index 0000000000..4346e0834d
--- /dev/null
+++ b/R-optparse/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_R_CRAN:=contrib/}
+
+MAINTAINER=	bacon%NetBSD.org@localhost
+HOMEPAGE=	${R_HOMEPAGE_BASE}/optparse/
+COMMENT=	Command Line Option Parser
+LICENSE=	gnu-gpl-v2
+
+R_PKGNAME=	optparse
+R_PKGVER=	1.6.0
+
+DEPENDS+=	R-getopt>=1.20.2:../../wip/R-getopt
+
+REPLACE_R=	exec/example.R exec/display_file.R
+
+REPLACE_INTERPRETER+=   R
+REPLACE.R.old=          /usr/bin/env Rscript
+REPLACE.R.new=          ${PREFIX}/bin/R
+REPLACE_FILES.R=        ${REPLACE_R}
+
+.include "../../math/R/Makefile.extension"
+.include "../../mk/bsd.pkg.mk"
diff --git a/R-optparse/distinfo b/R-optparse/distinfo
new file mode 100644
index 0000000000..8b0f308af1
--- /dev/null
+++ b/R-optparse/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (R/optparse_1.6.0.tar.gz) = 4c099b8a12ebedc97b297a0151192dcd040465e4
+RMD160 (R/optparse_1.6.0.tar.gz) = f4c11072f4d89db6d6babac69b91be4be50ba184
+SHA512 (R/optparse_1.6.0.tar.gz) = 4fd72c6daf760b4bd229e7a1e3f9849fa0ca05358c4ed1e5f535707e2e2523f1a0bb1c6ed1b1b1a94914fb7199ef0d179069f3c1242e23bbca5536e3b80a101f
+Size (R/optparse_1.6.0.tar.gz) = 34931 bytes


Home | Main Index | Thread Index | Old Index