aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/R-cran-optparse/Makefile20
-rw-r--r--devel/R-cran-optparse/distinfo3
-rw-r--r--devel/R-cran-optparse/pkg-descr4
4 files changed, 28 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index f09042cd9762..582158e2af43 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -56,6 +56,7 @@
SUBDIR += R-cran-magrittr
SUBDIR += R-cran-memoise
SUBDIR += R-cran-microbenchmark
+ SUBDIR += R-cran-optparse
SUBDIR += R-cran-pillar
SUBDIR += R-cran-pkgconfig
SUBDIR += R-cran-pkgmaker
diff --git a/devel/R-cran-optparse/Makefile b/devel/R-cran-optparse/Makefile
new file mode 100644
index 000000000000..aee26bb3ea9a
--- /dev/null
+++ b/devel/R-cran-optparse/Makefile
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+PORTNAME= optparse
+DISTVERSION= 1.6.4
+CATEGORIES= devel
+DISTNAME= ${PORTNAME}_${DISTVERSION}
+
+MAINTAINER= jwb@FreeBSD.org
+COMMENT= Command line flag parser inspired by Python's optparse
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+CRAN_DEPENDS= R-cran-getopt>=1.20.2:devel/R-cran-getopt
+BUILD_DEPENDS= ${CRAN_DEPENDS}
+RUN_DEPENDS= ${CRAN_DEPENDS}
+
+USES= cran:auto-plist
+
+.include <bsd.port.mk>
diff --git a/devel/R-cran-optparse/distinfo b/devel/R-cran-optparse/distinfo
new file mode 100644
index 000000000000..e9ff184d3611
--- /dev/null
+++ b/devel/R-cran-optparse/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1573918581
+SHA256 (optparse_1.6.4.tar.gz) = cd7855ebc2303da4ab0615282667c7eeef5329faf51bd2bf2e4b0d250561d973
+SIZE (optparse_1.6.4.tar.gz) = 37654
diff --git a/devel/R-cran-optparse/pkg-descr b/devel/R-cran-optparse/pkg-descr
new file mode 100644
index 000000000000..641b6099b4a9
--- /dev/null
+++ b/devel/R-cran-optparse/pkg-descr
@@ -0,0 +1,4 @@
+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.
+
+WWW: https://cran.r-project.org/web/packages/optparse/