1 | # $Id: Portfile,v 1.13 2005/11/27 13:17:11 gwright Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name R |
---|
5 | version 2.2.1 |
---|
6 | categories math science |
---|
7 | maintainers konis@stats.ox.ac.uk |
---|
8 | platforms darwin |
---|
9 | description R is GNU S - an interpreted language for statistical computing |
---|
10 | long_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 | homepage http://www.r-project.org/ |
---|
16 | master_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/ |
---|
21 | checksums md5 42542290c6d1585af7ded330f811385c \ |
---|
22 | sha1 537e0b89b8de55c1156474c76c19c1fcc210f756 \ |
---|
23 | rmd160 b63b6c5ef1db27a879783460b0ecb6de0d4bba18 |
---|
24 | patchfiles patch-configure.diff |
---|
25 | depends_build port:gcc40 \ |
---|
26 | port:teTeX |
---|
27 | depends_lib port:readline \ |
---|
28 | port:gettext \ |
---|
29 | lib:libjpeg:jpeg \ |
---|
30 | lib:libpng:libpng |
---|
31 | configure.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 |
---|
36 | configure.args --enable-R-shlib \ |
---|
37 | --disable-R-framework \ |
---|
38 | --without-aqua |
---|
39 | test.run yes |
---|
40 | test.target check |
---|
41 | destroot.destdir prefix=${destroot}${prefix} |
---|
42 | |
---|
43 | platform darwin 6 { |
---|
44 | depends_lib-append lib:libdl:dlcompat |
---|
45 | } |
---|
46 | |
---|
47 | platform 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 | |
---|
54 | post-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 | } |
---|