diff --git a/textproc/R-cran-vroom/Makefile b/textproc/R-cran-vroom/Makefile index 1cf57a32ea11..ceaf0044733b 100644 --- a/textproc/R-cran-vroom/Makefile +++ b/textproc/R-cran-vroom/Makefile @@ -1,50 +1,57 @@ PORTNAME= vroom DISTVERSION= 1.7.0 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 -TESTING_UNSAFE= https://github.com/tidyverse/vroom/issues/611 - 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 +# Tests are supposed to be run with unprivileged user. Running as root, tests fail. +# See also: https://github.com/tidyverse/vroom/issues/611 +do-test: + @${MKDIR} ${WRKDIR}/tmp + @${CHMOD} 777 ${WRKDIR}/tmp + @cd ${WRKSRC} && \ + ${SETENV} ${TEST_ENV} TMPDIR=${WRKDIR}/tmp _R_CHECK_FORCE_SUGGESTS_=false \ + su -m nobody -c "${LOCALBASE}/bin/R CMD check --no-manual --no-build-vignettes ." + .include