diff tool_dependencies.xml @ 1:8feccd818d05 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/packages/package_r_3_2_0 commit ec34b8cb4b41c0aa114475c262100409236d2bf2-dirty
author iuc
date Sun, 26 Jul 2015 14:52:49 -0400
parents b689e15fa6fe
children cd8b46af35a6
line wrap: on
line diff
--- a/tool_dependencies.xml	Sun Jul 26 13:50:10 2015 -0400
+++ b/tool_dependencies.xml	Sun Jul 26 14:52:49 2015 -0400
@@ -13,6 +13,20 @@
                         <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>
+                    <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">
                     <action type="download_by_url">https://cran.rstudio.com/src/base/R-3/R-3.2.0.tar.gz</action>