1 | # $Id: Portfile 37138 2008-05-27 15:56:32Z simon@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name R |
---|
6 | version 2.7.1 |
---|
7 | categories math science |
---|
8 | maintainers kjell.konis@epfl.ch |
---|
9 | platforms darwin |
---|
10 | |
---|
11 | description R is GNU S - an interpreted language for statistical computing |
---|
12 | |
---|
13 | long_description \ |
---|
14 | R is a language and environment for statistical computing and graphics. \ |
---|
15 | R provides a wide variety of statistical (linear and nonlinear modelling, \ |
---|
16 | classical statistical tests, time-series analysis, classification, \ |
---|
17 | clustering, ...) and graphical techniques, and is highly extensible. |
---|
18 | |
---|
19 | homepage http://www.r-project.org/ |
---|
20 | |
---|
21 | master_sites http://cran.us.r-project.org/src/base/R-2/ \ |
---|
22 | http://cran.au.r-project.org/src/base/R-2/ \ |
---|
23 | http://cran.at.r-project.org/src/base/R-2/ \ |
---|
24 | http://cran.hu.r-project.org/src/base/R-2/ \ |
---|
25 | http://cran.r-project.org/src/base/R-2/ |
---|
26 | |
---|
27 | checksums md5 565b06a1f3f11020399934cc7b47a59d \ |
---|
28 | sha1 cdf5f6f85463c7be007306add2f4ca7cf7babfb7 \ |
---|
29 | rmd160 ac98e39d46ebc7581dd53da7f69a1e7abad269a4 |
---|
30 | |
---|
31 | depends_lib port:cairo \ |
---|
32 | port:expat \ |
---|
33 | port:fontconfig \ |
---|
34 | port:freetype \ |
---|
35 | port:gettext \ |
---|
36 | port:glib2 \ |
---|
37 | port:jpeg \ |
---|
38 | port:libiconv \ |
---|
39 | port:libpixman \ |
---|
40 | port:libpng \ |
---|
41 | port:pango \ |
---|
42 | port:readline \ |
---|
43 | port:tcl \ |
---|
44 | port:tk \ |
---|
45 | port:tiff \ |
---|
46 | port:xrender \ |
---|
47 | port:zlib \ |
---|
48 | lib:libX11.6:XFree86 |
---|
49 | |
---|
50 | variant gcc42 description {Build with gcc42} { |
---|
51 | configure.compiler macports-gcc-4.2 |
---|
52 | depends_lib-append port:gcc42 |
---|
53 | } |
---|
54 | |
---|
55 | variant gcc43 description {Build with gcc43 (default)} { |
---|
56 | configure.compiler macports-gcc-4.3 |
---|
57 | depends_lib-append port:gcc43 |
---|
58 | } |
---|
59 | |
---|
60 | if {![variant_isset gcc42] && ![variant_isset gcc43]} { |
---|
61 | default_variants +gcc43 |
---|
62 | } |
---|
63 | |
---|
64 | post-extract { |
---|
65 | reinplace "s|R_HOME|\"${prefix}/lib/R\"|" ${worksrcpath}/src/unix/Rscript.c |
---|
66 | } |
---|
67 | |
---|
68 | configure.args --mandir=\\\${prefix}/share/man \ |
---|
69 | --enable-R-shlib \ |
---|
70 | --with-blas='-framework vecLib' \ |
---|
71 | --with-lapack \ |
---|
72 | --disable-R-framework \ |
---|
73 | --without-aqua \ |
---|
74 | --with-tcl-config=${prefix}/lib/tclConfig.sh \ |
---|
75 | --with-tk-config=${prefix}/lib/tkConfig.sh |
---|
76 | |
---|
77 | test.run yes |
---|
78 | test.target check |
---|
79 | destroot.destdir prefix=${destroot}${prefix} |
---|
80 | |
---|
81 | post-destroot { |
---|
82 | reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \ |
---|
83 | "${destroot}${prefix}/bin/R" |
---|
84 | reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \ |
---|
85 | "${destroot}${prefix}/lib/R/bin/R" |
---|
86 | reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \ |
---|
87 | "${destroot}${prefix}/bin/R" |
---|
88 | reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \ |
---|
89 | "${destroot}${prefix}/lib/R/bin/R" |
---|
90 | reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \ |
---|
91 | "${destroot}${prefix}/bin/R" |
---|
92 | reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \ |
---|
93 | "${destroot}${prefix}/lib/R/bin/R" |
---|
94 | reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \ |
---|
95 | "${destroot}${prefix}/bin/R" |
---|
96 | reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \ |
---|
97 | "${destroot}${prefix}/lib/R/bin/R" |
---|
98 | system "install_name_tool -id ${prefix}/lib/R/lib/libR.dylib \ |
---|
99 | ${destroot}${prefix}/lib/R/lib/libR.dylib" |
---|
100 | system "install_name_tool -id ${prefix}/lib/R/modules/R_X11.so \ |
---|
101 | ${destroot}${prefix}/lib/R/modules/R_X11.so" |
---|
102 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
103 | ${destroot}${prefix}/lib/R/modules/R_X11.so" |
---|
104 | system "install_name_tool -id ${prefix}/lib/R/modules/internet.so \ |
---|
105 | ${destroot}${prefix}/lib/R/modules/internet.so" |
---|
106 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
107 | ${destroot}${prefix}/lib/R/modules/internet.so" |
---|
108 | system "install_name_tool -id ${prefix}/lib/R/modules/lapack.so \ |
---|
109 | ${destroot}${prefix}/lib/R/modules/lapack.so" |
---|
110 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
111 | ${destroot}${prefix}/lib/R/modules/lapack.so" |
---|
112 | system "install_name_tool -id ${prefix}/lib/R/modules/vfonts.so \ |
---|
113 | ${destroot}${prefix}/lib/R/modules/vfonts.so" |
---|
114 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
115 | ${destroot}${prefix}/lib/R/modules/vfonts.so" |
---|
116 | system "install_name_tool -id ${prefix}/lib/R/library/tools/libs/tools.so \ |
---|
117 | ${destroot}${prefix}/lib/R/library/tools/libs/tools.so" |
---|
118 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
119 | ${destroot}${prefix}/lib/R/library/tools/libs/tools.so" |
---|
120 | system "install_name_tool -id ${prefix}/lib/R/library/spatial/libs/spatial.so \ |
---|
121 | ${destroot}${prefix}/lib/R/library/spatial/libs/spatial.so" |
---|
122 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
123 | ${destroot}${prefix}/lib/R/library/spatial/libs/spatial.so" |
---|
124 | system "install_name_tool -id ${prefix}/lib/R/library/class/libs/class.so \ |
---|
125 | ${destroot}${prefix}/lib/R/library/class/libs/class.so" |
---|
126 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
127 | ${destroot}${prefix}/lib/R/library/class/libs/class.so" |
---|
128 | system "install_name_tool -id ${prefix}/lib/R/library/lattice/libs/lattice.so \ |
---|
129 | ${destroot}${prefix}/lib/R/library/lattice/libs/lattice.so" |
---|
130 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
131 | ${destroot}${prefix}/lib/R/library/lattice/libs/lattice.so" |
---|
132 | system "install_name_tool -id ${prefix}/lib/R/library/tcltk/libs/tcltk.so \ |
---|
133 | ${destroot}${prefix}/lib/R/library/tcltk/libs/tcltk.so" |
---|
134 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
135 | ${destroot}${prefix}/lib/R/library/tcltk/libs/tcltk.so" |
---|
136 | system "install_name_tool -id ${prefix}/lib/R/library/survival/libs/survival.so \ |
---|
137 | ${destroot}${prefix}/lib/R/library/survival/libs/survival.so" |
---|
138 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
139 | ${destroot}${prefix}/lib/R/library/survival/libs/survival.so" |
---|
140 | system "install_name_tool -id ${prefix}/lib/R/library/stats/libs/stats.so \ |
---|
141 | ${destroot}${prefix}/lib/R/library/stats/libs/stats.so" |
---|
142 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
143 | ${destroot}${prefix}/lib/R/library/stats/libs/stats.so" |
---|
144 | system "install_name_tool -id ${prefix}/lib/R/library/KernSmooth/libs/KernSmooth.so \ |
---|
145 | ${destroot}${prefix}/lib/R/library/KernSmooth/libs/KernSmooth.so" |
---|
146 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
147 | ${destroot}${prefix}/lib/R/library/KernSmooth/libs/KernSmooth.so" |
---|
148 | system "install_name_tool -id ${prefix}/lib/R/library/mgcv/libs/mgcv.so \ |
---|
149 | ${destroot}${prefix}/lib/R/library/mgcv/libs/mgcv.so" |
---|
150 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
151 | ${destroot}${prefix}/lib/R/library/mgcv/libs/mgcv.so" |
---|
152 | system "install_name_tool -id ${prefix}/lib/R/library/methods/libs/methods.so \ |
---|
153 | ${destroot}${prefix}/lib/R/library/methods/libs/methods.so" |
---|
154 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
155 | ${destroot}${prefix}/lib/R/library/methods/libs/methods.so" |
---|
156 | system "install_name_tool -id ${prefix}/lib/R/library/nlme/libs/nlme.so \ |
---|
157 | ${destroot}${prefix}/lib/R/library/nlme/libs/nlme.so" |
---|
158 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
159 | ${destroot}${prefix}/lib/R/library/nlme/libs/nlme.so" |
---|
160 | system "install_name_tool -id ${prefix}/lib/R/library/grDevices/libs/grDevices.so \ |
---|
161 | ${destroot}${prefix}/lib/R/library/grDevices/libs/grDevices.so" |
---|
162 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
163 | ${destroot}${prefix}/lib/R/library/grDevices/libs/grDevices.so" |
---|
164 | system "install_name_tool -id ${prefix}/lib/R/library/foreign/libs/foreign.so \ |
---|
165 | ${destroot}${prefix}/lib/R/library/foreign/libs/foreign.so" |
---|
166 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
167 | ${destroot}${prefix}/lib/R/library/foreign/libs/foreign.so" |
---|
168 | system "install_name_tool -id ${prefix}/lib/R/library/MASS/libs/MASS.so \ |
---|
169 | ${destroot}${prefix}/lib/R/library/MASS/libs/MASS.so" |
---|
170 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
171 | ${destroot}${prefix}/lib/R/library/MASS/libs/MASS.so" |
---|
172 | system "install_name_tool -id ${prefix}/lib/R/library/nnet/libs/nnet.so \ |
---|
173 | ${destroot}${prefix}/lib/R/library/nnet/libs/nnet.so" |
---|
174 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
175 | ${destroot}${prefix}/lib/R/library/nnet/libs/nnet.so" |
---|
176 | system "install_name_tool -id ${prefix}/lib/R/library/grid/libs/grid.so \ |
---|
177 | ${destroot}${prefix}/lib/R/library/grid/libs/grid.so" |
---|
178 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
179 | ${destroot}${prefix}/lib/R/library/grid/libs/grid.so" |
---|
180 | system "install_name_tool -id ${prefix}/lib/R/library/rpart/libs/rpart.so \ |
---|
181 | ${destroot}${prefix}/lib/R/library/rpart/libs/rpart.so" |
---|
182 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
183 | ${destroot}${prefix}/lib/R/library/rpart/libs/rpart.so" |
---|
184 | system "install_name_tool -id ${prefix}/lib/R/library/splines/libs/splines.so \ |
---|
185 | ${destroot}${prefix}/lib/R/library/splines/libs/splines.so" |
---|
186 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
187 | ${destroot}${prefix}/lib/R/library/splines/libs/splines.so" |
---|
188 | system "install_name_tool -id ${prefix}/lib/R/library/cluster/libs/cluster.so \ |
---|
189 | ${destroot}${prefix}/lib/R/library/cluster/libs/cluster.so" |
---|
190 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
191 | ${destroot}${prefix}/lib/R/library/cluster/libs/cluster.so" |
---|
192 | } |
---|
193 | |
---|