Ticket #8849: Portfile

File Portfile, 2.9 KB (added by konis@…, 19 years ago)

R 2.3.0 Portfile

Line 
1# $Id: Portfile,v 1.14 2005/12/23 07:39:25 mww Exp $
2
3PortSystem 1.0
4name             R
5version          2.3.0
6categories       math science
7maintainers      konis@stats.ox.ac.uk
8platforms        darwin
9description      R is GNU S - an interpreted language for statistical computing
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.
15homepage         http://www.r-project.org/
16master_sites     http://cran.r-project.org/src/base/R-2/ \
17                 http://cran.us.r-project.org/src/base/R-2/ \
18                 http://cran.au.r-project.org/src/base/R-2/ \
19                 http://cran.at.r-project.org/src/base/R-2/ \
20                 http://cran.hu.r-project.org/src/base/R-2/
21checksums        md5 11cc1e9df640ab52e608cf9e695f7354 \
22                 sha1 62e9a90e87c1403a59e846e292e94196f9a893d2 \
23                 rmd160 87422ce47ae36e33d4ace3a7f0b68c46c2d9128d
24depends_build    port:gcc40 \
25                 port:teTeX
26depends_lib      port:readline \
27                 port:gettext \
28                 lib:libjpeg:jpeg \
29                 lib:libpng:libpng
30configure.env    CPPFLAGS="-I${prefix}/include" \
31                 LDFLAGS="-L${prefix}/lib" \
32                 CC=${prefix}/bin/gcc-dp-4.0 \
33                 CXX=${prefix}/bin/g++-dp-4.0 \
34                 F77=${prefix}/bin/gfortran-dp-4.0
35configure.args   --mandir=\\\${prefix}/share/man \
36                 --enable-R-shlib \
37                 --disable-R-framework \
38                 --without-aqua
39test.run         yes
40test.target      check
41destroot.destdir prefix=${destroot}${prefix}
42
43platform darwin 6 {
44    depends_lib-append lib:libdl:dlcompat
45}
46
47platform darwin 7 {
48    depends_lib-append port:tcl \
49                       port:tk
50    configure.args-append --with-tcl-config=${prefix}/lib/tclConfig.sh \
51                          --with-tk-config=${prefix}/lib/tkConfig.sh
52}
53
54post-destroot {
55    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
56        "${destroot}${prefix}/bin/R"
57    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
58        "${destroot}${prefix}/lib/R/bin/R"
59    reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
60        "${destroot}${prefix}/bin/R"
61    reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
62        "${destroot}${prefix}/lib/R/bin/R"
63    reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
64        "${destroot}${prefix}/bin/R"
65    reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
66        "${destroot}${prefix}/lib/R/bin/R"
67    reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
68        "${destroot}${prefix}/bin/R"
69    reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
70        "${destroot}${prefix}/lib/R/bin/R"
71}
72