PORTNAME=	vroom
DISTVERSION=	1.7.1
CATEGORIES=	textproc
DISTNAME=	${PORTNAME}_${DISTVERSION}

MAINTAINER=	eduardo@FreeBSD.org
COMMENT=	Read and Write Rectangular Text Data Quickly
WWW=		https://cran.r-project.org/package=vroom

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

CRAN_DEPENDS=	R-cran-bit64>0:devel/R-cran-bit64 \
		R-cran-cli>=3.2.0:devel/R-cran-cli \
		R-cran-cpp11>=0.2.0:devel/R-cran-cpp11 \
		R-cran-crayon>0:devel/R-cran-crayon \
		R-cran-glue>0:devel/R-cran-glue \
		R-cran-hms>0:devel/R-cran-hms \
		R-cran-lifecycle>=1.0.3:devel/R-cran-lifecycle \
		R-cran-progress>=1.2.3:devel/R-cran-progress \
		R-cran-rlang>=1.1.0:devel/R-cran-rlang \
		R-cran-tibble>=2.0.0:devel/R-cran-tibble \
		R-cran-tidyselect>0:devel/R-cran-tidyselect \
		R-cran-tzdb>=0.1.1:devel/R-cran-tzdb \
		R-cran-vctrs>=0.2.0:devel/R-cran-vctrs \
		R-cran-withr>0:devel/R-cran-withr
BUILD_DEPENDS=	${CRAN_DEPENDS}
RUN_DEPENDS=	${CRAN_DEPENDS}
TEST_DEPENDS=	R-cran-dplyr>0:math/R-cran-dplyr \
		R-cran-forcats>0:math/R-cran-forcats \
		R-cran-ggplot2>0:graphics/R-cran-ggplot2 \
		R-cran-knitr>0:print/R-cran-knitr \
		R-cran-testthat>0:devel/R-cran-testthat \
		R-cran-tidyr>0:devel/R-cran-tidyr

USES=		compiler:c++11-lang cran:auto-plist,compiles shebangfix

SHEBANG_FILES=	inst/bench/*.sh

pre-test:

# Test depends not ported yet
.for pkg in patchwork bench
	@${LOCALBASE}/bin/Rscript -e 'install.packages("${pkg}", \
		repos = "https://cloud.r-project.org")'
.endfor

.include <bsd.port.mk>
