This notebook will build a Galaxy tool_dependencies.xml file from a Perl Package Name

Simply replace the package name in cell 2.


In [1]:
!cpanm CPAN::FindDependencies


!
! Can't write to /usr/local/share/perl/5.14.2 and /usr/local/bin: Installing modules to /home/helena/perl5
! To turn off this warning, you have to do one of the following:
!   - run me as a root or with --sudo option (to install to /usr/local/share/perl/5.14.2 and /usr/local/bin)
!   - Configure local::lib your existing local::lib in this shell to set PERL_MM_OPT etc.
!   - Install local::lib by running the following commands
!
!         cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
!
CPAN::FindDependencies is up to date. (2.42)

In [2]:
!PERL5LIB=~/perl5/lib/perl5/ perl perl_modules_to_tool_dependencies.pl HTTP::Client


<tool_dependency>
    <package name="perl" version="5.18.1">
        <repository name="package_perl_5_18" owner="iuc" prior_installation_required="True" />
    </package>
    <package name="perl_http_client" version="1.57">
        <install version="1.0">
            <actions>
                <action type="setup_perl_environment">
                    <repository name="package_perl_5_18" owner="iuc">
                        <package name="perl" version="5.18.1" />
                    </repository>
                    <package>http://www.cpan.org/authors/id/C/CJ/CJM/IO-HTML-1.001.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/G/GA/GAAS/LWP-MediaTypes-6.02.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/E/ET/ETHER/URI-1.65.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Date-6.02.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tagset-3.20.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Message-6.06.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/G/GA/GAAS/Encode-Locale-1.04.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/G/GA/GAAS/File-Listing-6.04.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/G/GA/GAAS/HTML-Parser-3.71.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Cookies-6.01.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Daemon-6.01.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/G/GA/GAAS/HTTP-Negotiate-6.01.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/M/MS/MSCHILLI/Net-HTTP-6.07.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/G/GA/GAAS/WWW-RobotRules-6.02.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/M/MS/MSCHILLI/libwww-perl-6.08.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/N/NE/NEILB/HTTP-Lite-2.43.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/A/AD/ADAMK/LWP-Online-1.08.tar.gz</package>
                    <package>http://www.cpan.org/authors/id/N/NE/NEILB/HTTP-Client-1.57.tar.gz</package>
                </action>
            </actions>
        </install>
        <readme><![CDATA[
            Perl package: HTTP::Client
        ]]>
        </readme>
    </package>
</tool_dependency>