view tool_dependencies.xml @ 2:18496de7706f draft default tip

Record SHA256 checksums for NCBI binaries
author peterjc
date Thu, 18 Aug 2016 06:41:28 -0400
parents 0b75bc235e70
children
line wrap: on
line source

<?xml version='1.0' encoding='utf-8'?>
<tool_dependency>
    <package name="blast+" version="2.2.29">
        <install version="1.0">
            <actions_group>
                <!-- Download the binaries for BLAST+ compatible with 64-bit OSX. -->
                <actions os="darwin" architecture="x86_64">
                    <action type="download_by_url" sha256sum="94fa720f98041e5b97f234fda7109d0c99a67a6ad9f68cff619b87d0f9bfe801">ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.29/ncbi-blast-2.2.29+-universal-macosx.tar.gz</action>
                    <action type="move_directory_files">
                         <source_directory>bin</source_directory>
                         <destination_directory>$INSTALL_DIR</destination_directory>
                     </action>
                </actions>
                <!-- Download the binaries for BLAST+ compatible with 32-bit OSX. -->
                <actions os="darwin" architecture="i386">
                    <action type="download_by_url" sha256sum="94fa720f98041e5b97f234fda7109d0c99a67a6ad9f68cff619b87d0f9bfe801">ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.29/ncbi-blast-2.2.29+-universal-macosx.tar.gz</action>
                    <action type="move_directory_files">
                        <source_directory>bin</source_directory>
                        <destination_directory>$INSTALL_DIR</destination_directory>
                    </action>
                </actions>
                <!-- Download the binaries for BLAST+ compatible with 64-bit Linux. -->
                <actions os="linux" architecture="x86_64">
                    <action type="download_by_url" sha256sum="f53e97aaff424c2583cebff76a318f36610b5444657cee2b2072513ca907fedf">ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.29/ncbi-blast-2.2.29+-x64-linux.tar.gz</action>
                    <action type="move_directory_files">
                        <source_directory>bin</source_directory>
                        <destination_directory>$INSTALL_DIR</destination_directory>
                    </action>
                </actions>
                <!-- Download the binaries for BLAST+ compatible with 32-bit Linux (i386). -->
                <actions os="linux" architecture="i386">
                    <action type="download_by_url" sha256sum="803c2c6536169945f491314c19d9b76d0343da0976441a90b9c3ce5d495422ea">ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.29/ncbi-blast-2.2.29+-ia32-linux.tar.gz</action>
                    <action type="move_directory_files">
                        <source_directory>bin</source_directory>
                        <destination_directory>$INSTALL_DIR</destination_directory>
                    </action>
                </actions>
                <!-- Download the binaries for BLAST+ compatible with 32-bit Linux (i686). -->
                <actions os="linux" architecture="i686">
                    <action type="download_by_url" sha256sum="803c2c6536169945f491314c19d9b76d0343da0976441a90b9c3ce5d495422ea">ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.2.29/ncbi-blast-2.2.29+-ia32-linux.tar.gz</action>
                    <action type="move_directory_files">
                        <source_directory>bin</source_directory>
                        <destination_directory>$INSTALL_DIR</destination_directory>
                    </action>
                </actions>
                <!-- This actions tag is only processed if none of the above tags resulted in a successful installation. -->
                <actions>
                    <action type="shell_command">echo "ERROR: Automated installation on your operating system and CPU architecture combination is not yet supported."</action>
                    <action type="shell_command">echo "Your machine details (the output from 'uname' and 'arch'):"</action>
                    <action type="shell_command">uname</action>
                    <action type="shell_command">arch</action>
                    <action type="shell_command">echo "Please report this via https://github.com/peterjc/galaxy_blast/issues - thank you!"</action>
                    <action type="shell_command">false</action>
                    <!-- The 'false' command will return an error, so Galaxy should treat this as a failed install -->
                </actions>
                <!-- The $PATH environment variable is only set if one of the above <actions> tags resulted in a successful installation. -->
                <action type="set_environment">
                    <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR</environment_variable>
                    <environment_variable name="BLAST_ROOT_DIR" action="set_to">$INSTALL_DIR</environment_variable>
                </action>
            </actions_group>
        </install>
        <readme>
Downloads the precompiled 32bit Linux, 64bit Linux, or Mac OS X BLAST+
binaries from the NCBI, which is faster than performing a local compilation,
avoids any issues with build dependencies, and is more reproducible between
installations as there is no variability from the compiler or library versions.

For more details, see:
http://blast.ncbi.nlm.nih.gov/Blast.cgi?CMD=Web&amp;PAGE_TYPE=BlastDocs&amp;DOC_TYPE=Download
        </readme>
    </package>
</tool_dependency>