Ticket #12142: Portfile

File Portfile, 2.7 KB (added by konis@…, 17 years ago)

port file for R 2.5.1

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