1 | # $Id: Portfile,v 1.14 2005/12/23 07:39:25 mww Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name R |
---|
5 | version 2.3.0 |
---|
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 11cc1e9df640ab52e608cf9e695f7354 \ |
---|
22 | sha1 62e9a90e87c1403a59e846e292e94196f9a893d2 \ |
---|
23 | rmd160 87422ce47ae36e33d4ace3a7f0b68c46c2d9128d |
---|
24 | depends_build port:gcc40 \ |
---|
25 | port:teTeX |
---|
26 | depends_lib port:readline \ |
---|
27 | port:gettext \ |
---|
28 | lib:libjpeg:jpeg \ |
---|
29 | lib:libpng:libpng |
---|
30 | configure.env CPPFLAGS="-I${prefix}/include" \ |
---|
31 | LDFLAGS="-L${prefix}/lib" \ |
---|
32 | CC=${prefix}/bin/gcc-dp-4.0 \ |
---|
33 | CXX=${prefix}/bin/g++-dp-4.0 \ |
---|
34 | F77=${prefix}/bin/gfortran-dp-4.0 |
---|
35 | configure.args --mandir=\\\${prefix}/share/man \ |
---|
36 | --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 | } |
---|
72 | |
---|