diff options
Diffstat (limited to 'Mk/bsd.cran.mk')
| -rw-r--r-- | Mk/bsd.cran.mk | 41 |
1 files changed, 31 insertions, 10 deletions
diff --git a/Mk/bsd.cran.mk b/Mk/bsd.cran.mk index fc4506726562..a478bfca4b10 100644 --- a/Mk/bsd.cran.mk +++ b/Mk/bsd.cran.mk @@ -6,8 +6,7 @@ CRAN_Include_MAINTAINER= wen@FreeBSD.org -.if defined(USE_R_MOD) -MASTER_CRAN_SITES+= http://ftp.ctex.org/mirrors/CRAN/src/contrib/ \ +MASTER_SITE_CRAN+= http://ftp.ctex.org/mirrors/CRAN/src/contrib/ \ http://cran.rakanu.com/src/contrib/ \ http://cran.ms.unimelb.edu.au/src/contrib/ \ http://mirror.its.dal.ca/cran/src/contrib/ \ @@ -18,16 +17,14 @@ MASTER_CRAN_SITES+= http://ftp.ctex.org/mirrors/CRAN/src/contrib/ \ http://cran.md.tsukuba.ac.jp/src/contrib/ \ http://mirrors.ibiblio.org/pub/mirrors/CRAN/src/contrib/ \ http://cran.cnr.berkeley.edu/src/contrib/ -.endif -MASTER_SITES?= ${MASTER_CRAN_SITES} +MASTER_SITES?= ${MASTER_SITE_CRAN} -.if defined(USE_R_MOD) +USE_FORTRAN= yes BUILD_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R RUN_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R PKGNAMEPREFIX?= R-cran- -.endif R_MOD_DIR?= lib/R/library/${PORTNAME} PLIST_SUB+= R_MOD_DIR=${R_MOD_DIR} @@ -35,14 +32,38 @@ WRKSRC?= ${WRKDIR}/${PORTNAME} NO_BUILD= yes R_COMMAND= ${LOCALBASE}/bin/R -R_INS= ${R_COMMAND} CMD INSTALL + +.if !target(regression-test) +R_POSTCMD_CHECK_OPTIONS?= --timings + +.if !exists(${LOCALBASE}/bin/pdflatex) +R_POSTCMD_CHECK_OPTIONS+= --no-manual --no-rebuild-vignettes +.endif + +regression-test: build + @cd ${WRKDIR} ; ${SETENV} ${MAKE_ENV} _R_CHECK_FORCE_SUGGESTS_=FALSE \ + ${R_COMMAND} ${R_PRECMD_CHECK_OPTIONS} CMD check \ + ${R_POSTCMD_CHECK_OPTIONS} ${PORTNAME} +.endif + +.if !target(do-install) +.if defined(NOPORTDATA) +R_POSTCMD_INSTALL_OPTIONS+= --no-data --no-demo +.else +R_POSTCMD_INSTALL_OPTIONS+= --install-tests +.endif + +.if defined(NOPORTDOCS) +R_POSTCMD_INSTALL_OPTIONS+= --no-docs --no-html +.endif do-install: -.if defined(USE_R_MOD) - @cd ${WRKDIR} && ${SETENV} ${MAKE_ENV} ${R_INS} ${PORTNAME} + @cd ${WRKDIR} ; ${SETENV} ${MAKE_ENV} ${R_COMMAND} \ + ${R_PRECMD_INSTALL_OPTIONS} CMD INSTALL \ + ${R_POSTCMD_INSTALL_OPTIONS} ${PORTNAME} .endif -.if defined(USE_R_MOD) && defined(R_MOD_AUTOPLIST) +.if defined(R_MOD_AUTOPLIST) .if !target(post-install-script) post-install-script: @${FIND} -ds ${PREFIX}/${R_MOD_DIR} \( -type f -or -type l \) -print | \ |
