mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
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.
21 lines
399 B
Makefile
21 lines
399 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= getopt
|
|
DISTVERSION= 1.20.3
|
|
CATEGORIES= devel
|
|
DISTNAME= ${PORTNAME}_${DISTVERSION}
|
|
|
|
MAINTAINER= jwb@FreeBSD.org
|
|
COMMENT= Accept short and long flags in Rscript
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= cran:auto-plist
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -i '' -e \
|
|
's|/path/to/Rscript|${LOCALBASE}/bin/Rscript|' \
|
|
${WRKSRC}/exec/example.R
|
|
|
|
.include <bsd.port.mk>
|