1 | name = 'R' |
---|
2 | version = '3.1.2' |
---|
3 | |
---|
4 | homepage = 'http://www.r-project.org/' |
---|
5 | description = """R is a free software environment for statistical computing and graphics.""" |
---|
6 | |
---|
7 | toolchain = {'name': 'goolf', 'version': '1.7.20'} |
---|
8 | |
---|
9 | sources = [SOURCE_TAR_GZ] |
---|
10 | source_urls = ['http://cran.us.r-project.org/src/base/R-%(version_major)s'] |
---|
11 | |
---|
12 | preconfigopts = 'BLAS_LIBS="$LIBBLAS" LAPACK_LIBS="$LIBLAPACK"' |
---|
13 | configopts = "--with-lapack --with-blas --with-pic --enable-threads --with-x=no --enable-R-shlib" |
---|
14 | # some recommended packages may fail in a parallel build (e.g. Matrix), and we're installing them anyway below |
---|
15 | configopts += " --with-recommended-packages=no" |
---|
16 | |
---|
17 | dependencies = [ |
---|
18 | ('libreadline', '6.3'), |
---|
19 | ('ncurses', '5.9'), |
---|
20 | ('libpng', '1.6.16'), # for plotting in R |
---|
21 | ('libjpeg-turbo', '1.4.0'), # for plottting in R |
---|
22 | ('Java', '1.7.0_51', '', True), # Java bindings are built if Java is found, might as well provide it |
---|
23 | ] |
---|
24 | |
---|
25 | name_tmpl = '%(name)s_%(version)s.tar.gz' |
---|
26 | ext_options = { |
---|
27 | 'source_urls': [ |
---|
28 | 'http://cran.r-project.org/src/contrib/Archive/%(name)s', # package archive |
---|
29 | 'http://cran.r-project.org/src/contrib/', # current version of packages |
---|
30 | 'http://cran.freestatistics.org/src/contrib', # mirror alternative for current packages |
---|
31 | ], |
---|
32 | 'source_tmpl': name_tmpl, |
---|
33 | } |
---|
34 | # Bioconductor packages have a different download url |
---|
35 | bioconductor_options = { |
---|
36 | 'source_urls': [ |
---|
37 | 'http://www.bioconductor.org/packages/release/bioc/src/contrib/', |
---|
38 | 'http://www.bioconductor.org/packages/release/data/annotation/src/contrib/', |
---|
39 | 'http://www.bioconductor.org/packages/release/data/experiment/src/contrib/', |
---|
40 | 'http://www.bioconductor.org/packages/3.0/bioc/src/contrib/', |
---|
41 | 'http://www.bioconductor.org/packages/3.0/data/annotation/src/contrib/', |
---|
42 | 'http://www.bioconductor.org/packages/3.0/data/experiment/src/contrib/', |
---|
43 | ], |
---|
44 | 'source_tmpl': name_tmpl, |
---|
45 | } |
---|
46 | |
---|
47 | # !! order of packages is important !! |
---|
48 | # packages updated on January 8th 2015 |
---|
49 | exts_list = [ |
---|
50 | # default libraries, only here to sanity check their presence |
---|
51 | 'base', |
---|
52 | 'datasets', |
---|
53 | 'graphics', |
---|
54 | 'grDevices', |
---|
55 | 'grid', |
---|
56 | 'methods', |
---|
57 | 'splines', |
---|
58 | 'stats', |
---|
59 | 'stats4', |
---|
60 | 'tools', |
---|
61 | 'utils', |
---|
62 | # Optional |
---|
63 | ('png', '0.1-7', ext_options), |
---|
64 | ('gsalib', '2.1', ext_options), |
---|
65 | ] |
---|
66 | |
---|
67 | moduleclass = 'lang' |
---|