ports/devel/R-cran-getopt/Makefile
Jason W. Bacon 827378ecb0 devel/R-cran-getopt: Accept short and long flags in Rscript
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.
2019-11-16 16:50:42 +00:00

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>