R-2.15.2-goolf-1.4.10.eb 5.5 KB
Newer Older
Lukáš Krupčík's avatar
Lukáš Krupčík committed
1 2 3 4 5 6 7 8 9 10 11 12 13
name = 'R'
version = '2.15.2'

homepage = 'http://www.r-project.org/'
description = """R is a free software environment for statistical computing and graphics."""

toolchain = {'name': 'goolf', 'version': '1.4.10'}

sources = [SOURCE_TAR_GZ]
source_urls = ['http://cran.us.r-project.org/src/base/R-%(version_major)s']

preconfigopts = 'BLAS_LIBS="$LIBBLAS" LAPACK_LIBS="$LIBLAPACK"'
configopts = "--with-lapack --with-blas --with-pic --enable-threads --with-x=no --enable-R-shlib"
Lukáš Krupčík's avatar
Lukáš Krupčík committed
14 15
# some recommended packages may fail in a parallel build (e.g. Matrix),
# and we're installing them anyway below
Lukáš Krupčík's avatar
Lukáš Krupčík committed
16 17 18 19 20 21
configopts += " --with-recommended-packages=no"

dependencies = [
    ('libreadline', '6.2'),
    ('ncurses', '5.9'),
    ('libpng', '1.5.13'),  # for plotting in R
Lukáš Krupčík's avatar
Lukáš Krupčík committed
22 23
    # Java bindings are built if Java is found, might as well provide it
    ('Java', '1.7.0_10', '', True),
Lukáš Krupčík's avatar
Lukáš Krupčík committed
24 25 26
]

sanity_check_paths = {
Lukáš Krupčík's avatar
Lukáš Krupčík committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    'files': [
        'bin/%s' %
        x for x in [
            'R',
            'Rscript']] +
    [
        'lib64/R/include/%s' %
        x for x in [
            'Rconfig.h',
            'Rdefines.h',
            'Rembedded.h',
            'R.h',
            'Rinterface.h',
            'Rinternals.h',
            'Rmath.h',
            'Rversion.h',
            'S.h']] +
    [
        'lib64/R/modules/%s' %
        x for x in [
            'internet.%s' %
            SHLIB_EXT,
            'lapack.%s' %
            SHLIB_EXT,
            'vfonts.%s' %
            SHLIB_EXT]] +
    [
        'lib64/R/lib/libR.%s' %
        SHLIB_EXT],
    'dirs': []}
Lukáš Krupčík's avatar
Lukáš Krupčík committed
57 58 59 60

