Ticket #11848: Portfile

File Portfile, 3.3 KB (added by konis@…, 18 years ago)

Updated R 2.5.0 Portfile.

Line 
1PortSystem 1.0
2name             R
3version          2.5.0
4categories       math science
5maintainers      konis@stats.ox.ac.uk
6platforms        darwin
7
8description      R is GNU S - an interpreted language for statistical computing
9
10long_description \
11    R is a language and environment for statistical computing and graphics. \
12    R provides a wide variety of statistical (linear and nonlinear modelling, \
13    classical statistical tests, time-series analysis, classification, \
14    clustering, ...) and graphical techniques, and is highly extensible.
15
16homepage         http://www.r-project.org/
17
18master_sites     http://cran.us.r-project.org/src/base/R-2/ \
19                 http://cran.au.r-project.org/src/base/R-2/ \
20                 http://cran.at.r-project.org/src/base/R-2/ \
21                 http://cran.hu.r-project.org/src/base/R-2/ \
22                 http://cran.r-project.org/src/base/R-2/
23
24checksums        md5 b9088663fc539c059acfaf19d6d90a69 \
25                 sha1 a75bbb598d7f957aec3c4be79f182a906fb14541 \
26                 rmd160 ae14775281b53a2ffc582977eec4c36c6bdc504f
27
28depends_lib      port:gcc40 \
29                 port:readline \
30                 port:gettext \
31                 lib:libjpeg:jpeg \
32                 lib:libpng:libpng
33
34configure.env    CC=${prefix}/bin/gcc-dp-4.0 \
35                 CXX=${prefix}/bin/g++-dp-4.0 \
36                 F77=${prefix}/bin/gfortran-dp-4.0
37
38configure.args   --mandir=\\\${prefix}/share/man \
39                 --enable-R-shlib \
40                 --disable-R-framework \
41                 --without-aqua
42
43test.run         yes
44test.target      check
45destroot.destdir prefix=${destroot}${prefix}
46
47platform darwin 6 {
48    depends_lib-append    lib:libdl:dlcompat \
49                          port:tcl \
50                          port:tk
51    configure.args-append --with-tcl-config=${prefix}/lib/tclConfig.sh \
52                          --with-tk-config=${prefix}/lib/tkConfig.sh
53}
54
55platform darwin 7 {
56    depends_lib-append    port:tcl \
57                          port:tk
58    configure.args-append --with-tcl-config=${prefix}/lib/tclConfig.sh \
59                          --with-tk-config=${prefix}/lib/tkConfig.sh
60}
61
62platform i386 {
63    depends_lib-delete      port:gcc40
64    configure.env-delete    CC=${prefix}/bin/gcc-dp-4.0
65    configure.env-delete    CXX=${prefix}/bin/g++-dp-4.0
66    configure.env-delete    F77=${prefix}/bin/gfortran-dp-4.0
67
68    depends_lib-append      port:gcc42
69    configure.env-append    CC=${prefix}/bin/gcc-dp-4.2
70    configure.env-append    CXX=${prefix}/bin/g++-dp-4.2
71    configure.env-append    F77=${prefix}/bin/gfortran-dp-4.2
72}
73
74post-destroot {
75    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
76        "${destroot}${prefix}/bin/R"
77    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
78        "${destroot}${prefix}/lib/R/bin/R"
79    reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
80        "${destroot}${prefix}/bin/R"
81    reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
82        "${destroot}${prefix}/lib/R/bin/R"
83    reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
84        "${destroot}${prefix}/bin/R"
85    reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
86        "${destroot}${prefix}/lib/R/bin/R"
87    reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
88        "${destroot}${prefix}/bin/R"
89    reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
90        "${destroot}${prefix}/lib/R/bin/R"
91}
92