1 | # $Id: Portfile,v 1.11 2005/09/03 00:07:06 toby Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name R |
---|
5 | version 2.2.0 |
---|
6 | categories math science |
---|
7 | maintainers konis@stats.ox.ac.uk |
---|
8 | description R is GNU S - an interpreted language for statistical computing |
---|
9 | long_description \ |
---|
10 | R is a language and environment for statistical computing and graphics. \ |
---|
11 | R provides a wide variety of statistical (linear and nonlinear modelling, \ |
---|
12 | classical statistical tests, time-series analysis, classification, \ |
---|
13 | clustering, ...) and graphical techniques, and is highly extensible. |
---|
14 | homepage http://www.r-project.org/ |
---|
15 | master_sites http://cran.r-project.org/src/base/R-2/ \ |
---|
16 | http://cran.us.r-project.org/src/base/R-2/ \ |
---|
17 | http://cran.au.r-project.org/src/base/R-2/ \ |
---|
18 | http://cran.at.r-project.org/src/base/R-2/ \ |
---|
19 | http://cran.hu.r-project.org/src/base/R-2/ |
---|
20 | checksums md5 6bddf439ae417a48bd31892996ea111c \ |
---|
21 | sha1 ebaafa21036877b4ee3d4de9d85cce20f5cf9cbc \ |
---|
22 | rmd160 9f54eb83c34565cbc483d2ffcc7dcae730ca674a |
---|
23 | depends_build port:gcc34 \ |
---|
24 | bin:latex:teTeX |
---|
25 | depends_lib port:readline \ |
---|
26 | port:gettext \ |
---|
27 | lib:libjpeg:jpeg \ |
---|
28 | lib:libpng:libpng |
---|
29 | configure.env CPPFLAGS="-I${prefix}/include" \ |
---|
30 | LDFLAGS="-L${prefix}/lib" \ |
---|
31 | CC=gcc-dp-3.4 \ |
---|
32 | CXX=g++-dp-3.4 \ |
---|
33 | F77=g77-dp-3.4 |
---|
34 | configure.args --enable-R-shlib \ |
---|
35 | --disable-R-framework \ |
---|
36 | --without-aqua |
---|
37 | test.run yes |
---|
38 | test.target check |
---|
39 | destroot.destdir prefix=${destroot}${prefix} |
---|
40 | |
---|
41 | platform darwin 6 { |
---|
42 | depends_lib-append lib:libdl:dlcompat |
---|
43 | depends_build-append port:texinfo |
---|
44 | } |
---|
45 | |
---|
46 | platform darwin 7 { |
---|
47 | depends_build-append port:texinfo |
---|
48 | } |
---|
49 | |
---|
50 | platform macosx { |
---|
51 | configure.env-delete CC=gcc-dp-3.4 CXX=g++-dp-3.4 |
---|
52 | configure.env-append CC=gcc-3.3 CXX=g++-3.3 |
---|
53 | configure.env-delete LDFLAGS="-L${prefix}/lib" |
---|
54 | configure.env-append LDFLAGS="-L/usr/lib/gcc/darwin/3.3 -L${prefix}/lib -lgcc" |
---|
55 | } |
---|
56 | |
---|
57 | post-destroot { |
---|
58 | reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \ |
---|
59 | "${destroot}${prefix}/bin/R" |
---|
60 | reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \ |
---|
61 | "${destroot}${prefix}/lib/R/bin/R" |
---|
62 | reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \ |
---|
63 | "${destroot}${prefix}/bin/R" |
---|
64 | reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \ |
---|
65 | "${destroot}${prefix}/lib/R/bin/R" |
---|
66 | reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \ |
---|
67 | "${destroot}${prefix}/bin/R" |
---|
68 | reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \ |
---|
69 | "${destroot}${prefix}/lib/R/bin/R" |
---|
70 | reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \ |
---|
71 | "${destroot}${prefix}/bin/R" |
---|
72 | reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \ |
---|
73 | "${destroot}${prefix}/lib/R/bin/R" |
---|
74 | } |
---|