aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordbn <dbn@FreeBSD.org>2013-12-28 18:28:40 +0800
committerdbn <dbn@FreeBSD.org>2013-12-28 18:28:40 +0800
commit73b16c18ce434585aeb3497fed4dd824d127b0bd (patch)
tree8d0f3f2f1eae811733e7cf9c6eb644ab6da66df7
parentc54958aa0d54379fcc5b0a60c1149ddc266936fe (diff)
downloadfreebsd-ports-graphics-73b16c18ce434585aeb3497fed4dd824d127b0bd.tar.gz
freebsd-ports-graphics-73b16c18ce434585aeb3497fed4dd824d127b0bd.tar.zst
freebsd-ports-graphics-73b16c18ce434585aeb3497fed4dd824d127b0bd.zip
Convert Mk/bsd.cran.mk to the Uses framework.
PR: ports/184699 Reviewed by: bapt Approved by: portmgr (bdrewery), wen (maintainer, timeout > 2 weeks)
-rw-r--r--Mk/Uses/cran.mk190
-rw-r--r--Mk/bsd.cran.mk85
-rw-r--r--Mk/bsd.port.mk6
-rw-r--r--astro/R-cran-maptools/Makefile3
-rw-r--r--converters/R-cran-RJSONIO/Makefile3
-rw-r--r--converters/R-cran-rjson/Makefile3
-rw-r--r--databases/R-cran-DBI/Makefile3
-rw-r--r--databases/R-cran-RMySQL/Makefile3
-rw-r--r--databases/R-cran-RSQLite.extfuns/Makefile3
-rw-r--r--databases/R-cran-RSQLite/Makefile3
-rw-r--r--databases/R-cran-sqldf/Makefile3
-rw-r--r--devel/R-cran-Defaults/Makefile3
-rw-r--r--devel/R-cran-Hmisc/Makefile3
-rw-r--r--devel/R-cran-RUnit/Makefile3
-rw-r--r--devel/R-cran-Rcpp/Makefile3
-rw-r--r--devel/R-cran-bitops/Makefile3
-rw-r--r--devel/R-cran-caTools/Makefile3
-rw-r--r--devel/R-cran-caret/Makefile3
-rw-r--r--devel/R-cran-chron/Makefile3
-rw-r--r--devel/R-cran-foreach/Makefile3
-rw-r--r--devel/R-cran-gbm/Makefile3
-rw-r--r--devel/R-cran-gdata/Makefile4
-rw-r--r--devel/R-cran-glmnet/Makefile3
-rw-r--r--devel/R-cran-gsubfn/Makefile3
-rw-r--r--devel/R-cran-gtools/Makefile3
-rw-r--r--devel/R-cran-iterators/Makefile3
-rw-r--r--devel/R-cran-itertools/Makefile3
-rw-r--r--devel/R-cran-memoise/Makefile3
-rw-r--r--devel/R-cran-plyr/Makefile3
-rw-r--r--devel/R-cran-proto/Makefile3
-rw-r--r--devel/R-cran-randomForest/Makefile3
-rw-r--r--devel/R-cran-reshape/Makefile3
-rw-r--r--devel/R-cran-reshape2/Makefile3
-rw-r--r--finance/R-cran-PerformanceAnalytics/Makefile3
-rw-r--r--finance/R-cran-RFinanceYJ/Makefile3
-rw-r--r--finance/R-cran-TTR/Makefile3
-rw-r--r--finance/R-cran-ccgarch/Makefile3
-rw-r--r--finance/R-cran-fBasics/Makefile3
-rw-r--r--finance/R-cran-fGarch/Makefile3
-rw-r--r--finance/R-cran-gmm/Makefile3
-rw-r--r--finance/R-cran-lmtest/Makefile3
-rw-r--r--finance/R-cran-plm/Makefile3
-rw-r--r--finance/R-cran-quantmod/Makefile3
-rw-r--r--finance/R-cran-strucchange/Makefile3
-rw-r--r--finance/R-cran-timeDate/Makefile3
-rw-r--r--finance/R-cran-timeSeries/Makefile3
-rw-r--r--finance/R-cran-tseries/Makefile3
-rw-r--r--finance/R-cran-urca/Makefile3
-rw-r--r--finance/R-cran-vars/Makefile3
-rw-r--r--ftp/R-cran-RCurl/Makefile3
-rw-r--r--graphics/R-cran-GDD/Makefile3
-rw-r--r--graphics/R-cran-RColorBrewer/Makefile3
-rw-r--r--graphics/R-cran-colorspace/Makefile3
-rw-r--r--graphics/R-cran-diagram/Makefile3
-rw-r--r--graphics/R-cran-dichromat/Makefile3
-rw-r--r--graphics/R-cran-ggplot2/Makefile3
-rw-r--r--graphics/R-cran-munsell/Makefile3
-rw-r--r--graphics/R-cran-pixmap/Makefile3
-rw-r--r--graphics/R-cran-png/Makefile3
-rw-r--r--graphics/R-cran-rgdal/Makefile3
-rw-r--r--graphics/R-cran-rtiff/Makefile3
-rw-r--r--graphics/R-cran-scales/Makefile3
-rw-r--r--graphics/R-cran-shape/Makefile3
-rw-r--r--math/R-cran-ChangeAnomalyDetection/Makefile3
-rw-r--r--math/R-cran-Formula/Makefile3
-rw-r--r--math/R-cran-KFAS/Makefile3
-rw-r--r--math/R-cran-LearnBayes/Makefile3
-rw-r--r--math/R-cran-MCMCpack/Makefile3
-rw-r--r--math/R-cran-RHmm/Makefile3
-rw-r--r--math/R-cran-RSvgDevice/Makefile3
-rw-r--r--math/R-cran-RcppArmadillo/Makefile3
-rw-r--r--math/R-cran-SuppDists/Makefile3
-rw-r--r--math/R-cran-Zelig/Makefile3
-rw-r--r--math/R-cran-bdsmatrix/Makefile3
-rw-r--r--math/R-cran-car/Makefile3
-rw-r--r--math/R-cran-coda/Makefile3
-rw-r--r--math/R-cran-deldir/Makefile3
-rw-r--r--math/R-cran-dlmodeler/Makefile3
-rw-r--r--math/R-cran-forecast/Makefile3
-rw-r--r--math/R-cran-fracdiff/Makefile3
-rw-r--r--math/R-cran-gpclib/Makefile3
-rw-r--r--math/R-cran-gss/Makefile3
-rw-r--r--math/R-cran-gtable/Makefile3
-rw-r--r--math/R-cran-igraph/Makefile3
-rw-r--r--math/R-cran-inline/Makefile3
-rw-r--r--math/R-cran-labeling/Makefile3
-rw-r--r--math/R-cran-memisc/Makefile3
-rw-r--r--math/R-cran-mvtnorm/Makefile3
-rw-r--r--math/R-cran-nnls/Makefile3
-rw-r--r--math/R-cran-outliers/Makefile3
-rw-r--r--math/R-cran-psych/Makefile3
-rw-r--r--math/R-cran-quadprog/Makefile3
-rw-r--r--math/R-cran-sandwich/Makefile3
-rw-r--r--math/R-cran-sm/Makefile3
-rw-r--r--math/R-cran-sp/Makefile3
-rw-r--r--math/R-cran-spdep/Makefile3
-rw-r--r--math/R-cran-sspir/Makefile3
-rw-r--r--math/R-cran-stabledist/Makefile3
-rw-r--r--math/R-cran-xts/Makefile3
-rw-r--r--math/R-cran-zoo/Makefile3
-rw-r--r--net/R-cran-twitteR/Makefile3
-rw-r--r--science/R-cran-AMORE/Makefile3
-rw-r--r--science/R-cran-DCluster/Makefile3
-rw-r--r--science/R-cran-Epi/Makefile3
-rw-r--r--science/R-cran-bayesm/Makefile3
-rw-r--r--science/R-cran-e1071/Makefile3
-rw-r--r--science/R-cran-eco/Makefile3
-rw-r--r--science/R-cran-epicalc/Makefile3
-rw-r--r--science/R-cran-snow/Makefile3
-rw-r--r--science/R-cran-som/Makefile3
-rw-r--r--security/R-cran-ROAuth/Makefile3
-rw-r--r--security/R-cran-digest/Makefile3
-rw-r--r--textproc/R-cran-R2HTML/Makefile3
-rw-r--r--textproc/R-cran-XML/Makefile3
-rw-r--r--textproc/R-cran-stringr/Makefile3
-rw-r--r--textproc/R-cran-xtable/Makefile3
-rw-r--r--www/R-cran-RgoogleMaps/Makefile3
-rw-r--r--www/R-cran-Rpad/Makefile3
-rw-r--r--www/R-cran-httpuv/Makefile7
-rw-r--r--www/R-cran-scrapeR/Makefile3
-rw-r--r--www/R-cran-shiny/Makefile3
121 files changed, 309 insertions, 331 deletions
diff --git a/Mk/Uses/cran.mk b/Mk/Uses/cran.mk
new file mode 100644
index 00000000000..5bcf2f75d35
--- /dev/null
+++ b/Mk/Uses/cran.mk
@@ -0,0 +1,190 @@
+# $FreeBSD$
+#
+# Use the Comprehensive R Archive Network
+#
+# MAINTAINER= wen@FreeBSD.org
+#
+# Feature: cran
+# Usage: USES=cran or USES=cran:ARGS
+# Valid ARGS: auto-plist
+#
+# auto-plist The pkg-plist can be automatically compiled
+
+.if !defined(_INCLUDE_USES_CRAN_MK)
+_INCLUDE_USES_CRAN_MK= yes
+
+VALID_ARGS= auto-plist
+
+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/ \
+ http://mirrors.dotsrc.org/cran/src/contrib/ \
+ http://cran.univ-lyon1.fr/src/contrib/ \
+ http://ftp5.gwdg.de/pub/misc/cran/src/contrib/ \
+ http://cran.stat.unipd.it/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/
+MASTER_SITE_CRAN_ARCHIVE+= ${MASTER_SITE_CRAN:S,$,Archive/${PORTNAME}/,}
+
+MASTER_SITES?= ${MASTER_SITE_CRAN} ${MASTER_SITE_CRAN_ARCHIVE}
+
+USE_FORTRAN= yes
+BUILD_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
+RUN_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
+
+PKGNAMEPREFIX?= R-cran-
+
+R_LIB_DIR= lib/R/library
+R_MOD_DIR?= ${R_LIB_DIR}/${PORTNAME}
+PLIST_SUB+= R_MOD_DIR=${R_MOD_DIR}
+WRKSRC?= ${WRKDIR}/${PORTNAME}
+
+NO_BUILD= yes
+R_COMMAND= ${LOCALBASE}/bin/R
+
+.if !target(regression-test)
+R_POSTCMD_CHECK_OPTIONS?= --timings
+
+.if !exists(${LOCALBASE}/bin/pdflatex)
+R_POSTCMD_CHECK_OPTIONS+= --no-manual --no-rebuild-vignettes
+.endif
+
+.if defined(NO_STAGE)
+check-makevars::
+ @${ECHO_MSG} "Makefile error: USE_R_MOD cannot be used with NO_STAGE"
+ @${FALSE}
+.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)
+R_POSTCMD_INSTALL_OPTIONS+= -l ${STAGEDIR}${PREFIX}/${R_LIB_DIR}
+.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:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${R_LIB_DIR}
+ @cd ${WRKDIR} ; ${SETENV} ${MAKE_ENV} ${R_COMMAND} \
+ ${R_PRECMD_INSTALL_OPTIONS} CMD INSTALL \
+ ${R_POSTCMD_INSTALL_OPTIONS} ${PORTNAME}
+.endif
+
+.if ${cran_ARGS:Mauto-plist}
+.if !target(post-install-script)
+post-install-script:
+ @${FIND} -ds ${STAGEDIR}${PREFIX}/${R_MOD_DIR} \( -type f -or -type l \) -print | \
+ ${SED} -E -e 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}
+ @${FIND} -ds ${STAGEDIR}${PREFIX}/${R_MOD_DIR} -type d -print | ${SED} -E -e \
+ 's,^${STAGEDIR}${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
+.endif
+.endif
+
+.endif #_INCLUDE_USES_CRAN_MK
+# $FreeBSD$
+#
+# Use the Comprehensive R Archive Network
+#
+# MAINTAINER= wen@FreeBSD.org
+#
+# Feature: cran
+# Usage: USES=cran or USES=cran:ARGS
+# Valid ARGS: auto-plist
+#
+# auto-plist The pkg-plist can be automatically compiled
+
+.if !defined(_INCLUDE_USES_CRAN_MK)
+_INCLUDE_USES_CRAN_MK= yes
+
+VALID_ARGS= auto-plist
+
+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/ \
+ http://mirrors.dotsrc.org/cran/src/contrib/ \
+ http://cran.univ-lyon1.fr/src/contrib/ \
+ http://ftp5.gwdg.de/pub/misc/cran/src/contrib/ \
+ http://cran.stat.unipd.it/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/
+MASTER_SITE_CRAN_ARCHIVE+= ${MASTER_SITE_CRAN:S,$,Archive/${PORTNAME}/,}
+
+MASTER_SITES?= ${MASTER_SITE_CRAN} ${MASTER_SITE_CRAN_ARCHIVE}
+
+USE_FORTRAN= yes
+BUILD_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
+RUN_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
+
+PKGNAMEPREFIX?= R-cran-
+
+R_LIB_DIR= lib/R/library
+R_MOD_DIR?= ${R_LIB_DIR}/${PORTNAME}
+PLIST_SUB+= R_MOD_DIR=${R_MOD_DIR}
+WRKSRC?= ${WRKDIR}/${PORTNAME}
+
+NO_BUILD= yes
+R_COMMAND= ${LOCALBASE}/bin/R
+
+.if !target(regression-test)
+R_POSTCMD_CHECK_OPTIONS?= --timings
+
+.if !exists(${LOCALBASE}/bin/pdflatex)
+R_POSTCMD_CHECK_OPTIONS+= --no-manual --no-rebuild-vignettes
+.endif
+
+.if defined(NO_STAGE)
+check-makevars::
+ @${ECHO_MSG} "Makefile error: USE_R_MOD cannot be used with NO_STAGE"
+ @${FALSE}
+.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)
+R_POSTCMD_INSTALL_OPTIONS+= -l ${STAGEDIR}${PREFIX}/${R_LIB_DIR}
+.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:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${R_LIB_DIR}
+ @cd ${WRKDIR} ; ${SETENV} ${MAKE_ENV} ${R_COMMAND} \
+ ${R_PRECMD_INSTALL_OPTIONS} CMD INSTALL \
+ ${R_POSTCMD_INSTALL_OPTIONS} ${PORTNAME}
+.endif
+
+.if ${cran_ARGS:Mauto-plist}
+.if !target(post-install-script)
+post-install-script:
+ @${FIND} -ds ${STAGEDIR}${PREFIX}/${R_MOD_DIR} \( -type f -or -type l \) -print | \
+ ${SED} -E -e 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}
+ @${FIND} -ds ${STAGEDIR}${PREFIX}/${R_MOD_DIR} -type d -print | ${SED} -E -e \
+ 's,^${STAGEDIR}${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
+.endif
+.endif
+
+.endif #_INCLUDE_USES_CRAN_MK
diff --git a/Mk/bsd.cran.mk b/Mk/bsd.cran.mk
deleted file mode 100644
index 5353449ec1a..00000000000
--- a/Mk/bsd.cran.mk
+++ /dev/null
@@ -1,85 +0,0 @@
-# Date created: 2009-01-25
-# Whom: Wen Heping <wenheping@gmail.com>
-#
-# $FreeBSD$
-#
-
-CRAN_Include_MAINTAINER= wen@FreeBSD.org
-
-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/ \
- http://mirrors.dotsrc.org/cran/src/contrib/ \
- http://cran.univ-lyon1.fr/src/contrib/ \
- http://ftp5.gwdg.de/pub/misc/cran/src/contrib/ \
- http://cran.stat.unipd.it/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/
-MASTER_SITE_CRAN_ARCHIVE+= ${MASTER_SITE_CRAN:S,$,Archive/${PORTNAME}/,}
-
-MASTER_SITES?= ${MASTER_SITE_CRAN} ${MASTER_SITE_CRAN_ARCHIVE}
-
-USE_FORTRAN= yes
-BUILD_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
-RUN_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
-
-PKGNAMEPREFIX?= R-cran-
-
-R_LIB_DIR= lib/R/library
-R_MOD_DIR?= ${R_LIB_DIR}/${PORTNAME}
-PLIST_SUB+= R_MOD_DIR=${R_MOD_DIR}
-WRKSRC?= ${WRKDIR}/${PORTNAME}
-
-NO_BUILD= yes
-R_COMMAND= ${LOCALBASE}/bin/R
-
-.if !target(regression-test)
-R_POSTCMD_CHECK_OPTIONS?= --timings
-
-.if !exists(${LOCALBASE}/bin/pdflatex)
-R_POSTCMD_CHECK_OPTIONS+= --no-manual --no-rebuild-vignettes
-.endif
-
-.if defined(NO_STAGE)
-check-makevars::
- @${ECHO_MSG} "Makefile error: USE_R_MOD cannot be used with NO_STAGE"
- @${FALSE}
-.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)
-R_POSTCMD_INSTALL_OPTIONS+= -l ${STAGEDIR}${PREFIX}/${R_LIB_DIR}
-.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:
- @${MKDIR} ${STAGEDIR}${PREFIX}/${R_LIB_DIR}
- @cd ${WRKDIR} ; ${SETENV} ${MAKE_ENV} ${R_COMMAND} \
- ${R_PRECMD_INSTALL_OPTIONS} CMD INSTALL \
- ${R_POSTCMD_INSTALL_OPTIONS} ${PORTNAME}
-.endif
-
-.if defined(R_MOD_AUTOPLIST)
-.if !target(post-install-script)
-post-install-script:
- @${FIND} -ds ${STAGEDIR}${PREFIX}/${R_MOD_DIR} \( -type f -or -type l \) -print | \
- ${SED} -E -e 's,^${STAGEDIR}${PREFIX}/?,,' >> ${TMPPLIST}
- @${FIND} -ds ${STAGEDIR}${PREFIX}/${R_MOD_DIR} -type d -print | ${SED} -E -e \
- 's,^${STAGEDIR}${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
-.endif
-.endif
-
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 9a3cb07bf13..3f6479fadac 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -414,8 +414,6 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# Implies inclusion of bsd.python.mk. (Also see
# that file for more information on USE_PYTHON_*
# and USE_PYDISTUTILS).
-# USE_R_MOD - If set, this port uses the Comprehensive R Archive Network.
-# See bsd.cran.mk for more details.
# USE_RUBY - If set, this port relies on the Ruby language.
# Implies inclusion of bsd.ruby.mk. (Also see
# that file for more information on USE_RUBY_*).
@@ -1428,10 +1426,6 @@ PKGCOMPATDIR?= ${LOCALBASE}/lib/compat/pkg
.include "${PORTSDIR}/Mk/bsd.java.mk"
.endif
-.if defined(USE_R_MOD)
-.include "${PORTSDIR}/Mk/bsd.cran.mk"
-.endif
-
.if defined(USE_RUBY) || defined(USE_LIBRUBY)
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
.endif
diff --git a/astro/R-cran-maptools/Makefile b/astro/R-cran-maptools/Makefile
index 86565cf9f03..524194984e6 100644
--- a/astro/R-cran-maptools/Makefile
+++ b/astro/R-cran-maptools/Makefile
@@ -15,7 +15,6 @@ LICENSE_COMB= dual
RUN_DEPENDS= R-cran-sp>=1.0.11:${PORTSDIR}/math/R-cran-sp
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/converters/R-cran-RJSONIO/Makefile b/converters/R-cran-RJSONIO/Makefile
index bf24bf009fc..42f632f8c35 100644
--- a/converters/R-cran-RJSONIO/Makefile
+++ b/converters/R-cran-RJSONIO/Makefile
@@ -12,7 +12,6 @@ COMMENT= Serialize R objects to JSON, JavaScript Object Notation
LICENSE= BSD
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/converters/R-cran-rjson/Makefile b/converters/R-cran-rjson/Makefile
index 4203d52b75a..dd943745fdc 100644
--- a/converters/R-cran-rjson/Makefile
+++ b/converters/R-cran-rjson/Makefile
@@ -12,7 +12,6 @@ COMMENT= JSON for R
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/databases/R-cran-DBI/Makefile b/databases/R-cran-DBI/Makefile
index e9441776db9..2e58f4b78e4 100644
--- a/databases/R-cran-DBI/Makefile
+++ b/databases/R-cran-DBI/Makefile
@@ -13,7 +13,6 @@ COMMENT= R Database Interface
LICENSE= LGPL20 LGPL21 LGPL3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/databases/R-cran-RMySQL/Makefile b/databases/R-cran-RMySQL/Makefile
index 6677d6835d8..f38d6d1bc7d 100644
--- a/databases/R-cran-RMySQL/Makefile
+++ b/databases/R-cran-RMySQL/Makefile
@@ -15,7 +15,6 @@ LICENSE= GPLv2
RUN_DEPENDS= R-cran-DBI>=0.2.2:${PORTSDIR}/databases/R-cran-DBI
USE_MYSQL= yes
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/databases/R-cran-RSQLite.extfuns/Makefile b/databases/R-cran-RSQLite.extfuns/Makefile
index 833a9157268..bc1377bcf0d 100644
--- a/databases/R-cran-RSQLite.extfuns/Makefile
+++ b/databases/R-cran-RSQLite.extfuns/Makefile
@@ -15,7 +15,6 @@ LICENSE= AL2
BUILD_DEPENDS= R-cran-RSQLite>=0.11.1:${PORTSDIR}/databases/R-cran-RSQLite
RUN_DEPENDS:= ${BUILD_DEPENDS}
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/databases/R-cran-RSQLite/Makefile b/databases/R-cran-RSQLite/Makefile
index a675cee037f..42e32e8f4c8 100644
--- a/databases/R-cran-RSQLite/Makefile
+++ b/databases/R-cran-RSQLite/Makefile
@@ -15,7 +15,6 @@ LICENSE= LGPL20
BUILD_DEPENDS= R-cran-DBI>=0.2.5:${PORTSDIR}/databases/R-cran-DBI
RUN_DEPENDS:= ${BUILD_DEPENDS}
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/databases/R-cran-sqldf/Makefile b/databases/R-cran-sqldf/Makefile
index 2b275b967f7..dc3f1fd1952 100644
--- a/databases/R-cran-sqldf/Makefile
+++ b/databases/R-cran-sqldf/Makefile
@@ -20,7 +20,6 @@ BUILD_DEPENDS= R-cran-proto>=0.3.9.2_6:${PORTSDIR}/devel/R-cran-proto \
R-cran-RSQLite.extfuns>=0.0.1:${PORTSDIR}/databases/R-cran-RSQLite.extfuns
RUN_DEPENDS:= ${BUILD_DEPENDS}
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-Defaults/Makefile b/devel/R-cran-Defaults/Makefile
index 201de79bb34..127c272c1bb 100644
--- a/devel/R-cran-Defaults/Makefile
+++ b/devel/R-cran-Defaults/Makefile
@@ -13,7 +13,6 @@ COMMENT= Create Global Function Defaults
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-Hmisc/Makefile b/devel/R-cran-Hmisc/Makefile
index c4b34d7c131..7635f76665f 100644
--- a/devel/R-cran-Hmisc/Makefile
+++ b/devel/R-cran-Hmisc/Makefile
@@ -11,7 +11,6 @@ COMMENT= Harrell Miscellaneous functions useful for data analysis
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-RUnit/Makefile b/devel/R-cran-RUnit/Makefile
index 3ec69b22574..fdbea8fb727 100644
--- a/devel/R-cran-RUnit/Makefile
+++ b/devel/R-cran-RUnit/Makefile
@@ -12,7 +12,6 @@ COMMENT= R functions implementing a Unit Testing framework
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-Rcpp/Makefile b/devel/R-cran-Rcpp/Makefile
index 2573fbc0495..ae64a07b211 100644
--- a/devel/R-cran-Rcpp/Makefile
+++ b/devel/R-cran-Rcpp/Makefile
@@ -12,7 +12,6 @@ COMMENT= Seamless R and C++ Integration
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-bitops/Makefile b/devel/R-cran-bitops/Makefile
index 1c667e2f4a8..0c150fcb6f7 100644
--- a/devel/R-cran-bitops/Makefile
+++ b/devel/R-cran-bitops/Makefile
@@ -13,7 +13,6 @@ COMMENT= Functions for Bitwise operations
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-caTools/Makefile b/devel/R-cran-caTools/Makefile
index 8f71689fa6f..0a4a62681ff 100644
--- a/devel/R-cran-caTools/Makefile
+++ b/devel/R-cran-caTools/Makefile
@@ -13,7 +13,6 @@ LICENSE= GPLv3
RUN_DEPENDS= R-cran-bitops>0:${PORTSDIR}/devel/R-cran-bitops
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-caret/Makefile b/devel/R-cran-caret/Makefile
index 395007ce1e1..78ba75aa6c9 100644
--- a/devel/R-cran-caret/Makefile
+++ b/devel/R-cran-caret/Makefile
@@ -16,7 +16,6 @@ RUN_DEPENDS= R-cran-reshape2>0:${PORTSDIR}/devel/R-cran-reshape2 \
R-cran-plyr>0:${PORTSDIR}/devel/R-cran-plyr \
R-cran-foreach>0:${PORTSDIR}/devel/R-cran-foreach
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-chron/Makefile b/devel/R-cran-chron/Makefile
index bbc4d087501..9345c315f6e 100644
--- a/devel/R-cran-chron/Makefile
+++ b/devel/R-cran-chron/Makefile
@@ -12,7 +12,6 @@ COMMENT= R package for creating objects which can handle dates and times
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-foreach/Makefile b/devel/R-cran-foreach/Makefile
index 343f81bdc7e..ff0dc335373 100644
--- a/devel/R-cran-foreach/Makefile
+++ b/devel/R-cran-foreach/Makefile
@@ -14,7 +14,6 @@ LICENSE= AL2
RUN_DEPENDS= R-cran-iterators>=1.0.0:${PORTSDIR}/devel/R-cran-iterators
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-gbm/Makefile b/devel/R-cran-gbm/Makefile
index 2c975bfd4be..2fd8d7f8d7a 100644
--- a/devel/R-cran-gbm/Makefile
+++ b/devel/R-cran-gbm/Makefile
@@ -11,7 +11,6 @@ COMMENT= Extensions to AdaBoost algorithm
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-gdata/Makefile b/devel/R-cran-gdata/Makefile
index 073eba3c975..96d778109ed 100644
--- a/devel/R-cran-gdata/Makefile
+++ b/devel/R-cran-gdata/Makefile
@@ -14,9 +14,7 @@ LICENSE= GPLv2
RUN_DEPENDS= R-cran-gtools>0:${PORTSDIR}/devel/R-cran-gtools
-USES= perl5
+USES= cran:auto-plist perl5
USE_PERL5= run
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
.include <bsd.port.mk>
diff --git a/devel/R-cran-glmnet/Makefile b/devel/R-cran-glmnet/Makefile
index 7d4ebd28b2d..8683147787c 100644
--- a/devel/R-cran-glmnet/Makefile
+++ b/devel/R-cran-glmnet/Makefile
@@ -11,7 +11,6 @@ COMMENT= Lasso and elastic-net regularized generalized linear models
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-gsubfn/Makefile b/devel/R-cran-gsubfn/Makefile
index 404305d89fd..c9b01d0510c 100644
--- a/devel/R-cran-gsubfn/Makefile
+++ b/devel/R-cran-gsubfn/Makefile
@@ -14,7 +14,6 @@ LICENSE= GPLv2
RUN_DEPENDS= R-cran-proto>=0.3.9.2_6:${PORTSDIR}/devel/R-cran-proto
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-gtools/Makefile b/devel/R-cran-gtools/Makefile
index 81632e60aa0..64c62692ace 100644
--- a/devel/R-cran-gtools/Makefile
+++ b/devel/R-cran-gtools/Makefile
@@ -11,7 +11,6 @@ COMMENT= Various R programming tools
LICENSE= LGPL21
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-iterators/Makefile b/devel/R-cran-iterators/Makefile
index 516764aacc1..6d1db9b1d35 100644
--- a/devel/R-cran-iterators/Makefile
+++ b/devel/R-cran-iterators/Makefile
@@ -12,7 +12,6 @@ COMMENT= Iterator construct for R
LICENSE= AL2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-itertools/Makefile b/devel/R-cran-itertools/Makefile
index 592a624f6bc..233b08d1e40 100644
--- a/devel/R-cran-itertools/Makefile
+++ b/devel/R-cran-itertools/Makefile
@@ -12,7 +12,6 @@ COMMENT= Iterator Tools for R
RUN_DEPENDS= R-cran-iterators>=1.0.0:${PORTSDIR}/devel/R-cran-iterators
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-memoise/Makefile b/devel/R-cran-memoise/Makefile
index 1fbdae596b2..3f40c58a0c2 100644
--- a/devel/R-cran-memoise/Makefile
+++ b/devel/R-cran-memoise/Makefile
@@ -12,7 +12,6 @@ COMMENT= Memoise functions for R
RUN_DEPENDS= R-cran-digest>=0:${PORTSDIR}/security/R-cran-digest
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-plyr/Makefile b/devel/R-cran-plyr/Makefile
index 8682b47a891..17049630dc1 100644
--- a/devel/R-cran-plyr/Makefile
+++ b/devel/R-cran-plyr/Makefile
@@ -13,7 +13,6 @@ COMMENT= Tools for splitting, applying, and combining data
RUN_DEPENDS= R-cran-itertools>0:${PORTSDIR}/devel/R-cran-itertools \
R-cran-iterators>0:${PORTSDIR}/devel/R-cran-iterators
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-proto/Makefile b/devel/R-cran-proto/Makefile
index d213015b24e..8ef06d05b52 100644
--- a/devel/R-cran-proto/Makefile
+++ b/devel/R-cran-proto/Makefile
@@ -12,7 +12,6 @@ COMMENT= Prototype object-based programming
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-randomForest/Makefile b/devel/R-cran-randomForest/Makefile
index dc73bf0d531..6a11da07e0f 100644
--- a/devel/R-cran-randomForest/Makefile
+++ b/devel/R-cran-randomForest/Makefile
@@ -11,7 +11,6 @@ COMMENT= Classification based on a forest of trees using random inputs
RUN_DEPENDS= R-cran-RColorBrewer>=1.0.5_6:${PORTSDIR}/graphics/R-cran-RColorBrewer
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-reshape/Makefile b/devel/R-cran-reshape/Makefile
index 419cc5475b3..eb30f9b33b2 100644
--- a/devel/R-cran-reshape/Makefile
+++ b/devel/R-cran-reshape/Makefile
@@ -14,7 +14,6 @@ LICENSE= MIT
RUN_DEPENDS= R-cran-plyr>0:${PORTSDIR}/devel/R-cran-plyr
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/devel/R-cran-reshape2/Makefile b/devel/R-cran-reshape2/Makefile
index d9da7658b6b..95c9b2c52e6 100644
--- a/devel/R-cran-reshape2/Makefile
+++ b/devel/R-cran-reshape2/Makefile
@@ -15,7 +15,6 @@ LICENSE= MIT
RUN_DEPENDS= R-cran-plyr>=1.5:${PORTSDIR}/devel/R-cran-plyr \
R-cran-stringr>0:${PORTSDIR}/textproc/R-cran-stringr
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-PerformanceAnalytics/Makefile b/finance/R-cran-PerformanceAnalytics/Makefile
index ac8ea48b3bc..35e29d225e9 100644
--- a/finance/R-cran-PerformanceAnalytics/Makefile
+++ b/finance/R-cran-PerformanceAnalytics/Makefile
@@ -15,7 +15,6 @@ LICENSE= GPLv1
RUN_DEPENDS= R-cran-zoo>0:${PORTSDIR}/math/R-cran-zoo \
R-cran-xts>=0.8.9:${PORTSDIR}/math/R-cran-xts
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-RFinanceYJ/Makefile b/finance/R-cran-RFinanceYJ/Makefile
index 9f6044b1dfc..193024b2c2d 100644
--- a/finance/R-cran-RFinanceYJ/Makefile
+++ b/finance/R-cran-RFinanceYJ/Makefile
@@ -15,7 +15,6 @@ LICENSE= BSD
RUN_DEPENDS= R-cran-XML>0:${PORTSDIR}/textproc/R-cran-XML \
R-cran-xts>0:${PORTSDIR}/math/R-cran-xts
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-TTR/Makefile b/finance/R-cran-TTR/Makefile
index f485e9acbcb..bf84cbc4fba 100644
--- a/finance/R-cran-TTR/Makefile
+++ b/finance/R-cran-TTR/Makefile
@@ -14,7 +14,6 @@ LICENSE= GPLv2
RUN_DEPENDS= R-cran-xts>=0.9.3:${PORTSDIR}/math/R-cran-xts
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-ccgarch/Makefile b/finance/R-cran-ccgarch/Makefile
index bfd63a65fca..70726c31110 100644
--- a/finance/R-cran-ccgarch/Makefile
+++ b/finance/R-cran-ccgarch/Makefile
@@ -13,7 +13,6 @@ COMMENT= Conditional Correlation GARCH models
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-fBasics/Makefile b/finance/R-cran-fBasics/Makefile
index c0c0a434fcb..7cb020a80a2 100644
--- a/finance/R-cran-fBasics/Makefile
+++ b/finance/R-cran-fBasics/Makefile
@@ -18,7 +18,6 @@ RUN_DEPENDS= R-cran-timeDate>0:${PORTSDIR}/finance/R-cran-timeDate \
R-cran-stabledist>0:${PORTSDIR}/math/R-cran-stabledist \
R-cran-gss>0:${PORTSDIR}/math/R-cran-gss
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-fGarch/Makefile b/finance/R-cran-fGarch/Makefile
index aa2575d1462..c7113c1e888 100644
--- a/finance/R-cran-fGarch/Makefile
+++ b/finance/R-cran-fGarch/Makefile
@@ -17,7 +17,6 @@ RUN_DEPENDS= R-cran-timeDate>0:${PORTSDIR}/finance/R-cran-timeDate \
R-cran-timeSeries>0:${PORTSDIR}/finance/R-cran-timeSeries \
R-cran-fBasics>=2100.78:${PORTSDIR}/finance/R-cran-fBasics
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-gmm/Makefile b/finance/R-cran-gmm/Makefile
index 1b6e5ca74f0..92324ad1fb5 100644
--- a/finance/R-cran-gmm/Makefile
+++ b/finance/R-cran-gmm/Makefile
@@ -15,7 +15,6 @@ LICENSE_COMB= dual
RUN_DEPENDS= R-cran-sandwich>0:${PORTSDIR}/math/R-cran-sandwich
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-lmtest/Makefile b/finance/R-cran-lmtest/Makefile
index 46e248a56f1..7f1301fdaaa 100644
--- a/finance/R-cran-lmtest/Makefile
+++ b/finance/R-cran-lmtest/Makefile
@@ -16,7 +16,6 @@ RUN_DEPENDS= R-cran-zoo>=0:${PORTSDIR}/math/R-cran-zoo \
R-cran-strucchange>0:${PORTSDIR}/finance/R-cran-strucchange \
R-cran-sandwich>=2.2.4:${PORTSDIR}/math/R-cran-sandwich
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-plm/Makefile b/finance/R-cran-plm/Makefile
index de23ece2ad6..3242ad36e5d 100644
--- a/finance/R-cran-plm/Makefile
+++ b/finance/R-cran-plm/Makefile
@@ -18,7 +18,6 @@ RUN_DEPENDS= R-cran-bdsmatrix>0:${PORTSDIR}/math/R-cran-bdsmatrix \
R-cran-sandwich>0:${PORTSDIR}/math/R-cran-sandwich \
R-cran-zoo>0:${PORTSDIR}/math/R-cran-zoo
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-quantmod/Makefile b/finance/R-cran-quantmod/Makefile
index a5ce01af050..21e1c17251d 100644
--- a/finance/R-cran-quantmod/Makefile
+++ b/finance/R-cran-quantmod/Makefile
@@ -17,7 +17,6 @@ RUN_DEPENDS= R-cran-Defaults>0:${PORTSDIR}/devel/R-cran-Defaults \
R-cran-zoo>0:${PORTSDIR}/math/R-cran-zoo \
R-cran-TTR>=0.2:${PORTSDIR}/finance/R-cran-TTR
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-strucchange/Makefile b/finance/R-cran-strucchange/Makefile
index 0e5df1ef4c2..b7e11b90e7c 100644
--- a/finance/R-cran-strucchange/Makefile
+++ b/finance/R-cran-strucchange/Makefile
@@ -14,7 +14,6 @@ LICENSE= GPLv2
RUN_DEPENDS= R-cran-zoo>0:${PORTSDIR}/math/R-cran-zoo \
R-cran-sandwich>0:${PORTSDIR}/math/R-cran-sandwich
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-timeDate/Makefile b/finance/R-cran-timeDate/Makefile
index fc7de256214..5eb5bbffac6 100644
--- a/finance/R-cran-timeDate/Makefile
+++ b/finance/R-cran-timeDate/Makefile
@@ -13,7 +13,6 @@ COMMENT= Chronological and Calendar Objects
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-timeSeries/Makefile b/finance/R-cran-timeSeries/Makefile
index 4ac3b238e57..4107222f1fd 100644
--- a/finance/R-cran-timeSeries/Makefile
+++ b/finance/R-cran-timeSeries/Makefile
@@ -15,7 +15,6 @@ LICENSE_COMB= dual
RUN_DEPENDS= R-cran-timeDate>=2150.95:${PORTSDIR}/finance/R-cran-timeDate
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-tseries/Makefile b/finance/R-cran-tseries/Makefile
index 7f51fb37573..3eed204143a 100644
--- a/finance/R-cran-tseries/Makefile
+++ b/finance/R-cran-tseries/Makefile
@@ -18,7 +18,6 @@ BUILD_DEPENDS= R-cran-quadprog>0:${PORTSDIR}/math/R-cran-quadprog \
RUN_DEPENDS= R-cran-quadprog>0:${PORTSDIR}/math/R-cran-quadprog \
R-cran-zoo>0:${PORTSDIR}/math/R-cran-zoo
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-urca/Makefile b/finance/R-cran-urca/Makefile
index 4059a9abf60..059dc678f96 100644
--- a/finance/R-cran-urca/Makefile
+++ b/finance/R-cran-urca/Makefile
@@ -13,7 +13,6 @@ COMMENT= Unit root and cointegration tests for time series data
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/finance/R-cran-vars/Makefile b/finance/R-cran-vars/Makefile
index 53e64af456b..f4ee525db37 100644
--- a/finance/R-cran-vars/Makefile
+++ b/finance/R-cran-vars/Makefile
@@ -18,7 +18,6 @@ RUN_DEPENDS= R-cran-strucchange>0:${PORTSDIR}/finance/R-cran-strucchange \
R-cran-lmtest>=0.9.26:${PORTSDIR}/finance/R-cran-lmtest \
R-cran-sandwich>=2.2.4:${PORTSDIR}/math/R-cran-sandwich
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/ftp/R-cran-RCurl/Makefile b/ftp/R-cran-RCurl/Makefile
index 9fbaa41e32d..bcd1315d735 100644
--- a/ftp/R-cran-RCurl/Makefile
+++ b/ftp/R-cran-RCurl/Makefile
@@ -16,7 +16,6 @@ BUILD_DEPENDS= curl-config:${PORTSDIR}/ftp/curl
RUN_DEPENDS= R-cran-bitops>0:${PORTSDIR}/devel/R-cran-bitops
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-GDD/Makefile b/graphics/R-cran-GDD/Makefile
index e7ce8fca392..70a3caab2a8 100644
--- a/graphics/R-cran-GDD/Makefile
+++ b/graphics/R-cran-GDD/Makefile
@@ -17,7 +17,6 @@ RUN_DEPENDS:= ${BUILD_DEPENDS}
WRKSRC= ${WRKDIR}/${PORTNAME}
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-RColorBrewer/Makefile b/graphics/R-cran-RColorBrewer/Makefile
index 71ed9c03af7..0b4cca1ec8b 100644
--- a/graphics/R-cran-RColorBrewer/Makefile
+++ b/graphics/R-cran-RColorBrewer/Makefile
@@ -12,7 +12,6 @@ COMMENT= ColorBrewer palettes
LICENSE= AL2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-colorspace/Makefile b/graphics/R-cran-colorspace/Makefile
index 400b1eea546..9b1c01b541d 100644
--- a/graphics/R-cran-colorspace/Makefile
+++ b/graphics/R-cran-colorspace/Makefile
@@ -12,7 +12,6 @@ COMMENT= Color Space Manipulation
LICENSE= BSD
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-diagram/Makefile b/graphics/R-cran-diagram/Makefile
index 67344d3798c..267fe7acffe 100644
--- a/graphics/R-cran-diagram/Makefile
+++ b/graphics/R-cran-diagram/Makefile
@@ -15,7 +15,6 @@ LICENSE_COMB= dual
RUN_DEPENDS= R-cran-shape>0:${PORTSDIR}/graphics/R-cran-shape
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-dichromat/Makefile b/graphics/R-cran-dichromat/Makefile
index d8536a86c9d..2f7fa0b95e7 100644
--- a/graphics/R-cran-dichromat/Makefile
+++ b/graphics/R-cran-dichromat/Makefile
@@ -12,7 +12,6 @@ COMMENT= Color schemes for dichromats
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-ggplot2/Makefile b/graphics/R-cran-ggplot2/Makefile
index 5bebcf971e7..72ad1e3bc93 100644
--- a/graphics/R-cran-ggplot2/Makefile
+++ b/graphics/R-cran-ggplot2/Makefile
@@ -18,7 +18,6 @@ RUN_DEPENDS= R-cran-plyr>=1.7.1:${PORTSDIR}/devel/R-cran-plyr \
R-cran-scales>=0.2.3:${PORTSDIR}/graphics/R-cran-scales \
R-cran-proto>=0:${PORTSDIR}/devel/R-cran-proto
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-munsell/Makefile b/graphics/R-cran-munsell/Makefile
index 49e08dad9d7..72a99581281 100644
--- a/graphics/R-cran-munsell/Makefile
+++ b/graphics/R-cran-munsell/Makefile
@@ -18,7 +18,6 @@ LICENSE_PERMS_CW= auto-accept
RUN_DEPENDS= R-cran-colorspace>0:${PORTSDIR}/graphics/R-cran-colorspace
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-pixmap/Makefile b/graphics/R-cran-pixmap/Makefile
index 69f993e990b..62c48ca7e67 100644
--- a/graphics/R-cran-pixmap/Makefile
+++ b/graphics/R-cran-pixmap/Makefile
@@ -12,7 +12,6 @@ COMMENT= Bitmap Images ("Pixel Maps")
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-png/Makefile b/graphics/R-cran-png/Makefile
index 3b95c5ceab8..f197fee93f1 100644
--- a/graphics/R-cran-png/Makefile
+++ b/graphics/R-cran-png/Makefile
@@ -15,7 +15,6 @@ LICENSE_COMB= dual
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-rgdal/Makefile b/graphics/R-cran-rgdal/Makefile
index 2966563a0f6..28b6f61cb97 100644
--- a/graphics/R-cran-rgdal/Makefile
+++ b/graphics/R-cran-rgdal/Makefile
@@ -16,8 +16,7 @@ LIB_DEPENDS= gdal:${PORTSDIR}/graphics/gdal \
proj:${PORTSDIR}/graphics/proj
RUN_DEPENDS= R-cran-sp>=1.0.9:${PORTSDIR}/math/R-cran-sp
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
R_POSTCMD_INSTALL_OPTIONS+= --configure-args="--with-proj-lib=${LOCALBASE}/lib"
diff --git a/graphics/R-cran-rtiff/Makefile b/graphics/R-cran-rtiff/Makefile
index fd6f280a08a..77d5a674526 100644
--- a/graphics/R-cran-rtiff/Makefile
+++ b/graphics/R-cran-rtiff/Makefile
@@ -15,7 +15,6 @@ RUN_DEPENDS= R-cran-pixmap>0:${PORTSDIR}/graphics/R-cran-pixmap
LICENSE_FILE= ${WRKSRC}/LICENSE
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-scales/Makefile b/graphics/R-cran-scales/Makefile
index b98c942d7af..14cc7bc1865 100644
--- a/graphics/R-cran-scales/Makefile
+++ b/graphics/R-cran-scales/Makefile
@@ -18,7 +18,6 @@ RUN_DEPENDS= R-cran-RColorBrewer>=0:${PORTSDIR}/graphics/R-cran-RColorBrewer \
R-cran-plyr>=1.2:${PORTSDIR}/devel/R-cran-plyr \
R-cran-labeling>=0:${PORTSDIR}/math/R-cran-labeling
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/graphics/R-cran-shape/Makefile b/graphics/R-cran-shape/Makefile
index 5d11f1b5d60..3c5ef1e941e 100644
--- a/graphics/R-cran-shape/Makefile
+++ b/graphics/R-cran-shape/Makefile
@@ -12,7 +12,6 @@ COMMENT= Functions for plotting graphical shapes, colors
LICENSE= GPLv3
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-ChangeAnomalyDetection/Makefile b/math/R-cran-ChangeAnomalyDetection/Makefile
index c7f35642eda..e4384292493 100644
--- a/math/R-cran-ChangeAnomalyDetection/Makefile
+++ b/math/R-cran-ChangeAnomalyDetection/Makefile
@@ -15,7 +15,6 @@ LICENSE= BSD
RUN_DEPENDS= R-cran-TTR>0:${PORTSDIR}/finance/R-cran-TTR \
R-cran-forecast>0:${PORTSDIR}/math/R-cran-forecast
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-Formula/Makefile b/math/R-cran-Formula/Makefile
index e144fbde28f..833da87858e 100644
--- a/math/R-cran-Formula/Makefile
+++ b/math/R-cran-Formula/Makefile
@@ -12,7 +12,6 @@ COMMENT= Extended Model Formulas
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-KFAS/Makefile b/math/R-cran-KFAS/Makefile
index 79c2680f43b..925d0aaa2d0 100644
--- a/math/R-cran-KFAS/Makefile
+++ b/math/R-cran-KFAS/Makefile
@@ -13,7 +13,6 @@ COMMENT= Kalman filter and smoothers for exponential family state space models
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-LearnBayes/Makefile b/math/R-cran-LearnBayes/Makefile
index 89698034362..62699cdab84 100644
--- a/math/R-cran-LearnBayes/Makefile
+++ b/math/R-cran-LearnBayes/Makefile
@@ -13,7 +13,6 @@ COMMENT= Functions for Learning Bayesian Inference
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-MCMCpack/Makefile b/math/R-cran-MCMCpack/Makefile
index 9cb31045c15..76b5bac8a72 100644
--- a/math/R-cran-MCMCpack/Makefile
+++ b/math/R-cran-MCMCpack/Makefile
@@ -16,7 +16,6 @@ RUN_DEPENDS= R-cran-coda>0.11.3:${PORTSDIR}/math/R-cran-coda
# Actually required 4.0 or later, but at least 4.2 in the FreeBSD ports tree
USE_GCC= 4.2+
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-RHmm/Makefile b/math/R-cran-RHmm/Makefile
index 20cd9af59bf..63556734110 100644
--- a/math/R-cran-RHmm/Makefile
+++ b/math/R-cran-RHmm/Makefile
@@ -13,7 +13,6 @@ COMMENT= Hidden Markov Models simulations and estimations
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-RSvgDevice/Makefile b/math/R-cran-RSvgDevice/Makefile
index 99ec9839bfa..65b9b71fc12 100644
--- a/math/R-cran-RSvgDevice/Makefile
+++ b/math/R-cran-RSvgDevice/Makefile
@@ -13,7 +13,6 @@ COMMENT= A R SVG graphics device
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-RcppArmadillo/Makefile b/math/R-cran-RcppArmadillo/Makefile
index 467f85d9a74..c0075cb5ecf 100644
--- a/math/R-cran-RcppArmadillo/Makefile
+++ b/math/R-cran-RcppArmadillo/Makefile
@@ -14,7 +14,6 @@ LICENSE_COMB= dual
RUN_DEPENDS= R-cran-Rcpp>=0.10.5:${PORTSDIR}/devel/R-cran-Rcpp
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-SuppDists/Makefile b/math/R-cran-SuppDists/Makefile
index 7b182ecca42..da3cf5d366e 100644
--- a/math/R-cran-SuppDists/Makefile
+++ b/math/R-cran-SuppDists/Makefile
@@ -17,8 +17,7 @@ COMMENT= Supplementary distributions and RNG for R
LICENSE= GPLv2
BENCHMARK_SCRIPT= R-benchmark-25.R
-R_MOD_AUTOPLIST= yes
-USE_R_MOD= yes
+USES= cran:auto-plist
WRKSRC = ${WRKDIR}/${PORTNAME}
.if defined(MAINTAINER_MODE)
diff --git a/math/R-cran-Zelig/Makefile b/math/R-cran-Zelig/Makefile
index c318119f02f..506400354f5 100644
--- a/math/R-cran-Zelig/Makefile
+++ b/math/R-cran-Zelig/Makefile
@@ -13,7 +13,6 @@ COMMENT= Everyone's Statistical Software
BUILD_DEPENDS= R-cran-sandwich>=0:${PORTSDIR}/math/R-cran-sandwich
RUN_DEPENDS= R-cran-sandwich>=0:${PORTSDIR}/math/R-cran-sandwich
-USE_R_MOD= yes
-R_MOD_AUTOPLIST=yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-bdsmatrix/Makefile b/math/R-cran-bdsmatrix/Makefile
index 23972b108e4..fb5b1c8fc1b 100644
--- a/math/R-cran-bdsmatrix/Makefile
+++ b/math/R-cran-bdsmatrix/Makefile
@@ -12,7 +12,6 @@ COMMENT= Routines for Block Diagonal Symmetric matrices
LICENSE= LGPL20
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-car/Makefile b/math/R-cran-car/Makefile
index 410f25fa8b5..49524e3216b 100644
--- a/math/R-cran-car/Makefile
+++ b/math/R-cran-car/Makefile
@@ -12,7 +12,6 @@ COMMENT= Companion to Applied Regression for R
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-coda/Makefile b/math/R-cran-coda/Makefile
index 7ba985e87e8..d4fec0a3ea1 100644
--- a/math/R-cran-coda/Makefile
+++ b/math/R-cran-coda/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${DISTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= Output analysis and diagnostics for MCMC
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-deldir/Makefile b/math/R-cran-deldir/Makefile
index 28ac1db7c52..a93b8074a94 100644
--- a/math/R-cran-deldir/Makefile
+++ b/math/R-cran-deldir/Makefile
@@ -13,7 +13,6 @@ COMMENT= Delaunay Triangulation and Dirichlet (Voronoi) Tessellation
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-dlmodeler/Makefile b/math/R-cran-dlmodeler/Makefile
index 1976515f95c..5c32faa27cb 100644
--- a/math/R-cran-dlmodeler/Makefile
+++ b/math/R-cran-dlmodeler/Makefile
@@ -13,7 +13,6 @@ COMMENT= Generalized Dynamic Linear Modeler
LICENSE= GPLv2 GPLv3 BSD
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-forecast/Makefile b/math/R-cran-forecast/Makefile
index d4291d7a953..40569cd7694 100644
--- a/math/R-cran-forecast/Makefile
+++ b/math/R-cran-forecast/Makefile
@@ -20,7 +20,6 @@ RUN_DEPENDS= R-cran-tseries>0:${PORTSDIR}/finance/R-cran-tseries \
R-cran-RcppArmadillo>=0.2.35:${PORTSDIR}/math/R-cran-RcppArmadillo \
R-cran-colorspace>0:${PORTSDIR}/graphics/R-cran-colorspace
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-fracdiff/Makefile b/math/R-cran-fracdiff/Makefile
index 4c4fd08a11e..cdf2ac3fb79 100644
--- a/math/R-cran-fracdiff/Makefile
+++ b/math/R-cran-fracdiff/Makefile
@@ -13,7 +13,6 @@ COMMENT= Fractionally differenced ARIMA aka ARFIMA(p,d,q) models
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-gpclib/Makefile b/math/R-cran-gpclib/Makefile
index cac005127b5..f0ee9dc17b3 100644
--- a/math/R-cran-gpclib/Makefile
+++ b/math/R-cran-gpclib/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${DISTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= General Polygon Clipping Library for R
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-gss/Makefile b/math/R-cran-gss/Makefile
index acab45b520e..d6d48677f29 100644
--- a/math/R-cran-gss/Makefile
+++ b/math/R-cran-gss/Makefile
@@ -12,7 +12,6 @@ COMMENT= General Smoothing Splines
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-gtable/Makefile b/math/R-cran-gtable/Makefile
index c8c5146c4f7..ae9e4d06108 100644
--- a/math/R-cran-gtable/Makefile
+++ b/math/R-cran-gtable/Makefile
@@ -11,7 +11,6 @@ COMMENT= Arrange grobs in tables
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-igraph/Makefile b/math/R-cran-igraph/Makefile
index 0cea4173b51..b7a6032a623 100644
--- a/math/R-cran-igraph/Makefile
+++ b/math/R-cran-igraph/Makefile
@@ -12,8 +12,7 @@ COMMENT= R extension package for igraph
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.pre.mk>
diff --git a/math/R-cran-inline/Makefile b/math/R-cran-inline/Makefile
index f440e6c1759..ed2bc87babc 100644
--- a/math/R-cran-inline/Makefile
+++ b/math/R-cran-inline/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= Inline C, C++, Fortran function calls from R
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-labeling/Makefile b/math/R-cran-labeling/Makefile
index c8fd02f6255..e55e3cccc35 100644
--- a/math/R-cran-labeling/Makefile
+++ b/math/R-cran-labeling/Makefile
@@ -12,7 +12,6 @@ COMMENT= Provides a range of axis labeling algorithms
LICENSE= MIT
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-memisc/Makefile b/math/R-cran-memisc/Makefile
index 05d840b5ce5..de55bb7db64 100644
--- a/math/R-cran-memisc/Makefile
+++ b/math/R-cran-memisc/Makefile
@@ -12,7 +12,6 @@ COMMENT= Provides an infrastructure for the management of survey data
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-mvtnorm/Makefile b/math/R-cran-mvtnorm/Makefile
index 2255af68030..5577b769db5 100644
--- a/math/R-cran-mvtnorm/Makefile
+++ b/math/R-cran-mvtnorm/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION:C/\./-/g:C/-/\./1}
MAINTAINER= wen@FreeBSD.org
COMMENT= Multivariate Normal and t Distributions
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-nnls/Makefile b/math/R-cran-nnls/Makefile
index 10585c176b9..95107f1cf83 100644
--- a/math/R-cran-nnls/Makefile
+++ b/math/R-cran-nnls/Makefile
@@ -12,7 +12,6 @@ COMMENT= R implementation of an algorithm for non-negative least squares
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-outliers/Makefile b/math/R-cran-outliers/Makefile
index d2974356fa1..071f5b7ddb1 100644
--- a/math/R-cran-outliers/Makefile
+++ b/math/R-cran-outliers/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Collection of some tests commonly used for identifying outliers
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-psych/Makefile b/math/R-cran-psych/Makefile
index 55e6ec64a57..f397fd209ea 100644
--- a/math/R-cran-psych/Makefile
+++ b/math/R-cran-psych/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= drue@therub.org
COMMENT= Psych package for the R project
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-quadprog/Makefile b/math/R-cran-quadprog/Makefile
index 310e236afcf..135749510e8 100644
--- a/math/R-cran-quadprog/Makefile
+++ b/math/R-cran-quadprog/Makefile
@@ -13,7 +13,6 @@ COMMENT= Functions to solve Quadratic Programming Problems
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-sandwich/Makefile b/math/R-cran-sandwich/Makefile
index a475b49d972..ab6cc8476f2 100644
--- a/math/R-cran-sandwich/Makefile
+++ b/math/R-cran-sandwich/Makefile
@@ -14,7 +14,6 @@ LICENSE= GPLv2
RUN_DEPENDS= R-cran-zoo>0:${PORTSDIR}/math/R-cran-zoo
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-sm/Makefile b/math/R-cran-sm/Makefile
index ad104f1310b..8cd68275b7d 100644
--- a/math/R-cran-sm/Makefile
+++ b/math/R-cran-sm/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${DISTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= Smoothing methods for nonparametric regression and density estimation
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-sp/Makefile b/math/R-cran-sp/Makefile
index 1dea766f39c..c2159f35ca1 100644
--- a/math/R-cran-sp/Makefile
+++ b/math/R-cran-sp/Makefile
@@ -13,7 +13,6 @@ COMMENT= R Classes and Methods for Spatial Data
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-spdep/Makefile b/math/R-cran-spdep/Makefile
index f0f82037b19..e5a8d2b79c5 100644
--- a/math/R-cran-spdep/Makefile
+++ b/math/R-cran-spdep/Makefile
@@ -17,7 +17,6 @@ RUN_DEPENDS= R-cran-sp>=0.9:${PORTSDIR}/math/R-cran-sp \
R-cran-coda>0:${PORTSDIR}/math/R-cran-coda \
R-cran-LearnBayes>0:${PORTSDIR}/math/R-cran-LearnBayes
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-sspir/Makefile b/math/R-cran-sspir/Makefile
index 05d252e150d..42c6663d9eb 100644
--- a/math/R-cran-sspir/Makefile
+++ b/math/R-cran-sspir/Makefile
@@ -13,8 +13,7 @@ COMMENT= A glm-like formula to define dynamic generalized linear models
RUN_DEPENDS= R-cran-mvtnorm>=0.9.96_11:${PORTSDIR}/math/R-cran-mvtnorm \
R-cran-KFAS>=0.9.11_3:${PORTSDIR}/math/R-cran-KFAS
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-stabledist/Makefile b/math/R-cran-stabledist/Makefile
index 0a42f011a77..23d1a7b9768 100644
--- a/math/R-cran-stabledist/Makefile
+++ b/math/R-cran-stabledist/Makefile
@@ -13,7 +13,6 @@ COMMENT= Stable Distribution Functions
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-xts/Makefile b/math/R-cran-xts/Makefile
index 91ff87730fa..2be21d64e86 100644
--- a/math/R-cran-xts/Makefile
+++ b/math/R-cran-xts/Makefile
@@ -15,7 +15,6 @@ LICENSE_COMB= dual
RUN_DEPENDS= R-cran-zoo>=1.7.10:${PORTSDIR}/math/R-cran-zoo
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/math/R-cran-zoo/Makefile b/math/R-cran-zoo/Makefile
index 0ca11923969..30f33082648 100644
--- a/math/R-cran-zoo/Makefile
+++ b/math/R-cran-zoo/Makefile
@@ -12,7 +12,6 @@ COMMENT= S3 Infrastructure for Regular and Irregular Time Series
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/net/R-cran-twitteR/Makefile b/net/R-cran-twitteR/Makefile
index d0e4f4e22ba..0430ff67550 100644
--- a/net/R-cran-twitteR/Makefile
+++ b/net/R-cran-twitteR/Makefile
@@ -16,7 +16,6 @@ RUN_DEPENDS= R-cran-RCurl>0:${PORTSDIR}/ftp/R-cran-RCurl \
R-cran-rjson>=0.2.12:${PORTSDIR}/converters/R-cran-rjson \
R-cran-ROAuth>=0.9.3:${PORTSDIR}/security/R-cran-ROAuth
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/science/R-cran-AMORE/Makefile b/science/R-cran-AMORE/Makefile
index c659fe10231..0315055b457 100644
--- a/science/R-cran-AMORE/Makefile
+++ b/science/R-cran-AMORE/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION:C/\./-/g:C/-/\./1}
MAINTAINER= wen@FreeBSD.org
COMMENT= A MORE flexible neural network package
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/science/R-cran-DCluster/Makefile b/science/R-cran-DCluster/Makefile
index 864d8f97ead..f019af4f1ca 100644
--- a/science/R-cran-DCluster/Makefile
+++ b/science/R-cran-DCluster/Makefile
@@ -15,7 +15,6 @@ LICENSE_COMB= dual
RUN_DEPENDS= R-cran-spdep>0:${PORTSDIR}/math/R-cran-spdep
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/science/R-cran-Epi/Makefile b/science/R-cran-Epi/Makefile
index 9cba92d1f90..dce4ccfca99 100644
--- a/science/R-cran-Epi/Makefile
+++ b/science/R-cran-Epi/Makefile
@@ -12,7 +12,6 @@ COMMENT= Package for statistical analysis in epidemiology
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/science/R-cran-bayesm/Makefile b/science/R-cran-bayesm/Makefile
index c97b11cfea8..170da2970db 100644
--- a/science/R-cran-bayesm/Makefile
+++ b/science/R-cran-bayesm/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION:C/\./-/g:C/-/\./1}
MAINTAINER= wen@FreeBSD.org
COMMENT= Bayesian Inference for Marketing/Micro-econometrics
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/science/R-cran-e1071/Makefile b/science/R-cran-e1071/Makefile
index ce539f9f82f..c1f281efe97 100644
--- a/science/R-cran-e1071/Makefile
+++ b/science/R-cran-e1071/Makefile
@@ -12,7 +12,6 @@ COMMENT= Misc Functions of the Department of Statistics (e1071), TU Wien
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/science/R-cran-eco/Makefile b/science/R-cran-eco/Makefile
index 8ff0f31d7aa..a334d2c0b29 100644
--- a/science/R-cran-eco/Makefile
+++ b/science/R-cran-eco/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION:C/\./-/g:C/-/\./1}
MAINTAINER= wen@FreeBSD.org
COMMENT= R Package for Ecological Inference in 2x2 Tables
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/science/R-cran-epicalc/Makefile b/science/R-cran-epicalc/Makefile
index 514972958b6..e6183c54eea 100644
--- a/science/R-cran-epicalc/Makefile
+++ b/science/R-cran-epicalc/Makefile
@@ -10,7 +10,6 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= Epidemiological calculator
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/science/R-cran-snow/Makefile b/science/R-cran-snow/Makefile
index bf6769fbec5..d3c983506a3 100644
--- a/science/R-cran-snow/Makefile
+++ b/science/R-cran-snow/Makefile
@@ -13,7 +13,6 @@ COMMENT= Support for simple parallel computing in R
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/science/R-cran-som/Makefile b/science/R-cran-som/Makefile
index 8bbc2b9636d..1e08a3bfe60 100644
--- a/science/R-cran-som/Makefile
+++ b/science/R-cran-som/Makefile
@@ -12,7 +12,6 @@ COMMENT= Self-Organizing Map
LICENSE= GPLv3
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/security/R-cran-ROAuth/Makefile b/security/R-cran-ROAuth/Makefile
index c5e195f88d0..54c086a8530 100644
--- a/security/R-cran-ROAuth/Makefile
+++ b/security/R-cran-ROAuth/Makefile
@@ -15,7 +15,6 @@ LICENSE= ART20
RUN_DEPENDS= R-cran-RCurl>=1.6.4:${PORTSDIR}/ftp/R-cran-RCurl \
R-cran-digest>0:${PORTSDIR}/security/R-cran-digest
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/security/R-cran-digest/Makefile b/security/R-cran-digest/Makefile
index b22401bdcb8..4b5d221b9d1 100644
--- a/security/R-cran-digest/Makefile
+++ b/security/R-cran-digest/Makefile
@@ -12,7 +12,6 @@ COMMENT= Create cryptographic hash digests of R objects
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/textproc/R-cran-R2HTML/Makefile b/textproc/R-cran-R2HTML/Makefile
index 94f8ea5c9a3..1974823a1c7 100644
--- a/textproc/R-cran-R2HTML/Makefile
+++ b/textproc/R-cran-R2HTML/Makefile
@@ -12,7 +12,6 @@ COMMENT= HTML exportation for R objects
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/textproc/R-cran-XML/Makefile b/textproc/R-cran-XML/Makefile
index 3b789282911..8218f7165d2 100644
--- a/textproc/R-cran-XML/Makefile
+++ b/textproc/R-cran-XML/Makefile
@@ -12,8 +12,7 @@ COMMENT= Tools for parsing and generating XML
LICENSE= BSD
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
USE_GNOME= libxml2
.include <bsd.port.mk>
diff --git a/textproc/R-cran-stringr/Makefile b/textproc/R-cran-stringr/Makefile
index a2afaf17afb..8ae55d4f7f4 100644
--- a/textproc/R-cran-stringr/Makefile
+++ b/textproc/R-cran-stringr/Makefile
@@ -14,7 +14,6 @@ LICENSE= GPLv2
RUN_DEPENDS= R-cran-plyr>0:${PORTSDIR}/devel/R-cran-plyr
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/textproc/R-cran-xtable/Makefile b/textproc/R-cran-xtable/Makefile
index 2815c2e8000..bc650f6442c 100644
--- a/textproc/R-cran-xtable/Makefile
+++ b/textproc/R-cran-xtable/Makefile
@@ -13,7 +13,6 @@ COMMENT= Export tables to LaTeX or HTML
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/www/R-cran-RgoogleMaps/Makefile b/www/R-cran-RgoogleMaps/Makefile
index eaafa768f91..772c569316c 100644
--- a/www/R-cran-RgoogleMaps/Makefile
+++ b/www/R-cran-RgoogleMaps/Makefile
@@ -16,7 +16,6 @@ LICENSE_COMB= dual
RUN_DEPENDS= R-cran-png>0:${PORTSDIR}/graphics/R-cran-png \
R-cran-RJSONIO>0:${PORTSDIR}/converters/R-cran-RJSONIO
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/www/R-cran-Rpad/Makefile b/www/R-cran-Rpad/Makefile
index d2e9dd3d40f..6d9191bb648 100644
--- a/www/R-cran-Rpad/Makefile
+++ b/www/R-cran-Rpad/Makefile
@@ -12,7 +12,6 @@ COMMENT= Workbook-style, web-based interface to R
LICENSE= GPLv2
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/www/R-cran-httpuv/Makefile b/www/R-cran-httpuv/Makefile
index b96ac974b8b..89315329ac6 100644
--- a/www/R-cran-httpuv/Makefile
+++ b/www/R-cran-httpuv/Makefile
@@ -17,10 +17,7 @@ LICENSE_PERMS_NODE= auto-accept
RUN_DEPENDS= R-cran-Rcpp>=0.10.2:${PORTSDIR}/devel/R-cran-Rcpp
-USE_GMAKE= yes
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
-
-MAKE_ENV= MAKE=${GMAKE}
+MAKE_ENV= MAKE=${MAKE_CMD}
+USES= cran:auto-plist gmake
.include <bsd.port.mk>
diff --git a/www/R-cran-scrapeR/Makefile b/www/R-cran-scrapeR/Makefile
index 2d260424c1d..224d67b48ed 100644
--- a/www/R-cran-scrapeR/Makefile
+++ b/www/R-cran-scrapeR/Makefile
@@ -13,7 +13,6 @@ COMMENT= Tools for Scraping Data from HTML and XML Documents
RUN_DEPENDS= R-cran-XML>0:${PORTSDIR}/textproc/R-cran-XML \
R-cran-RCurl>0:${PORTSDIR}/ftp/R-cran-RCurl
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>
diff --git a/www/R-cran-shiny/Makefile b/www/R-cran-shiny/Makefile
index 3d9ede25ffc..7fc91cc1b64 100644
--- a/www/R-cran-shiny/Makefile
+++ b/www/R-cran-shiny/Makefile
@@ -17,7 +17,6 @@ RUN_DEPENDS= R-cran-httpuv>=1.2.0:${PORTSDIR}/www/R-cran-httpuv \
R-cran-xtable>0:${PORTSDIR}/textproc/R-cran-xtable \
R-cran-digest>0:${PORTSDIR}/security/R-cran-digest
-USE_R_MOD= yes
-R_MOD_AUTOPLIST= yes
+USES= cran:auto-plist
.include <bsd.port.mk>