name_tmpl = '%(name)s_%(version)s.tar.gz'
ext_options = {
    'source_urls': [
Lukáš Krupčík's avatar
Lukáš Krupčík committed
61 62
        # package archive
        'http://cran.r-project.org/src/contrib/Archive/%(name)s',
Lukáš Krupčík's avatar
Lukáš Krupčík committed
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
        'http://cran.freestatistics.org/src/contrib',  # alternative for packages
    ],
    'source_tmpl': name_tmpl,
}
# Bioconductor packages have a different download url
bioconductor_options = {
    'source_urls': [
        'http://www.bioconductor.org/packages/release/bioc/src/contrib/',
        'http://www.bioconductor.org/packages/2.11/bioc/src/contrib/',
    ],
    'source_tmpl': name_tmpl,
}
# !! order of packages is important !!
exts_list = [
    # default libraries, only here to sanity check their presence
    'base',
    'datasets',
    'graphics',
    'grDevices',
    'grid',
    'methods',
    'splines',
    'stats',
    'stats4',
    'tools',
    'utils',
    # non-standard libraries, should be specified with fixed versions!
    ('Rmpi', '0.5-9', ext_options),
    ('irace', '1.03', ext_options),
    ('rJava', '0.9-4', ext_options),
    ('lattice', '0.20-15', ext_options),
    ('RColorBrewer', '1.0-5', ext_options),
    ('latticeExtra', '0.6-24', ext_options),
    ('Matrix', '1.0-12', ext_options),
    ('png', '0.1-4', ext_options),
    ('Rcpp', '0.10.3', ext_options),
    ('quadprog', '1.5-5', ext_options),
    ('BB', '2013.4-1', ext_options),
    ('MASS', '7.3-22', ext_options),
    ('rlecuyer', '0.3-3', ext_options),
    ('class', '7.3-5', ext_options),
    ('e1071', '1.6-1', ext_options),
    ('nnet', '7.3-6', ext_options),
    ('car', '2.0-16', ext_options),
    ('colorspace', '1.2-2', ext_options),
    ('robustbase', '0.9-7', ext_options),
    ('sp', '0.9-91', ext_options),
    ('vcd', '1.2-13', ext_options),
    ('Rserve', '0.6-1', ext_options),
    ('DBI', '0.2-6', ext_options),
    ('RSQLite', '0.11.3', ext_options),
    ('hwriter', '1.3', ext_options),
    ('bitops', '1.0-5', ext_options),
    ('BiocGenerics', '0.4.0', bioconductor_options),
    ('Biobase', '2.18.0', bioconductor_options),
    ('IRanges', '1.16.6', bioconductor_options),
    ('AnnotationDbi', '1.20.7', bioconductor_options),
    ('Biostrings', '2.26.3', bioconductor_options),
    ('GenomicRanges', '1.10.7', bioconductor_options),
    ('BSgenome', '1.26.1', bioconductor_options),
    ('zlibbioc', '1.4.0', bioconductor_options),
    ('Rsamtools', '1.10.2', bioconductor_options),
    ('ShortRead', '1.16.4', bioconductor_options),
    ('akima', '0.5-9', ext_options),
    ('boot', '1.3-7', ext_options),
    ('cluster', '1.14.4', ext_options),
    ('coda', '0.16-1', ext_options),
    ('codetools', '0.2-8', ext_options),
    ('foreign', '0.8-53', ext_options),
    ('gam', '1.08', ext_options),
    ('nlme', '3.1-105', ext_options),
    ('survival', '2.37-4', ext_options),
    ('gamlss.data', '4.2-0', ext_options),
    ('gamlss.dist', '4.2-0', ext_options),
    ('gamlss', '4.2-0', ext_options),
    ('gamlss.tr', '4.1-0', ext_options),
    ('KernSmooth', '2.23-10', ext_options),
    ('zoo', '1.7-9', ext_options),
    ('lmtest', '0.9-31', ext_options),
    ('mgcv', '1.7-22', ext_options),
    ('mnormt', '1.4-5', ext_options),
    ('mvtnorm', '0.9-9994', ext_options),
    ('numDeriv', '2012.9-1', ext_options),
    ('pscl', '1.04.4', ext_options),
    ('rpart', '4.1-1', ext_options),
    ('sandwich', '2.2-10', ext_options),
    ('sfsmisc', '1.0-23', ext_options),
    ('spatial', '7.3-5', ext_options),
    ('VGAM', '0.9-1', ext_options),
    ('waveslim', '1.7.1', ext_options),
    ('xtable', '1.7-0', ext_options),
    ('profileModel', '0.5-8', ext_options),
    ('brglm', '0.5-7', ext_options),
    ('deSolve', '1.10-6', ext_options),
    ('odesolve', '0.9-9', ext_options),
    ('tseriesChaos', '0.1-11', ext_options),
    ('tseries', '0.10-31', ext_options),
    ('neuRosim', '0.2-10', ext_options),
    ('fastICA', '1.1-16', ext_options),
    ('R.methodsS3', '1.4.2', ext_options),
    ('R.oo', '1.13.0', ext_options),
    ('R.matlab', '1.7.0', ext_options),
    ('Rniftilib', '0.0-32', ext_options),
    ('gbm', '2.1', ext_options),
]

moduleclass = 'lang'