Ticket #5383: Portfile

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

Revised R 2.2.0 Portfile

Line 
1# $Id: Portfile,v 1.12 2005/10/13 19:03:13 gwright Exp $
2
3PortSystem 1.0
4name             R
5version          2.2.0
6revision         1
7categories       math science
8maintainers      konis@stats.ox.ac.uk
9platforms        darwin
10description      R is GNU S - an interpreted language for statistical computing
11long_description \
12    R is a language and environment for statistical computing and graphics. \
13    R provides a wide variety of statistical (linear and nonlinear modelling, \
14    classical statistical tests, time-series analysis, classification, \
15    clustering, ...) and graphical techniques, and is highly extensible.
16homepage         http://www.r-project.org/
17master_sites     http://cran.r-project.org/src/base/R-2/ \
18                 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/
22checksums        md5 6bddf439ae417a48bd31892996ea111c \
23                 sha1 ebaafa21036877b4ee3d4de9d85cce20f5cf9cbc \
24                 rmd160 9f54eb83c34565cbc483d2ffcc7dcae730ca674a
25patchfiles       patch-configure.diff
26depends_build    port:gcc40 \
27                 port:teTeX
28depends_lib      port:readline \
29                 port:gettext \
30                 lib:libjpeg:jpeg \
31                 lib:libpng:libpng
32configure.env    CPPFLAGS="-I${prefix}/include" \
33                 LDFLAGS="-L${prefix}/lib" \
34                 CC=gcc-dp-4.0 \
35                 CXX=g++-dp-4.0 \
36                 F77=gfortran-dp-4.0
37configure.args   --enable-R-shlib \
38                 --disable-R-framework \
39                 --without-aqua
40test.run         yes
41test.target      check
42destroot.destdir prefix=${destroot}${prefix}
43
44platform darwin 6 {
45    depends_lib-append lib:libdl:dlcompat
46}
47
48platform darwin 7 {
49    depends_lib-append 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
55post-destroot {
56    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
57        "${destroot}${prefix}/bin/R"
58    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
59        "${destroot}${prefix}/lib/R/bin/R"
60    reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
61        "${destroot}${prefix}/bin/R"
62    reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
63        "${destroot}${prefix}/lib/R/bin/R"
64    reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
65        "${destroot}${prefix}/bin/R"
66    reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
67        "${destroot}${prefix}/lib/R/bin/R"
68    reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
69        "${destroot}${prefix}/bin/R"
70    reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
71        "${destroot}${prefix}/lib/R/bin/R"
72}