view tool_dependencies.xml @ 6:9b900e1578be draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/packages/package_atlas_3_10 commit c2e47951d0f68e2533e45529ece8a52ab01b9cd2-dirty
author iuc
date Fri, 17 Jun 2016 06:07:19 -0400
parents c0a66ce2a119
children 98c017ec230d
line wrap: on
line source

<?xml version="1.0"?>
<tool_dependency>
    <package name="atlas" version="3.10.2">
        <install version="1.0">
            <actions_group>
                <actions architecture="x86_64" os="linux">
                    <action type="download_by_url" sha256sum="c36a9edf352aa3652ae2c3cccf752351e12291c1d018da842093f9dc70fa2da3">https://depot.galaxyproject.org/software/atlas/atlas_3.10.2_linux_x64.tar.gz</action>
                    <action type="move_directory_files">
                        <source_directory>.</source_directory>
                        <destination_directory>$INSTALL_DIR</destination_directory>
                    </action>
                    <action type="set_environment">
                        <environment_variable action="set_to" name="ATLAS_LIB_DIR">$INSTALL_DIR/lib</environment_variable>
                        <environment_variable action="set_to" name="ATLAS_INCLUDE_DIR">$INSTALL_DIR/include</environment_variable>
                        <environment_variable action="set_to" name="ATLAS_BLAS_LIB_DIR">$INSTALL_DIR/lib/atlas</environment_variable>
                        <environment_variable action="set_to" name="ATLAS_LAPACK_LIB_DIR">$INSTALL_DIR/lib/atlas</environment_variable>
                        <environment_variable action="set_to" name="ATLAS">$INSTALL_DIR</environment_variable>
                        <environment_variable action="set_to" name="ATLAS_ROOT_PATH">$INSTALL_DIR</environment_variable>
                        <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib</environment_variable>
                        <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib/atlas</environment_variable>
                    </action>
                    <action type="shell_command"><![CDATA[
                        command -v gfortran || return 0
                        BUNDLED_LGF_CANON=$INSTALL_DIR/lib/libgfortran.so.3.0.0 &&
                        BUNDLED_LGF_VERS=`objdump -p $BUNDLED_LGF_CANON | grep GFORTRAN_1 | sed -r 's/.*GFORTRAN_1\.([0-9])+/\1/' | sort -n | tail -1` &&
                        echo 'program test; end program test' > test.f90 &&
                        gfortran -o test test.f90 &&
                        LGF=`ldd test | grep libgfortran | awk '{print $3}'` &&
                        LGF_CANON=`readlink -f $LGF` &&
                        LGF_VERS=`objdump -p $LGF_CANON | grep GFORTRAN_1 | sed -r 's/.*GFORTRAN_1\.([0-9])+/\1/' | sort -n | tail -1` &&
                        if [ $LGF_VERS -gt $BUNDLED_LGF_VERS ]; then
                            cp -p $BUNDLED_LGF_CANON ${BUNDLED_LGF_CANON}.bundled &&
                            cp -p $LGF_CANON $BUNDLED_LGF_CANON
                        fi
                    ]]></action>
                </actions>
                <actions architecture="x86_64" os="darwin">
                    <!-- NOOP: On OS X we will use Apple's vecLib -->
                </actions>
                <actions>
                    <action type="download_file" sha256sum="3aab139b118bf3fcdb4956fbd71676158d713ab0d3bccb2ae1dc3769db22102f">https://depot.galaxyproject.org/software/atlas/atlas_3.10.2+gx0_src_all.tar.bz2</action>
                    <action type="download_file" sha256sum="9ad8f0d3f3fb5521db49f2dd716463b8fb2b6bc9dc386a9956b8c6144f726352">https://depot.galaxyproject.org/software/lapack/lapack_3.5.0_src_all.tar.gz</action>
                    <action type="download_file" sha256sum="adbe462b179a2d626cd229cddcb08e39ae2f2544eccf80ab617790b307667146">https://depot.galaxyproject.org/software/atlas/atlas_patch-blas-lapack-1.0_src_all.diff</action>
                    <action type="download_file" sha256sum="95862478f7d276f948a58c583acd2935ada9ad3bb55944a303d94e161e202d89">https://depot.galaxyproject.org/software/atlas/atlas_patch-shared-lib-1.0_src_all.diff</action>
                    <action type="download_file" sha256sum="f805600c46719f74752e9026e1461d084a385ba67838364a81c36cdfb69cad82">https://depot.galaxyproject.org/software/atlas/atlas_patch-cpu-throttle-1.0_src_all.diff</action>
                    <action type="shell_command">tar -jxvf atlas_3.10.2+gx0_src_all.tar.bz2</action>
                    <!-- a 64-bit architecture is assumed for compilation -->
                    <action type="shell_command"><![CDATA[
                        cd ATLAS &&
                        mkdir build &&
                        patch -p1 < ../atlas_patch-blas-lapack-1.0_src_all.diff &&
                        patch -p1 < ../atlas_patch-shared-lib-1.0_src_all.diff &&
                        patch -p1 < ../atlas_patch-cpu-throttle-1.0_src_all.diff &&
                        cd build &&
                        ../configure --prefix="$INSTALL_DIR" -D c -DWALL -b 64 -Fa alg '-fPIC' --with-netlib-lapack-tarfile=../../lapack-3.5.0.tgz -v 2 -t 0 -Si cputhrchk 0 &&
                        make &&
                        make install
                    ]]></action>
                    <action type="set_environment">
                        <environment_variable action="set_to" name="ATLAS_LIB_DIR">$INSTALL_DIR/lib</environment_variable>
                        <environment_variable action="set_to" name="ATLAS_INCLUDE_DIR">$INSTALL_DIR/include</environment_variable>
                        <environment_variable action="set_to" name="ATLAS_BLAS_LIB_DIR">$INSTALL_DIR/lib/atlas</environment_variable>
                        <environment_variable action="set_to" name="ATLAS_LAPACK_LIB_DIR">$INSTALL_DIR/lib/atlas</environment_variable>
                        <environment_variable action="set_to" name="ATLAS_ROOT_PATH">$INSTALL_DIR</environment_variable>
                        <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib</environment_variable>
                        <environment_variable action="prepend_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/lib/atlas</environment_variable>
                    </action>
                </actions>
            </actions_group>
        </install>
        <readme>Compiling ATLAS requires a C and Fortran compiler (typically gcc and gfortran). The base ATLAS installation path can be is exported as ATLAS_ROOT_PATH, libraries as ATLAS_LIB_DIR, and headers as ATLAS_INCLUDE_DIR.
        This ATLAS build includes patches from the Debian ATLAS packages which enable additional features:
            1. Shared versions of the standard ATLAS libraries are built in addition to the static versions
            2. Full BLAS and LAPACK libraries are built, which can be found in the ATLAS_BLAS_LIB_DIR and ATLAS_LAPACK_LIB_DIR directories
        This package also includes a bundled libgfortran and export LD_LIBRARY_PATH=$ATLAS_LIB_DIR so that any dependent packages which link to ATLAS will be able to resolve all necessary libraries at runtime.
        On Mac OS X, this package is a dummy package - BLAS and LAPACK libraries are already provided in Apple's vecLib.
        </readme>
    </package>
</tool_dependency>