view tool_dependencies.xml @ 0:0464d82a4c3f draft default tip

inital version
author bgruening
date Fri, 09 Aug 2013 10:39:54 -0400
parents
children
line wrap: on
line source

<?xml version="1.0"?>
<tool_dependency>
    <package name="bzlib" version="1.0.6">
        <repository changeset_revision="58a38de96f9b" name="package_bzlib_1_0" owner="bgruening" prior_installation_required="True" toolshed="http://testtoolshed.g2.bx.psu.edu" />
    </package>
    <package name="boost" version="1.54.0">
        <install version="1.0">
            <actions>
                <action type="download_by_url">http://sourceforge.net/projects/boost/files/boost/1.54.0/boost_1_54_0.tar.bz2</action>

                <!-- populate the environment variables from the dependend repos -->
                <action type="set_environment_for_install">
                    <repository changeset_revision="58a38de96f9b" name="package_bzlib_1_0" owner="bgruening" toolshed="http://testtoolshed.g2.bx.psu.edu">
                        <package name="bzlib" version="1.0.6" />
                    </repository>
                </action>

                <action type="shell_command">./bootstrap.sh</action>
                <!-- try to set the right architecture with uname -m -->
                <action type="shell_command">
                    if [ $(uname -m) == 'x86_64' ]; then 
                        ./bjam install --prefix=$INSTALL_DIR/boost/ -sBZIP2_INCLUDE=$BZLIB_INCLUDE_DIR -sBZIP2_LIB=$BZLIB_LIB_DIR -sBZIP2_SOURCE=$BZLIB_SOURCE_DIR; 
                    else 
                        ./bjam address-model=64 cflags=-fPIC cxxflags=-fPIC install --prefix=$INSTALL_DIR/boost/ -sBZIP2_INCLUDE=$BZLIB_INCLUDE_DIR -sBZIP2_LIB=$BZLIB_LIB_DIR -sBZIP2_SOURCE=$BZLIB_SOURCE_DIR; 
                    fi;
                </action>
                <action type="set_environment">
                    <environment_variable action="set_to" name="BOOST_ROOT_DIR">$INSTALL_DIR/boost</environment_variable>
                    <environment_variable action="append_to" name="LD_LIBRARY_PATH">$INSTALL_DIR/boost/lib/</environment_variable>
                </action>
            </actions>
        </install>
        <readme>
        Compiling boost requires a C++ compiler (typically gcc). 
        You can access the boost root directory through the $BOOST_ROOT_DIR system variable. All modules will be build.
        Development of that wrapper happens in https://github.com/bgruening/galaxytools/tree/master/orphan_tool_dependencies/.
        </readme>
    </package>
</tool_dependency>