summaryrefslogtreecommitdiff
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
parent- Update to 0.9.6 (diff)
R-cran-sm is a R module for smoothing methods for nonparametric
regression and density estimation. It is software linked to the book 'Applied Smoothing Techniques for Data Analysis: The Kernel Approach with S-Plus Illustrations' Oxford University Press. WWW: http://www.stats.gla.ac.uk/~adrian/sm PR: ports/132770 Submitted by: Wen Heping <wenheping at gmail.com>
Notes
Notes: svn path=/head/; revision=230661
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
+