aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.cran.mk
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-03-22 13:32:38 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-03-22 13:32:38 +0000
commit964a7f8b5e829e381beec0863e044ada7bb22d15 (patch)
tree178bc5e1acefe3791a801fe154713579e89a8334 /Mk/bsd.cran.mk
parent630850335bbcf7c011a7c9a65f7cd7d274aaf3ae (diff)
downloadports-964a7f8b5e829e381beec0863e044ada7bb22d15.tar.gz
ports-964a7f8b5e829e381beec0863e044ada7bb22d15.zip
Notes
Diffstat (limited to 'Mk/bsd.cran.mk')
-rw-r--r--Mk/bsd.cran.mk28
1 files changed, 28 insertions, 0 deletions
diff --git a/Mk/bsd.cran.mk b/Mk/bsd.cran.mk
new file mode 100644
index 000000000000..753ccdbfe5e8
--- /dev/null
+++ b/Mk/bsd.cran.mk
@@ -0,0 +1,28 @@
+# Date created: 2009-01-25
+# Whom: Wen Heping <wenheping@gmail.com>
+
+.if defined(R_MOD)
+MASTER_CRAN_SITES+= http://mirrors.geoexpat.com/cran/src/contrib/ \
+ http://cran.rakanu.com/src/contrib/ \
+ http://cran.cnr.berkeley.edu/src/contrib/
+.endif
+
+MASTER_SITES?= ${MASTER_CRAN_SITES}
+
+.if defined(R_MOD)
+BUILD_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
+RUN_DEPENDS+= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R
+.endif
+
+R_MOD_DIR?= lib/R/library/${PORTNAME}
+PLIST_SUB+= R_MOD_DIR=${R_MOD_DIR}
+
+NO_BUILD= yes
+R_COMMAND= ${LOCALBASE}/bin/R
+R_INS= ${R_COMMAND} CMD INSTALL
+
+do-install:
+.if defined(R_MOD)
+ @cd ${WRKDIR} && ${R_INS} ${PORTNAME}
+.endif
+