Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2013 19:14:05 GMT
From:      David Naylor <dbn@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/184699: [exp-run] Convert bsd.cran.mk to Uses/cran.mk
Message-ID:  <201312111914.rBBJE5rQ030616@oldred.freebsd.org>
Resent-Message-ID: <201312111920.rBBJK0VA071644@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         184699
>Category:       ports
>Synopsis:       [exp-run] Convert bsd.cran.mk to Uses/cran.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 11 19:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     David Naylor
>Release:        
>Organization:
>Environment:
>Description:
Convert bsd.cran.mk to Uses/cran.mk
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff --git a/Mk/Uses/cran.mk b/Mk/Uses/cran.mk
new file mode 100644
index 0000000..23ee36c
--- /dev/null
+++ b/Mk/Uses/cran.mk
@@ -0,0 +1,95 @@
+# $FreeBSD: head/Mk/bsd.cran.mk 335044 2013-11-27 18:56:43Z dbn $
+#
+# 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 5353449..0000000
--- 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 15564d7..652cd50 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -421,8 +421,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_*).
@@ -1427,10 +1425,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 86565cf..5241949 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 bf24bf0..42f632f 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 4203d52..dd94374 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 e944177..2e58f4b 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 6677d68..f38d6d1 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 833a915..bc1377b 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 a675cee..42e32e8 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 2b275b9..dc3f1fd 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 201de79..127c272 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 c4b34d7..7635f76 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 3ec69b2..fdbea8f 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 2573fbc..ae64a07 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 1c667e2..0c150fc 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 8f71689..0a4a626 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 395007c..78ba75a 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 bbc4d08..9345c31 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 343f81b..ff0dc33 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 2c975bf..2fd8d7f 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 073eba3..96d7781 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 7d4ebd2..8683147 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 404305d..c9b01d0 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 81632e60..64c6269 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 516764a..6d1db9b 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 592a624..233b08d 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 1fbdae5..3f40c58 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 8682b47..1704963 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 d213015..8ef06d0 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 dc73bf0..6a11da0 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 419cc54..eb30f9b 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 d9da765..95c9b2c 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 ac8ea48..35e29d2 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 9f6044b..193024b 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 f485e9a..bf84cbc 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 bfd63a6..70726c3 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 c0c0a43..7cb020a 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 aa2575d..c7113c1 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 1b6e5ca..92324ad 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 46e248a..7f1301f 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 de23ece..3242ad3 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 a5ce01a..21e1c17 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 0e5df1e..b7e11b9 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 fc7de25..5eb5bbf 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 4ac3b23..4107222 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 7f51fb3..3eed204 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 4059a9a..059dc67 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 53e64af..f4ee525 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 9fbaa41..bcd1315 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 e7ce8fc..70a3caa 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 71ed9c0..0b4cca1 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 400b1ee..9b1c01b 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 67344d3..267fe7a 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 d8536a8..2f7fa0b 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 5bebcf9..72ad1e3 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 49e08da..72a9958 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 69f993e..62c48ca 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 3b95c5c..f197fee 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 2966563..28b6f61 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 fd6f280..77d5a674 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 b98c942..14cc7bc 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 5d11f1b..3c5ef1e 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 c7f3564..e438429 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 e144fbd..833da87 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 79c2680..925d0aa 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 8969803..62699cd 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 9cb3104..76b5bac 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 20cd9af..6355673 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 1fc4e90..3b9e901 100644
--- a/math/R-cran-RSvgDevice/Makefile
+++ b/math/R-cran-RSvgDevice/Makefile
@@ -10,7 +10,6 @@ DISTNAME=	${PORTNAME}_${PORTVERSION}
 MAINTAINER=	dbn@FreeBSD.org
 COMMENT=	A R SVG graphics device
 
-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 467f85d..c0075cb 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 7b182ec..da3cf5d 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 c318119..5064003 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 23972b1..fb5b1c8 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 410f25f..49524e3 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 7ba985e..d4fec0a 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 28ac1db..a93b807 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 1976515..5c32faa 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 d4291d7..40569cd 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 4c4fd08..cdf2ac3 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 cac0051..f0ee9dc 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 3e58feb..b3a1620 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 c8c5146..ae9e4d0 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 0cea417..b7a6032 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 f440e6c..ed2bc87 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 c8fd02f..e55e3cc 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 05d840b..de55bb7 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 2255af6..5577b76 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 10585c1..95107f1 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 d297435..071f5b7 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 55e6ec6..f397fd2 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 310e236..1357495 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 a475b49..ab6cc84 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 ad104f1..8cd6827 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 1dea766..c2159f3 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 f0f8203..e5a8d2b 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 05d252e..42c6663 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 0a42f01..23d1a7b 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 91ff877..2be21d6 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 0ca1192..30f3308 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 d0e4f4e..0430ff6 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 c659fe1..0315055 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 864d8f9..f019af4 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 9cba92d..dce4ccf 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 c97b11c..170da29 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 ce539f9..c1f281e 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 8ff0f31..a334d2c 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 5149729..e6183c5 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 bf6769f..d3c9835 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 8bbc2b9..1e08a3b 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 c5e195f..54c086a 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 b22401b..4b5d221 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 94f8ea5..1974823 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 3b78928..8218f71 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 a2afaf1..8ae55d4 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 2815c2e..bc650f6 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 eaafa76..772c569 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 d2e9dd3..6d9191b 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 b96ac97..554091f 100644
--- a/www/R-cran-httpuv/Makefile
+++ b/www/R-cran-httpuv/Makefile
@@ -18,8 +18,6 @@ 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}
 
diff --git a/www/R-cran-scrapeR/Makefile b/www/R-cran-scrapeR/Makefile
index 2d26042..224d67b 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 3d9ede2..7fc91cc 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>


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312111914.rBBJE5rQ030616>