changeset 19:66db6ede3e0e draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/packages/package_perl_5_18 commit 55b5863db6c3e6cf443917117ec362a8daad8122
author iuc
date Sun, 14 Feb 2016 09:19:37 -0500
parents 6f144bd786a8
children 318ccddfe301
files tool_dependencies.xml
diffstat 1 files changed, 25 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/tool_dependencies.xml	Wed Dec 30 12:40:49 2015 -0500
+++ b/tool_dependencies.xml	Sun Feb 14 09:19:37 2016 -0500
@@ -1,38 +1,48 @@
+<?xml version="1.0"?>
 <tool_dependency>
+    <package name="gnu_coreutils" version="8.22">
+        <repository changeset_revision="8b60cf3e0c07" name="package_gnu_coreutils_8_22" owner="iuc" prior_installation_required="True" toolshed="https://testtoolshed.g2.bx.psu.edu" />
+    </package>
     <package name="perl" version="5.18.1">
         <install version="1.0">
             <actions>
-
                 <!-- install perl -->
-                <action type="download_by_url">http://www.cpan.org/src/5.0/perl-5.18.1.tar.gz</action>
+                <action sha256sum="655e11a8ffba8853efcdce568a142c232600ed120ac24aaebb4e6efe74e85b2b" type="download_by_url">
+                    https://depot.galaxyproject.org/software/perl/perl_5.18_src_all.tar.gz
+                </action>
                 <action type="shell_command">./Configure -des -Dprefix=$INSTALL_DIR -Dstartperl='#!/usr/bin/env perl'</action>
                 <action type="make_install" />
                 <action type="change_directory">..</action>
-                <action type="download_file">http://www.cpan.org/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz</action>
+                <action sha256sum="5c69adb47ab828aa3e8b5be89b88cd49c6a0d0dae2e8b3bca17a9ce699190e7b" type="download_file">
+                    http://www.cpan.org/authors/id/A/AP/APEIRON/local-lib-1.008009.tar.gz
+                </action>
                 <action type="shell_command">tar xfvz local-lib-1.008009.tar.gz</action>
                 <action type="change_directory">local-lib-1.008009</action>
                 <!-- TODO: Here we need to use the new installed perl binary -->
-                <action type="shell_command">export PATH=$INSTALL_DIR/bin/:$PATH; perl Makefile.PL --bootstrap=$INSTALL_DIR/local-lib/ --no-manpages</action>
+                <!-- Test whether $TMP_WORK_DIR exists (introduced in galaxy release 15.07).
+                If not, fall back to using mktemp. Should be set to HOME=$TEMP_WORK_DIR in the future. -->
+                <action type="shell_command">if [ -d "$TMP_WORK_DIR" ] ; then export HOME=$TMP_WORK_DIR ; else export HOME=`mktemp -d` ; fi ; export PATH=$INSTALL_DIR/bin/:$PATH; perl Makefile.PL --bootstrap=$INSTALL_DIR/local-lib/ --no-manpages</action>
                 <action type="shell_command">make install</action>
-                <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>
+                <action type="shell_command">export PATH=$INSTALL_DIR/bin/:$PATH; eval $(perl -I$INSTALL_DIR/local-lib/lib/perl5 -Mlocal::lib=$INSTALL_DIR/local-lib)</action>
                 <action type="change_directory">..</action>
                 <!-- install cpanminus into our new perl environment -->
-                <action type="download_file">https://raw.github.com/miyagawa/cpanminus/c0c88f71118ecec334d62ba280e883933e7a6d39/cpanm</action>
-                <!-- prepanding means that the new install perl binary will be used after the pipe -->
-                <action type="shell_command">export PERL5LIB=$INSTALL_DIR/lib/perl5/:$PERL5LIB ; export PATH=$INSTALL_DIR/bin/:$PATH ; cat cpanm | perl - App::cpanminus</action>
-                <action type="shell_command">sed -i -e 's|#!$INSTALL_DIR/bin/|#!/usr/bin/env |' $INSTALL_DIR/bin/*</action>
-
+                <action sha256sum="0b67f5c721259d4185bacdcbc87b835821246fe8ac7ad980d3b1a18ecdd10ff6" type="download_file">
+                    https://raw.github.com/miyagawa/cpanminus/c0c88f71118ecec334d62ba280e883933e7a6d39/cpanm
+                </action>
+                <!-- prepending means that the new install perl binary will be used after the pipe -->
+                <action type="shell_command">if [ -d "$TMP_WORK_DIR" ] ; then export HOME=$TMP_WORK_DIR ; else export HOME=`mktemp -d` ; fi ; unset PERL_MB_OPT PERL_MM_OPT ; export PERL5LIB=$INSTALL_DIR/lib/perl5/:$PERL5LIB ; export PATH=$INSTALL_DIR/bin/:$PATH ; cat cpanm | perl - App::cpanminus</action>
+                <action type="shell_command">LC_ALL=C sed -i.bak -e 's|#!$INSTALL_DIR/bin/|#!/usr/bin/env |' $INSTALL_DIR/bin/*</action>
                 <action type="set_environment">
-                    <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable>
-                    <environment_variable name="PERL5LIB" action="prepend_to">$INSTALL_DIR/lib/perl5</environment_variable>
-                    <environment_variable name="PERL_ROOT_DIR" action="set_to">$INSTALL_DIR</environment_variable>
-                    <environment_variable name="PERL_LOCALLIB_DIR" action="set_to">$INSTALL_DIR/local-lib</environment_variable>
+                    <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
+                    <environment_variable action="prepend_to" name="PERL5LIB">$INSTALL_DIR/lib/perl5</environment_variable>
+                    <environment_variable action="set_to" name="PERL_ROOT_DIR">$INSTALL_DIR</environment_variable>
+                    <environment_variable action="set_to" name="PERL_LOCALLIB_DIR">$INSTALL_DIR/local-lib</environment_variable>
                 </action>
             </actions>
         </install>
         <readme>
             Perl 5 is a highly capable, feature-rich programming language with over 25 years of development.
-            http://www.perl.org/
+            https://www.perl.org/
 
             This repository contains local-lib and cpanm in addition.
             It is recommended to use something like "cpanm --local-lib=$PERL_ROOT_DIR XML::Parser" to install additional perl modules.