Mk/Uses/cran.mk: fix WARNING in cran tests.
R warns if it detects .o or .so objects in the source directory, when running tests. Remove the offending files before running the test. Take maintainership [1] PR: 212134 Approved by: wen [1]
This commit is contained in:
parent
42d07ed793
commit
f106023e89
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420948
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@
|
|||
# auto-plist The pkg-plist is to be automatically generated
|
||||
# compiles The port has code that needs to be compiled
|
||||
#
|
||||
# MAINTAINER= wen@FreeBSD.org
|
||||
# MAINTAINER= dbn@FreeBSD.org
|
||||
|
||||
.if !defined(_INCLUDE_USES_CRAN_MK)
|
||||
_INCLUDE_USES_CRAN_MK= yes
|
||||
|
@ -50,6 +50,7 @@ R_POSTCMD_CHECK_OPTIONS+= --no-manual --no-build-vignettes
|
|||
.endif
|
||||
|
||||
do-test:
|
||||
@${FIND} ${WRKSRC} \( -name '*.o' -o -name '*.so' \) -delete
|
||||
@cd ${WRKDIR} ; ${SETENV} ${MAKE_ENV} _R_CHECK_FORCE_SUGGESTS_=FALSE \
|
||||
${R_COMMAND} ${R_PRECMD_CHECK_OPTIONS} CMD check \
|
||||
${R_POSTCMD_CHECK_OPTIONS} ${PORTNAME}
|
||||
|
|
Loading…
Reference in a new issue