view tool_dependencies.xml @ 4:6c34eaa82fed draft default tip

Uploaded tool dependency definition that sets additional environment variables.
author devteam
date Wed, 02 Apr 2014 10:47:58 -0400
parents 6a72f1ba7293
children
line wrap: on
line source

<?xml version="1.0"?>
<tool_dependency>
    <package name="R" version="2.15.0">
        <install version="1.0">
            <actions_group>
                <actions architecture="x86_64" os="darwin">
                    <action type="download_by_url">http://depot.galaxyproject.org/package/darwin/x86_64/R/R-2.15.0-Darwin-x86_64.tgz</action>
                    <action type="move_directory_files">
                        <source_directory>.</source_directory>
                        <destination_directory>$INSTALL_DIR</destination_directory>
                    </action>
                </actions>
                <actions architecture="x86_64" os="linux">
                    <action type="download_by_url">http://depot.galaxyproject.org/package/linux/x86_64/R/R-2.15.0-Linux-x86_64.tgz</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="TCL_LIBRARY">$INSTALL_DIR/lib/libtcl8.4.so</environment_variable>
                        <environment_variable action="set_to" name="TK_LIBRARY">$INSTALL_DIR/lib/libtk8.4.so</environment_variable>
                    </action>
                </actions>
                <actions>
                    <package name="readline" version="6.2">
                        <repository changeset_revision="16fc64dad9ca" name="package_readline_6_2" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
                    </package>
                    <package name="libpng" version="1.6.7">
                        <repository changeset_revision="7c4a9189b712" name="package_libpng_1_6_7" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
                    </package>
                    <package name="cairo" version="1.12.14">
                        <repository changeset_revision="7f467a4010e0" name="package_cairo_1_12_14" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
                    </package>
                    <package name="pixman" version="0.32.4">
                        <repository changeset_revision="3d44a209a6b9" name="package_pixman_0_32_4" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
                    </package>
                    <package name="freetype" version="2.5.2">
                        <repository changeset_revision="92d1906a12e4" name="package_freetype_2_5_2" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu" />
                    </package>
                    <action type="download_by_url">http://cran.rstudio.com/src/base/R-2/R-2.15.0.tar.gz</action>
                    <action type="set_environment_for_install">
                        <repository changeset_revision="16fc64dad9ca" name="package_readline_6_2" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu">
                            <package name="readline" version="6.2" />
                        </repository>
                        <repository changeset_revision="7c4a9189b712" name="package_libpng_1_6_7" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu">
                            <package name="libpng" version="1.6.7" />
                        </repository>
                        <repository changeset_revision="7f467a4010e0" name="package_cairo_1_12_14" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu">
                            <package name="cairo" version="1.12.14" />
                        </repository>
                        <repository changeset_revision="3d44a209a6b9" name="package_pixman_0_32_4" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu">
                            <package name="pixman" version="0.32.4" />
                        </repository>
                        <repository changeset_revision="92d1906a12e4" name="package_freetype_2_5_2" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu">
                            <package name="freetype" version="2.5.2" />
                        </repository>
                    </action>
                    <action type="shell_command">
                        export LDFLAGS="-L$PNG_LIBS -L$READLINE_LIBS" &amp;&amp;
                        export LDFLAGS="$LDFLAGS -Wl,-rpath,$READLINE_LIBS" &amp;&amp;
                        export LDFLAGS="$LDFLAGS -Wl,-rpath,$PIXMAN_LIB_PATH" &amp;&amp;
                        export LDFLAGS="$LDFLAGS -Wl,-rpath,$PNG_LIB_PATH" &amp;&amp;
                        export LDFLAGS="$LDFLAGS -Wl,-rpath,$FREETYPE_LIB_PATH" &amp;&amp;
                        export CFLAGS="-I$PNG_INCLUDES -I$READLINE_INCLUDES" &amp;&amp;
                        export CXXFLAGS="-I$PNG_INCLUDES -I$READLINE_INCLUDES" &amp;&amp;
                        export CPPFLAGS="-I$PNG_INCLUDES -I$READLINE_INCLUDES" &amp;&amp;
                        ./configure --with-tcltk \
                                    --with-blas \
                                    --with-lapack \
                                    --with-readline \
                                    --with-cairo \
                                    --with-libpng \
                                    --without-x \
                                    --enable-R-shlib \
                                    --disable-R-framework \
                                    --libdir=$INSTALL_DIR/lib \
                                    --prefix=$INSTALL_DIR 
                    </action>
                    <action type="make_install" />
                    <action type="shell_command">sed -i.bak 's;$INSTALL_DIR;\${R_ROOT_DIR};g' $INSTALL_DIR/bin/R</action>
                    <action type="shell_command">sed -i.bak 's;$INSTALL_DIR;\${R_ROOT_DIR};g' $INSTALL_DIR/lib/R/bin/R</action>
                </actions>
                <action type="set_environment">
                    <environment_variable action="set_to" name="R_DOC_DIR">$INSTALL_DIR/lib/R/doc</environment_variable>
                    <environment_variable action="set_to" name="R_HOME_DIR">$INSTALL_DIR/lib/R</environment_variable>
                    <environment_variable action="set_to" name="R_INCLUDE_DIR">$INSTALL_DIR/lib/R/include</environment_variable>
                    <environment_variable action="set_to" name="R_SHARE_DIR">$INSTALL_DIR/lib/R/share</environment_variable>
                    <environment_variable action="set_to" name="R_ROOT_DIR">$INSTALL_DIR</environment_variable>
                    <environment_variable action="set_to" name="R_HOME">$INSTALL_DIR/lib/R</environment_variable>
                    <environment_variable action="set_to" name="RHOME">$INSTALL_DIR/lib/R</environment_variable>
                    <environment_variable action="set_to" name="R_LIBS">$INSTALL_DIR/lib/R/library</environment_variable>
                    <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
                </action>
            </actions_group>
        </install>
        <readme>
                The precompiled versions of this package were built 2014-03-06.
                R is a free software environment for statistical computing and graphics.
                NOTE: See custom compilation options above.
        </readme>
    </package>
</tool_dependency>