1 | # $Id: Portfile,v 1.12 2005/10/13 19:03:13 gwright Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name R |
---|
5 | version 2.2.0 |
---|
6 | revision 1 |
---|
7 | categories math science |
---|
8 | maintainers konis@stats.ox.ac.uk |
---|
9 | platforms darwin |
---|
10 | description R is GNU S - an interpreted language for statistical computing |
---|
11 | long_description \ |
---|
12 | R is a language and environment for statistical computing and graphics. \ |
---|
13 | R provides a wide variety of statistical (linear and nonlinear modelling, \ |
---|
14 | classical statistical tests, time-series analysis, classification, \ |
---|
15 | clustering, ...) and graphical techniques, and is highly extensible. |
---|
16 | homepage http://www.r-project.org/ |
---|
17 | master_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 | checksums md5 6bddf439ae417a48bd31892996ea111c \ |
---|
23 | sha1 ebaafa21036877b4ee3d4de9d85cce20f5cf9cbc \ |
---|
24 | rmd160 9f54eb83c34565cbc483d2ffcc7dcae730ca674a |
---|
25 | patchfiles patch-configure.diff |
---|
26 | depends_build port:gcc40 \ |
---|
27 | port:teTeX |
---|
28 | depends_lib port:readline \ |
---|
29 | port:gettext \ |
---|
30 | lib:libjpeg:jpeg \ |
---|
31 | lib:libpng:libpng |
---|
32 | configure.env CPPFLAGS="-I${prefix}/include" \ |
---|
33 | LDFLAGS="-L${prefix}/lib" \ |
---|
34 | CC=gcc-dp-4.0 \ |
---|
35 | CXX=g++-dp-4.0 \ |
---|
36 | F77=gfortran-dp-4.0 |
---|
37 | configure.args --enable-R-shlib \ |
---|
38 | --disable-R-framework \ |
---|
39 | --without-aqua |
---|
40 | test.run yes |
---|
41 | test.target check |
---|
42 | destroot.destdir prefix=${destroot}${prefix} |
---|
43 | |
---|
44 | platform darwin 6 { |
---|
45 | depends_lib-append lib:libdl:dlcompat |
---|
46 | } |
---|
47 | |
---|
48 | platform darwin 7 { |
---|
49 | depends_lib-append port:tcl \ |
---|
50 | port:tk |
---|
51 | configure.args-append --with-tcl-config=${prefix}/lib/tclConfig.sh \ |
---|
52 | --with-tk-config=${prefix}/lib/tkConfig.sh |
---|
53 | } |
---|
54 | |
---|
55 | post-destroot { |
---|
56 | reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \ |
---|
57 | "${destroot}${prefix}/bin/R" |
---|
58 | reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \ |
---|
59 | "${destroot}${prefix}/lib/R/bin/R" |
---|
60 | reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \ |
---|
61 | "${destroot}${prefix}/bin/R" |
---|
62 | reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \ |
---|
63 | "${destroot}${prefix}/lib/R/bin/R" |
---|
64 | reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \ |
---|
65 | "${destroot}${prefix}/bin/R" |
---|
66 | reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \ |
---|
67 | "${destroot}${prefix}/lib/R/bin/R" |
---|
68 | reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \ |
---|
69 | "${destroot}${prefix}/bin/R" |
---|
70 | reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \ |
---|
71 | "${destroot}${prefix}/lib/R/bin/R" |
---|
72 | } |
---|