view tool_dependencies.xml @ 1:24d860ee7f16 draft

adoption of new toolshed features
author bgruening
date Fri, 15 Nov 2013 14:53:52 -0500
parents a66c1f4d3c68
children ac22c6f7ae1d
line wrap: on
line source

<tool_dependency>
    <package name="eigen2" version="2.0.17">
        <install version="1.0">
            <actions>
                <action type="download_by_url">http://bitbucket.org/eigen/eigen/get/2.0.17.tar.gz</action>
                <action type="make_directory">$INSTALL_DIR/unpacked_source</action>
                <action type="shell_command">cp -r * $INSTALL_DIR/unpacked_source</action>
                <action type="make_directory">build</action>
                <action type="change_directory">build</action>
                <action type="shell_command">cmake .. -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR/eigen3/</action>
                <action type="make_install" />

                <action type="set_environment">
                    <environment_variable name="EIGEN2_SOURCE_PATH" action="set_to">$INSTALL_DIR/unpacked_source</environment_variable>
                    <environment_variable name="EIGEN2_INCLUDE_PATH" action="set_to">$INSTALL_DIR/eigen2/include</environment_variable>
                    <environment_variable name="EIGEN2_LIB_PATH" action="set_to">$INSTALL_DIR/eigen2/lib</environment_variable>
                </action>
            </actions>
        </install>
        <readme>Downloading  and compiling the eigen2 library and unpacking it to the EIGEN2_SOURCE_PATH. EIGEN2_INCLUDE_PATH and EIGEN2_LIB_PATH will be available.</readme>
    </package>
</tool_dependency>