Mercurial > repos > iuc > package_perl_5_18
changeset 4:c807cdcad590 draft
Fix cpanminus install actions
author | iuc |
---|---|
date | Mon, 04 Nov 2013 23:38:35 -0500 |
parents | 6db4870d4296 |
children | 978287122b91 |
files | tool_dependencies.xml |
diffstat | 1 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/tool_dependencies.xml Mon Nov 04 23:05:26 2013 -0500 +++ b/tool_dependencies.xml Mon Nov 04 23:38:35 2013 -0500 @@ -14,16 +14,20 @@ <action type="shell_command">make install</action> <action type="shell_command">eval $($INSTALL_DIR/bin/perl -I$INSTALL_DIR/local-lib/perl5 -Mlocal::lib=$INSTALL_DIR/local-lib)</action> + + + <!-- install cpanminus into our new perl environment --> <action type="download_file">https://raw.github.com/miyagawa/cpanminus/c0c88f71118ecec334d62ba280e883933e7a6d39/cpanm</action> - <action type="chmod"> - <file mode="750">cpanm</file> + + <action type="shell_command">export PERL5LIB=$INSTALL_DIR/lib/perl5/:$PERL5LIB ; export PATH=$INSTALL_DIR/bin/:$PATH ; cat cpanm | perl - App::cpanminus</action> + + <!-- Use cpanminus to install some perl packages --> + <action type="shell_command"> + export PERL5LIB=$INSTALL_DIR/lib/perl5/:$PERL5LIB ; export PATH=$INSTALL_DIR/bin/:$PATH ; cpanm --local-lib=$INSTALL_DIR XML::Parser </action> - <action type="move_file"> - <source>cpanm</source> - <destination>$INSTALL_DIR/bin/</destination> + <action type="shell_command"> + export PERL5LIB=$INSTALL_DIR/lib/perl5/:$PERL5LIB ; export PATH=$INSTALL_DIR/bin/:$PATH ; cpanm --local-lib=$INSTALL_DIR CGI </action> - <action type="shell_command">$INSTALL_DIR/bin/cpanm --local-lib=$INSTALL_DIR XML::Parser</action> - <action type="shell_command">$INSTALL_DIR/bin/cpanm --local-lib=$INSTALL_DIR CGI</action> <action type="set_environment">