0
|
1 <?xml version="1.0"?>
|
|
2 <tool_dependency>
|
2
|
3 <!--<package name="readline" version="6.2">
|
|
4 <repository name="package_readline_6_2" owner="iuc" prior_installation_required="True" />
|
|
5 </package>-->
|
0
|
6 <package name="R_3_0_1" version="3.0.1">
|
|
7 <install version="1.0">
|
|
8 <actions>
|
|
9 <action type="download_by_url">http://cran.ms.unimelb.edu.au/src/base/R-3/R-3.0.1.tar.gz</action>
|
2
|
10 <!--<action type="set_environment_for_install">
|
|
11 <repository name="package_readline_6_2" owner="iuc">
|
0
|
12 <package name="readline" version="6.2" />
|
2
|
13 </repository>-->
|
0
|
14 </action>
|
|
15
|
2
|
16 <action type="template_command" language="cheetah">
|
0
|
17 #set $cmd = './configure'
|
|
18
|
|
19 #if env.get('READLINE_LIB_PATH', False):
|
|
20 export LDFLAGS=-L$env.READLINE_LIB_PATH &&
|
|
21 export CPPFLAGS=-I$env.READLINE_INCLUDE_PATH &&
|
|
22 #set $cmd += ' --with-readline=yes '
|
|
23 #else:
|
|
24 #set $cmd += ' --with-readline=no '
|
|
25 #end if
|
|
26
|
|
27 #set $cmd += ' --enable-R-shlib --with-x=no --libdir=%s/lib/ --bindir=%s/bin/ --datarootdir=%s/share/' % ($env.INSTALL_DIR, $env.INSTALL_DIR, $env.INSTALL_DIR)
|
|
28 $cmd
|
|
29 </action>
|
|
30 <action type="shell_command">make</action>
|
|
31 <action type="shell_command">make install</action>
|
|
32 <action type="set_environment">
|
|
33 <environment_variable action="set_to" name="R_HOME">$INSTALL_DIR/lib/R</environment_variable>
|
|
34 <environment_variable action="set_to" name="R_LIBS">$INSTALL_DIR/lib/R/library</environment_variable>
|
|
35 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/lib/R/bin</environment_variable>
|
|
36 <environment_variable action="append_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib/R/lib</environment_variable>
|
|
37 <environment_variable action="set_to" name="RHOME">$INSTALL_DIR/lib/R</environment_variable>
|
|
38 <environment_variable action="set_to" name="R_PATH">$INSTALL_DIR/lib/R/bin</environment_variable>
|
|
39 </action>
|
|
40 </actions>
|
|
41 </install>
|
|
42 <readme>R is a free software environment for statistical computing and graphics. http://www.r-project.org/</readme>
|
|
43 </package>
|
|
44 </tool_dependency>
|