# HG changeset patch
# User iuc
# Date 1449145425 18000
# Node ID 2ce7fd67f394cc36fe0f575512a567a3af306b97
# Parent fae49a02a8486ac59b3cae7a9d4e0594f0c75efd
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/packages/package_r_3_2_1 commit 6eaf4336ff90294e503dedf930ccbe31f8b4efe9
diff -r fae49a02a848 -r 2ce7fd67f394 tool_dependencies.xml
--- a/tool_dependencies.xml Wed Nov 04 09:57:52 2015 -0500
+++ b/tool_dependencies.xml Thu Dec 03 07:23:45 2015 -0500
@@ -9,6 +9,23 @@
.
$INSTALL_DIR
+
+ command -v gfortran || return 0
+ BUNDLED_LGF_CANON=$INSTALL_DIR/lib/libgfortran.so.3.0.0 &&
+ BUNDLED_LGF_FQSO=$INSTALL_DIR/lib/libgfortran.so.3 &&
+ 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 $BUNDLED_LGF_FQSO ${BUNDLED_LGF_FQSO}.bundled &&
+ cp -p $LGF_CANON $BUNDLED_LGF_CANON &&
+ cp -p $LGF_CANON $BUNDLED_LGF_FQSO
+ fi
+
$INSTALL_DIR/lib/libtcl8.4.so
$INSTALL_DIR/lib/libtk8.4.so
@@ -26,19 +43,19 @@
-
+
-
+
-
+
-
+
@@ -47,46 +64,23 @@
-
+
-
+
-
+
-
+
-
- export LDFLAGS="-L$LIBPNG_LIB_PATH -L$PNG_LIBS -L$NCURSES_LIB_PATH -L$READLINE_LIB_PATH" &&
- export LDFLAGS="$LDFLAGS -Wl,-rpath,$NCURSES_LIB_PATH" &&
- export LDFLAGS="$LDFLAGS -Wl,-rpath,$READLINE_LIB_PATH" &&
- export LDFLAGS="$LDFLAGS -Wl,-rpath,$PIXMAN_LIB_PATH" &&
- export LDFLAGS="$LDFLAGS -Wl,-rpath,$LIBPNG_LIB_PATH" &&
- export LDFLAGS="$LDFLAGS -Wl,-rpath,$FREETYPE_LIB_PATH" &&
- export LDFLAGS="$LDFLAGS -Wl,-rpath,$FONTCONFIG_LIB_PATH" &&
- export LDFLAGS="$LDFLAGS -Wl,-rpath,$CAIRO_LIB_PATH" &&
- export CFLAGS="-I$PNG_INCLUDES -I$NCURSES_INCLUDE_PATH -I$READLINE_INCLUDE_PATH -I$LIBPNG_INCLUDE_PATH -I$FONTCONFIG_INCLUDE_PATH -I$CAIRO_INCLUDE_PATH" &&
- export CXXFLAGS="-I$PNG_INCLUDES -I$NCURSES_INCLUDE_PATH -I$READLINE_INCLUDE_PATH -I$LIBPNG_INCLUDE_PATH -I$FONTCONFIG_INCLUDE_PATH -I$CAIRO_INCLUDE_PATH" &&
- export CPPFLAGS="-I$PNG_INCLUDES -I$NCURSES_INCLUDE_PATH -I$READLINE_INCLUDE_PATH -I$LIBPNG_INCLUDE_PATH -I$FONTCONFIG_INCLUDE_PATH -I$CAIRO_INCLUDE_PATH" &&
- ./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
-
+ --with-tcltk --with-blas --with-lapack --with-readline --with-cairo --with-libpng --without-x --enable-R-shlib --disable-R-framework --libdir=$INSTALL_DIR/lib
sed -i.bak -e 's;$INSTALL_DIR;\${R_ROOT_DIR};g' $INSTALL_DIR/bin/R
sed -i.bak -e 's;$INSTALL_DIR;\${R_ROOT_DIR};g' $INSTALL_DIR/lib/R/bin/R