Ticket #6202: Portfile

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

R 2.2.1 Portfile

Line 
1# $Id: Portfile,v 1.13 2005/11/27 13:17:11 gwright Exp $
2
3PortSystem 1.0
4name             R
5version          2.2.1
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 42542290c6d1585af7ded330f811385c \
22                 sha1 537e0b89b8de55c1156474c76c19c1fcc210f756 \
23                 rmd160 b63b6c5ef1db27a879783460b0ecb6de0d4bba18
24patchfiles       patch-configure.diff
25depends_build    port:gcc40 \
26                 port:teTeX
27depends_lib      port:readline \
28                 port:gettext \
29                 lib:libjpeg:jpeg \
30                 lib:libpng:libpng
31configure.env    CPPFLAGS="-I${prefix}/include" \
32                 LDFLAGS="-L${prefix}/lib" \
33                 CC=gcc-dp-4.0 \
34                 CXX=g++-dp-4.0 \
35                 F77=gfortran-dp-4.0
36configure.args   --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}