aboutsummaryrefslogtreecommitdiffstats
path: root/math/R-cran-SuppDists/Makefile
blob: 751ff150c94f91e953642d1d9a7f6ce185b11ad1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# New ports collection makefile for:    math/R-cran-SuppDists
# Date created:             April 27, 2010
# Whom:                 b.f. <bf@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   SuppDists
DISTVERSION=    1.1-8
CATEGORIES= math
MASTER_SITES=   ${MASTER_CRAN_SITES} \
        http://r.research.att.com/benchmarks/:benchmark \
        LOCAL/bf:benchmark
PKGNAMEPREFIX=  R-cran-
DISTFILES=  ${PORTNAME}_${DISTVERSION}${EXTRACT_SUFX} \
        ${BENCHMARK_SCRIPT}:benchmark
EXTRACT_ONLY=   ${PORTNAME}_${DISTVERSION}${EXTRACT_SUFX}

MAINTAINER= bf@FreeBSD.org
COMMENT=    Supplementary distributions and RNG for R

BENCHMARK_SCRIPT=   R-benchmark-25.R
LICENSE=        GPLv2
R_MOD_AUTOPLIST=    yes
USE_R_MOD=      yes
WRKSRC =        ${WRKDIR}/${PORTNAME}

.if defined(MAINTAINER_MODE)
USE_DOS2UNIX=   ../${BENCHMARK_SCRIPT}

post-extract:
    @${CP} ${_DISTDIR}/${BENCHMARK_SCRIPT} ${WRKDIR}

post-install: benchmark

benchmark:
    @${LOCALBASE}/bin/Rscript --vanilla ${WRKDIR}/${BENCHMARK_SCRIPT}

.endif

.include <bsd.port.mk>