1 | # $Id: Portfile 34156 2008-02-16 01:07:39Z ryandesign@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name R |
---|
5 | version 2.7.0 |
---|
6 | categories math science |
---|
7 | maintainers konis@stats.ox.ac.uk |
---|
8 | platforms darwin |
---|
9 | |
---|
10 | description R is GNU S - an interpreted language for statistical computing |
---|
11 | |
---|
12 | long_description \ |
---|
13 | R is a language and environment for statistical computing and graphics. \ |
---|
14 | R provides a wide variety of statistical (linear and nonlinear modelling, \ |
---|
15 | classical statistical tests, time-series analysis, classification, \ |
---|
16 | clustering, ...) and graphical techniques, and is highly extensible. |
---|
17 | |
---|
18 | homepage http://www.r-project.org/ |
---|
19 | |
---|
20 | master_sites http://cran.us.r-project.org/src/base/R-2/ \ |
---|
21 | http://cran.au.r-project.org/src/base/R-2/ \ |
---|
22 | http://cran.at.r-project.org/src/base/R-2/ \ |
---|
23 | http://cran.hu.r-project.org/src/base/R-2/ \ |
---|
24 | http://cran.r-project.org/src/base/R-2/ |
---|
25 | |
---|
26 | checksums md5 9eaee3eceec1d5f72cea5640ca90768c \ |
---|
27 | sha1 d0a3193e474696ad767845ef6b8ee1555a26b898 \ |
---|
28 | rmd160 c3c9cf0c0a1eb6191492f1be19e277e8223a42c9 |
---|
29 | |
---|
30 | depends_lib port:gcc42 \ |
---|
31 | port:readline \ |
---|
32 | port:gettext \ |
---|
33 | port:tcl \ |
---|
34 | port:tk \ |
---|
35 | lib:libjpeg:jpeg \ |
---|
36 | lib:libpng:libpng |
---|
37 | |
---|
38 | configure.compiler macports-gcc-4.2 |
---|
39 | |
---|
40 | configure.args --mandir=\\\${prefix}/share/man \ |
---|
41 | --enable-R-shlib \ |
---|
42 | --with-blas='-framework vecLib' \ |
---|
43 | --with-lapack \ |
---|
44 | --disable-R-framework \ |
---|
45 | --without-aqua \ |
---|
46 | --with-tcl-config=${prefix}/lib/tclConfig.sh \ |
---|
47 | --with-tk-config=${prefix}/lib/tkConfig.sh |
---|
48 | |
---|
49 | test.run yes |
---|
50 | test.target check |
---|
51 | destroot.destdir prefix=${destroot}${prefix} |
---|
52 | |
---|
53 | post-destroot { |
---|
54 | reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \ |
---|
55 | "${destroot}${prefix}/bin/R" |
---|
56 | reinplace "s|R_HOME_DIR=${destroot}|R_HOME_DIR=|" \ |
---|
57 | "${destroot}${prefix}/lib/R/bin/R" |
---|
58 | reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \ |
---|
59 | "${destroot}${prefix}/bin/R" |
---|
60 | reinplace "s|R_SHARE_DIR=${destroot}|R_SHARE_DIR=|" \ |
---|
61 | "${destroot}${prefix}/lib/R/bin/R" |
---|
62 | reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \ |
---|
63 | "${destroot}${prefix}/bin/R" |
---|
64 | reinplace "s|R_INCLUDE_DIR=${destroot}|R_INCLUDE_DIR=|" \ |
---|
65 | "${destroot}${prefix}/lib/R/bin/R" |
---|
66 | reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \ |
---|
67 | "${destroot}${prefix}/bin/R" |
---|
68 | reinplace "s|R_DOC_DIR=${destroot}|R_DOC_DIR=|" \ |
---|
69 | "${destroot}${prefix}/lib/R/bin/R" |
---|
70 | system "install_name_tool -id ${prefix}/lib/R/lib/libR.dylib \ |
---|
71 | ${destroot}${prefix}/lib/R/lib/libR.dylib" |
---|
72 | system "install_name_tool -id ${prefix}/lib/R/modules/R_X11.so \ |
---|
73 | ${destroot}${prefix}/lib/R/modules/R_X11.so" |
---|
74 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
75 | ${destroot}${prefix}/lib/R/modules/R_X11.so" |
---|
76 | system "install_name_tool -id ${prefix}/lib/R/modules/internet.so \ |
---|
77 | ${destroot}${prefix}/lib/R/modules/internet.so" |
---|
78 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
79 | ${destroot}${prefix}/lib/R/modules/internet.so" |
---|
80 | system "install_name_tool -id ${prefix}/lib/R/modules/lapack.so \ |
---|
81 | ${destroot}${prefix}/lib/R/modules/lapack.so" |
---|
82 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
83 | ${destroot}${prefix}/lib/R/modules/lapack.so" |
---|
84 | system "install_name_tool -id ${prefix}/lib/R/modules/vfonts.so \ |
---|
85 | ${destroot}${prefix}/lib/R/modules/vfonts.so" |
---|
86 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
87 | ${destroot}${prefix}/lib/R/modules/vfonts.so" |
---|
88 | system "install_name_tool -id ${prefix}/lib/R/library/tools/libs/tools.so \ |
---|
89 | ${destroot}${prefix}/lib/R/library/tools/libs/tools.so" |
---|
90 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
91 | ${destroot}${prefix}/lib/R/library/tools/libs/tools.so" |
---|
92 | system "install_name_tool -id ${prefix}/lib/R/library/spatial/libs/spatial.so \ |
---|
93 | ${destroot}${prefix}/lib/R/library/spatial/libs/spatial.so" |
---|
94 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
95 | ${destroot}${prefix}/lib/R/library/spatial/libs/spatial.so" |
---|
96 | system "install_name_tool -id ${prefix}/lib/R/library/class/libs/class.so \ |
---|
97 | ${destroot}${prefix}/lib/R/library/class/libs/class.so" |
---|
98 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
99 | ${destroot}${prefix}/lib/R/library/class/libs/class.so" |
---|
100 | system "install_name_tool -id ${prefix}/lib/R/library/lattice/libs/lattice.so \ |
---|
101 | ${destroot}${prefix}/lib/R/library/lattice/libs/lattice.so" |
---|
102 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
103 | ${destroot}${prefix}/lib/R/library/lattice/libs/lattice.so" |
---|
104 | system "install_name_tool -id ${prefix}/lib/R/library/tcltk/libs/tcltk.so \ |
---|
105 | ${destroot}${prefix}/lib/R/library/tcltk/libs/tcltk.so" |
---|
106 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
107 | ${destroot}${prefix}/lib/R/library/tcltk/libs/tcltk.so" |
---|
108 | system "install_name_tool -id ${prefix}/lib/R/library/survival/libs/survival.so \ |
---|
109 | ${destroot}${prefix}/lib/R/library/survival/libs/survival.so" |
---|
110 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
111 | ${destroot}${prefix}/lib/R/library/survival/libs/survival.so" |
---|
112 | system "install_name_tool -id ${prefix}/lib/R/library/stats/libs/stats.so \ |
---|
113 | ${destroot}${prefix}/lib/R/library/stats/libs/stats.so" |
---|
114 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
115 | ${destroot}${prefix}/lib/R/library/stats/libs/stats.so" |
---|
116 | system "install_name_tool -id ${prefix}/lib/R/library/KernSmooth/libs/KernSmooth.so \ |
---|
117 | ${destroot}${prefix}/lib/R/library/KernSmooth/libs/KernSmooth.so" |
---|
118 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
119 | ${destroot}${prefix}/lib/R/library/KernSmooth/libs/KernSmooth.so" |
---|
120 | system "install_name_tool -id ${prefix}/lib/R/library/mgcv/libs/mgcv.so \ |
---|
121 | ${destroot}${prefix}/lib/R/library/mgcv/libs/mgcv.so" |
---|
122 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
123 | ${destroot}${prefix}/lib/R/library/mgcv/libs/mgcv.so" |
---|
124 | system "install_name_tool -id ${prefix}/lib/R/library/methods/libs/methods.so \ |
---|
125 | ${destroot}${prefix}/lib/R/library/methods/libs/methods.so" |
---|
126 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
127 | ${destroot}${prefix}/lib/R/library/methods/libs/methods.so" |
---|
128 | system "install_name_tool -id ${prefix}/lib/R/library/nlme/libs/nlme.so \ |
---|
129 | ${destroot}${prefix}/lib/R/library/nlme/libs/nlme.so" |
---|
130 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
131 | ${destroot}${prefix}/lib/R/library/nlme/libs/nlme.so" |
---|
132 | system "install_name_tool -id ${prefix}/lib/R/library/grDevices/libs/grDevices.so \ |
---|
133 | ${destroot}${prefix}/lib/R/library/grDevices/libs/grDevices.so" |
---|
134 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
135 | ${destroot}${prefix}/lib/R/library/grDevices/libs/grDevices.so" |
---|
136 | system "install_name_tool -id ${prefix}/lib/R/library/foreign/libs/foreign.so \ |
---|
137 | ${destroot}${prefix}/lib/R/library/foreign/libs/foreign.so" |
---|
138 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
139 | ${destroot}${prefix}/lib/R/library/foreign/libs/foreign.so" |
---|
140 | system "install_name_tool -id ${prefix}/lib/R/library/MASS/libs/MASS.so \ |
---|
141 | ${destroot}${prefix}/lib/R/library/MASS/libs/MASS.so" |
---|
142 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
143 | ${destroot}${prefix}/lib/R/library/MASS/libs/MASS.so" |
---|
144 | system "install_name_tool -id ${prefix}/lib/R/library/nnet/libs/nnet.so \ |
---|
145 | ${destroot}${prefix}/lib/R/library/nnet/libs/nnet.so" |
---|
146 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
147 | ${destroot}${prefix}/lib/R/library/nnet/libs/nnet.so" |
---|
148 | system "install_name_tool -id ${prefix}/lib/R/library/grid/libs/grid.so \ |
---|
149 | ${destroot}${prefix}/lib/R/library/grid/libs/grid.so" |
---|
150 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
151 | ${destroot}${prefix}/lib/R/library/grid/libs/grid.so" |
---|
152 | system "install_name_tool -id ${prefix}/lib/R/library/rpart/libs/rpart.so \ |
---|
153 | ${destroot}${prefix}/lib/R/library/rpart/libs/rpart.so" |
---|
154 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
155 | ${destroot}${prefix}/lib/R/library/rpart/libs/rpart.so" |
---|
156 | system "install_name_tool -id ${prefix}/lib/R/library/splines/libs/splines.so \ |
---|
157 | ${destroot}${prefix}/lib/R/library/splines/libs/splines.so" |
---|
158 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
159 | ${destroot}${prefix}/lib/R/library/splines/libs/splines.so" |
---|
160 | system "install_name_tool -id ${prefix}/lib/R/library/cluster/libs/cluster.so \ |
---|
161 | ${destroot}${prefix}/lib/R/library/cluster/libs/cluster.so" |
---|
162 | system "install_name_tool -change libR.dylib ${prefix}/lib/R/lib/libR.dylib \ |
---|
163 | ${destroot}${prefix}/lib/R/library/cluster/libs/cluster.so" |
---|
164 | } |
---|
165 | |
---|