pkgsrc-WIP-changes archive

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

R-getopt: C-Like 'getopt' Behavior



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

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

Log Message:
R-getopt: C-Like 'getopt' Behavior

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

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

diffstat:
 Makefile          |  1 +
 R-getopt/DESCR    |  5 +++++
 R-getopt/Makefile | 22 ++++++++++++++++++++++
 R-getopt/distinfo |  6 ++++++
 4 files changed, 34 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 7d2da77ab6..1e306dcb68 100644
--- a/Makefile
+++ b/Makefile
@@ -46,6 +46,7 @@ SUBDIR+=	R-cubature
 SUBDIR+=	R-doParallel
 SUBDIR+=	R-entropy
 SUBDIR+=	R-foreach
+SUBDIR+=	R-getopt
 SUBDIR+=	R-gmp
 SUBDIR+=	R-graph
 SUBDIR+=	R-gsl
diff --git a/R-getopt/DESCR b/R-getopt/DESCR
new file mode 100644
index 0000000000..5c3d6e1211
--- /dev/null
+++ b/R-getopt/DESCR
@@ -0,0 +1,5 @@
+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.
diff --git a/R-getopt/Makefile b/R-getopt/Makefile
new file mode 100644
index 0000000000..3bae10b3fc
--- /dev/null
+++ b/R-getopt/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD$
+
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_R_CRAN:=contrib/}
+
+MAINTAINER=	bacon%NetBSD.org@localhost
+HOMEPAGE=	${R_HOMEPAGE_BASE}/getopt/
+COMMENT=	C-Like 'getopt' Behavior
+LICENSE=	gnu-gpl-v2
+
+R_PKGNAME=	getopt
+R_PKGVER=	1.20.2
+
+REPLACE_R=	exec/example.R
+
+REPLACE_INTERPRETER+=   R
+REPLACE.R.old=          /path/to/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-getopt/distinfo b/R-getopt/distinfo
new file mode 100644
index 0000000000..aba55a238f
--- /dev/null
+++ b/R-getopt/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (R/getopt_1.20.2.tar.gz) = ee7fc25968f7a4e0c2620a555c5b5c5a32bf3256
+RMD160 (R/getopt_1.20.2.tar.gz) = dd770f39147a774f65adc149d492b7fb028a0941
+SHA512 (R/getopt_1.20.2.tar.gz) = 2b0a55eea52a42f80494491455a1b070e6ae37eea9057a1646b5831f390e1af7cb423a4bf487e71330888ade8cbb360d87b45cfc9c4bcbe47e748eb7e3ea456c
+Size (R/getopt_1.20.2.tar.gz) = 17521 bytes


Home | Main Index | Thread Index | Old Index