Ticket #9648: Portfile

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

R 2.3.1 Portfile

Line 
1# $Id: Portfile,v 1.15 2006/05/14 16:16:28 gwright Exp $
2
3PortSystem 1.0
4name             R
5version          2.3.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.
15
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/
22
23checksums        md5 a1d6d8081af4c71006a6e5a3ed54e4da \
24                 sha1 62cf87f4a273f17d5a55a5ffaf0bfcdfdae3c03d \
25                 rmd160 061a77f25d3b1144aecdce479aa707e7bea21a82
26
27depends_build    port:gcc40 \
28                 port:teTeX
29
30depends_lib      port:readline \
31                 port:gettext \
32                 lib:libjpeg:jpeg \
33                 lib:libpng:libpng
34
35configure.env    CPPFLAGS="-I${prefix}/include" \
36                 LDFLAGS="-L${prefix}/lib" \
37                 CC=${prefix}/bin/gcc-dp-4.0 \
38                 CXX=${prefix}/bin/g++-dp-4.0 \
39                 F77=${prefix}/bin/gfortran-dp-4.0
40
41configure.args   --mandir=\\\${prefix}/share/man \
42                 --enable-R-shlib \
43                 --disable-R-framework \
44                 --without-aqua
45
46test.run         yes
47test.target      check
48destroot.destdir prefix=${destroot}${prefix}
49
50platform darwin 6 {
51    depends_lib-append lib:libdl:dlcompat
52}
53
54platform darwin 7 {
55    depends_lib-append port:tcl \
56                       port:tk
57    configure.args-append --with-tcl-config=${prefix}/lib/tclConfig.sh \
58                          --with-tk-config=${prefix}/lib/tkConfig.sh
59}
60
61post-destroot {
62    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
63        "${destroot}${prefix}/bin/R"
64    reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \
65        "${destroot}${prefix}/lib/R/bin/R"
66    reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
67        "${destroot}${prefix}/bin/R"
68    reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \
69        "${destroot}${prefix}/lib/R/bin/R"
70    reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
71        "${destroot}${prefix}/bin/R"
72    reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \
73        "${destroot}${prefix}/lib/R/bin/R"
74    reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
75        "${destroot}${prefix}/bin/R"
76    reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \
77        "${destroot}${prefix}/lib/R/bin/R"
78}
79