Ticket #13497: Portfile

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

Portfile for R 2.6.1

Line 
1# $Id: Portfile 28509 2007-09-02 21:07:50Z mww@macports.org $
2
3PortSystem 1.0
4name             R
5version          2.6.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 19c35a69e1afa73f5f70f91ff9939233 \
27                 sha1 6f2c8694f1935fda382796d225e45bd6f8f7755b \
28                 rmd160 0e50237916e03c9b88ab558c39a9a587aabf4991
29
30depends_lib      port:gcc42 \
31                 port:readline \
32                 port:gettext \
33                 port:tcl \
34                 port:tk \
35                 lib:libjpeg:jpeg \
36                 lib:libpng:libpng
37
38configure.compiler      macports-gcc-4.2
39
40configure.args   --mandir=\\\${prefix}/share/man \
41                 --enable-R-shlib \
42                 --with-blas='-framework vecLib' \
43                 --with-lapack \
44                 --disable-R-framework \
45                 --without-aqua \
46                 --with-tcl-config=${prefix}/lib/tclConfig.sh \
47                 --with-tk-config=${prefix}/lib/tkConfig.sh
48
49test.run         yes
50test.target      check
51destroot.destdir prefix=${destroot}${prefix}
52
53post-destroot {
54    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
55        "${destroot}${prefix}/bin/R"
56    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
57        "${destroot}${prefix}/lib/R/bin/R"
58    reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
59        "${destroot}${prefix}/bin/R"
60    reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
61        "${destroot}${prefix}/lib/R/bin/R"
62    reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
63        "${destroot}${prefix}/bin/R"
64    reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
65        "${destroot}${prefix}/lib/R/bin/R"
66    reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
67        "${destroot}${prefix}/bin/R"
68    reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
69        "${destroot}${prefix}/lib/R/bin/R"
70}
71