comparison tool_dependencies.xml @ 0:7e1a85c4427a draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/packages/package_perl_5_18 commit 2947cbbe0a688473dd7cae2bcb9f268fb23ed9ee-dirty
author mvdbeek
date Sat, 15 Aug 2015 10:39:33 -0400
parents
children 4d932b1a336b
comparison
equal deleted inserted replaced
-1:000000000000 0:7e1a85c4427a
1 <?xml version="1.0"?>
2 <tool_dependency>
3 <package name="gnu_sed" version="4.2.2-sandbox">
4 <repository changeset_revision="ae00df77b031" name="package_gnu_sed_4_2_2_sandbox" owner="iuc" prior_installation_required="True" toolshed="https://testtoolshed.g2.bx.psu.edu" />
5 </package>
6 <package name="perl" version="5.18.1">
7 <install version="1.0">
8 <actions>
9
10 <!-- install perl -->
11 <action type="download_by_url">http://www.cpan.org/src/5.0/perl-5.18.1.tar.gz</action>
12 <action type="shell_command">./Configure -des -Dprefix=$INSTALL_DIR -Dstartperl='#!/usr/bin/env perl'</action>
13 <action type="make_install" />
14 <action type="change_directory">..</action>
15 <action type="download_file">http://www.cpan.org/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz</action>
16 <action type="shell_command">tar xfvz local-lib-1.008009.tar.gz</action>
17 <action type="change_directory">local-lib-1.008009</action>
18 <!-- TODO: Here we need to use the new installed perl binary -->
19 <action type="shell_command">export PATH=$INSTALL_DIR/bin/:$PATH; perl Makefile.PL --bootstrap=$INSTALL_DIR/local-lib/ --no-manpages</action>
20 <action type="shell_command">make install</action>
21 <action type="shell_command">export PATH=$INSTALL_DIR/bin/:$PATH; eval $(perl -I$INSTALL_DIR/local-lib/perl5 -Mlocal::lib=$INSTALL_DIR/local-lib)</action>
22 <action type="change_directory">..</action>
23 <!-- install cpanminus into our new perl environment -->
24 <action type="download_file">https://raw.github.com/miyagawa/cpanminus/c0c88f71118ecec334d62ba280e883933e7a6d39/cpanm</action>
25 <!-- prepanding means that the new install perl binary will be used after the pipe -->
26 <action type="shell_command">export PERL5LIB=$INSTALL_DIR/lib/perl5/:$PERL5LIB ; export PATH=$INSTALL_DIR/bin/:$PATH ; cat cpanm | perl - App::cpanminus</action>
27 <action type="shell_command">sed -i.bak -e 's|#!$INSTALL_DIR/bin/|#!/usr/bin/env |' $INSTALL_DIR/bin/*</action>
28
29 <action type="set_environment">
30 <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
31 <environment_variable action="prepend_to" name="PERL5LIB">$INSTALL_DIR/lib/perl5</environment_variable>
32 <environment_variable action="set_to" name="PERL_ROOT_DIR">$INSTALL_DIR</environment_variable>
33 <environment_variable action="set_to" name="PERL_LOCALLIB_DIR">$INSTALL_DIR/local-lib</environment_variable>
34 </action>
35 </actions>
36 </install>
37 <readme>
38 Perl 5 is a highly capable, feature-rich programming language with over 25 years of development.
39 http://www.perl.org/
40
41 This repository contains local-lib and cpanm in addition.
42 It is recommended to use something like "cpanm --local-lib=$PERL_ROOT_DIR XML::Parser" to install additional perl modules.
43 </readme>
44 </package>
45 </tool_dependency>