R-getopt: C-Like 'getopt' Behavior

This commit is contained in:
Jason Bacon 2018-11-05 11:17:29 -06:00
parent 3e8994d7d8
commit 71d25a5ee8
4 changed files with 34 additions and 0 deletions

View File

@ -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

5
R-getopt/DESCR Normal file
View File

@ -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.

22
R-getopt/Makefile Normal file
View File

@ -0,0 +1,22 @@
# $NetBSD$
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_R_CRAN:=contrib/}
MAINTAINER= bacon@NetBSD.org
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"

6
R-getopt/distinfo Normal file
View File

@ -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