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>
|
|
8 <action type="shell_command">/Configure -des -Dprefix=$INSTALL_DIR</action>
|
|
9 <action type="autoconf" />
|
|
10
|
|
11 <action type="download_file">http://www.cpan.org/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz</action>
|
|
12 <action type="shell_command">tar xfvz local-lib-1.008009.tar.gz</action>
|
|
13 <action type="change_directory">local-lib-1.008009</action>
|
|
14 <action type="shell_command">perl Makefile.PL --bootstrap=$INSTALL_DIR/local-lib/ --no-manpages</action>
|
|
15 <action type="shell_command">make install</action>
|
|
16 <action type="shell_command">eval $(perl -I$INSTALL_DIR/local-lib/perl5 -Mlocal::lib=$INSTALL_DIR/local-lib)</action>
|
|
17
|
|
18 <action type="download_file">https://raw.github.com/miyagawa/cpanminus/c0c88f71118ecec334d62ba280e883933e7a6d39/cpanm</action>
|
|
19 <action type="chmod">
|
|
20 <file mode="750">cpanm</file>
|
|
21 </action>
|
|
22 <action type="move_file">
|
|
23 <source>cpanm</source>
|
|
24 <destination>$INSTALL_DIR/bin/</destination>
|
|
25 </action>
|
|
26 <action type="shell_command">cpanm --local-lib=$INSTALL_DIR XML::Parser</action>
|
|
27 <action type="shell_command">cpanm --local-lib=$INSTALL_DIR CGI</action>
|
|
28
|
|
29
|
|
30 <action type="set_environment">
|
|
31 <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
|
|
32 <environment_variable name="PERL5LIB" action="prepend_to">$INSTALL_DIR/lib/perl5</environment_variable>
|
|
33 <environment_variable name="PERL_ROOT_DIR" action="set_to">$INSTALL_DIR/lib</environment_variable>
|
|
34 </action>
|
|
35 </actions>
|
|
36 </install>
|
|
37 <readme>
|
|
38 Perl installation test.
|
|
39 </readme>
|
|
40 </package>
|
|
41 </tool_dependency>
|