|
0
|
1 <tool_dependency>
|
|
|
2 <package name="perl" version="5.18.1">
|
|
|
3 <install version="1.0">
|
|
|
4 <actions>
|
|
|
5
|
|
|
6 <!-- install perl -->
|
|
|
7 <action type="download_by_url">http://www.cpan.org/src/5.0/perl-5.18.1.tar.gz</action>
|
|
2
|
8 <action type="shell_command">./Configure -des -Dprefix=$INSTALL_DIR ; make ; make install</action>
|
|
0
|
9
|
|
|
10 <action type="download_file">http://www.cpan.org/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz</action>
|
|
|
11 <action type="shell_command">tar xfvz local-lib-1.008009.tar.gz</action>
|
|
|
12 <action type="change_directory">local-lib-1.008009</action>
|
|
|
13 <action type="shell_command">perl Makefile.PL --bootstrap=$INSTALL_DIR/local-lib/ --no-manpages</action>
|
|
|
14 <action type="shell_command">make install</action>
|
|
3
|
15 <action type="shell_command">eval $($INSTALL_DIR/bin/perl -I$INSTALL_DIR/local-lib/perl5 -Mlocal::lib=$INSTALL_DIR/local-lib)</action>
|
|
0
|
16
|
|
4
|
17
|
|
|
18
|
|
|
19 <!-- install cpanminus into our new perl environment -->
|
|
0
|
20 <action type="download_file">https://raw.github.com/miyagawa/cpanminus/c0c88f71118ecec334d62ba280e883933e7a6d39/cpanm</action>
|
|
4
|
21
|
|
|
22 <action type="shell_command">export PERL5LIB=$INSTALL_DIR/lib/perl5/:$PERL5LIB ; export PATH=$INSTALL_DIR/bin/:$PATH ; cat cpanm | perl - App::cpanminus</action>
|
|
|
23
|
|
|
24 <!-- Use cpanminus to install some perl packages -->
|
|
|
25 <action type="shell_command">
|
|
|
26 export PERL5LIB=$INSTALL_DIR/lib/perl5/:$PERL5LIB ; export PATH=$INSTALL_DIR/bin/:$PATH ; cpanm --local-lib=$INSTALL_DIR XML::Parser
|
|
0
|
27 </action>
|
|
4
|
28 <action type="shell_command">
|
|
|
29 export PERL5LIB=$INSTALL_DIR/lib/perl5/:$PERL5LIB ; export PATH=$INSTALL_DIR/bin/:$PATH ; cpanm --local-lib=$INSTALL_DIR CGI
|
|
0
|
30 </action>
|
|
|
31
|
|
|
32
|
|
|
33 <action type="set_environment">
|
|
|
34 <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
|
|
|
35 <environment_variable name="PERL5LIB" action="prepend_to">$INSTALL_DIR/lib/perl5</environment_variable>
|
|
|
36 <environment_variable name="PERL_ROOT_DIR" action="set_to">$INSTALL_DIR/lib</environment_variable>
|
|
|
37 </action>
|
|
|
38 </actions>
|
|
|
39 </install>
|
|
|
40 <readme>
|
|
|
41 Perl installation test.
|
|
|
42 </readme>
|
|
|
43 </package>
|
|
|
44 </tool_dependency>
|