From 3b98a80293eefd258596e058bf58b8832a072673 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 25 Oct 2005 12:18:00 +0000 Subject: [PATCH] update scripts --- config_files/HappyDoc-r2_1.sh | 3 ++ config_files/Numeric-22.0.sh | 15 +++++- config_files/VTK-4.2.2.sh | 89 ++++++++++++++++++++++++++++++++- config_files/doxygen-1.3-rc2.sh | 57 +++++++++++++++++++-- config_files/doxygen-1.3.7.sh | 56 ++++++++++++++++++++- config_files/graphviz-1.9.sh | 20 +++++++- 6 files changed, 228 insertions(+), 12 deletions(-) diff --git a/config_files/HappyDoc-r2_1.sh b/config_files/HappyDoc-r2_1.sh index a7d18c2..bbfbf0a 100755 --- a/config_files/HappyDoc-r2_1.sh +++ b/config_files/HappyDoc-r2_1.sh @@ -88,6 +88,9 @@ print_env install_binary() { +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + check_jb tar xfz ${SOURCE_DIR}/HappyDoc-r2_1.tar.gz -C ${INSTALL_ROOT} print_env diff --git a/config_files/Numeric-22.0.sh b/config_files/Numeric-22.0.sh index ff0e98e..63a36ff 100755 --- a/config_files/Numeric-22.0.sh +++ b/config_files/Numeric-22.0.sh @@ -43,8 +43,19 @@ return $? install_source() { -echo "The installation of Numeric 22.0 from sources is not supported!" -return 1 +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +makedir ${PRODUCT_DIR} + +check_jb tar xfz ${SOURCE_DIR}/Numeric-22.0.tar.gz -C ${INSTALL_WORK} +cd ${PRODUCT_WORK} + +check_job ${PRODUCT_DIR}/INSTALL.LOG python setup.py install --prefix=${PRODUCT_DIR} + +#du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log +rm -fr ${PRODUCT_WORK} +print_env } install_binary() diff --git a/config_files/VTK-4.2.2.sh b/config_files/VTK-4.2.2.sh index 1586d74..9615f7d 100755 --- a/config_files/VTK-4.2.2.sh +++ b/config_files/VTK-4.2.2.sh @@ -62,8 +62,93 @@ return $? install_source() { -echo "The installation of VTK 4.2.2 from sources is not supported!" -return 1 +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +makedir ${PRODUCT_DIR} + +check_jb tar xfz ${SOURCE_DIR}/cmake-1.6.6.tar.gz -C ${INSTALL_WORK} +cd ${INSTALL_WORK}/cmake-1.6.6 +check_job ${PRODUCT_DIR}/CONFIGUREcmake.LOG ./configure +cat >> ${PRODUCT_DIR}/MAKEcmake.LOG < ${PRODUCT_DIR}/CONFIGURE.LOG < ${PRODUCT_DIR}/MAKE.LOG < ${PRODUCT_DIR}/size.log +#du -sk ${INSTALL_WORK}/cmake-1.6.6 > ${PRODUCT_DIR}/size1.log +rm -fr ${PRODUCT_WORK} ${INSTALL_WORK}/cmake-1.6.6 + +# set correct symbolic links - bug of python wrappings installation +cd ${PRODUCT_DIR}/lib/python${python_version}/site-packages/vtk_python +ln -sf ../../../vtk/*Python*.so . + +print_env } install_binary() diff --git a/config_files/doxygen-1.3-rc2.sh b/config_files/doxygen-1.3-rc2.sh index f68ba10..315ffd2 100755 --- a/config_files/doxygen-1.3-rc2.sh +++ b/config_files/doxygen-1.3-rc2.sh @@ -61,13 +61,62 @@ return $? install_source() { -echo "The installation of doxygen 1.3 from sources is not supported!" -return 1 +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/doxygen-1.3-rc2.tar.gz -C ${INSTALL_WORK} + +cd ${PRODUCT_WORK} +makedir ${PRODUCT_DIR} +# vsr: fix bug - configure fails on Red Hat 9 because of incorrect autodetect check for install tool +# so it is necessary to put it directly +f_install="--install "`which install` +check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --with-doxywizard --prefix ${PRODUCT_DIR} $f_install +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG </dev/null 2>&1; ISFOUND=$? +if [ ${ISFOUND} -eq 0 ] ; then which makeindex >/dev/null 2>&1; ISFOUND=$?; fi +if [ ${ISFOUND} -eq 0 ] ; then which latex >/dev/null 2>&1; ISFOUND=$?; fi +if [ ${ISFOUND} -eq 0 ] ; then which latex2html >/dev/null 2>&1; ISFOUND=$?; fi +if [ ${ISFOUND} -eq 0 ] ; then which pdflatex >/dev/null 2>&1; ISFOUND=$?; fi +if [ ${ISFOUND} -eq 0 ] ; then which pslatex >/dev/null 2>&1; ISFOUND=$?; fi +if [ ${ISFOUND} -eq 0 ] ; then which pstoimg >/dev/null 2>&1; ISFOUND=$?; fi +if [ ${ISFOUND} -eq 0 ] ; then + check_job ${PRODUCT_DIR}/MAKEDOCS.LOG make docs + check_job ${PRODUCT_DIR}/MAKEINSTALLDOCS.LOG make install_docs +else + cat >> ${PRODUCT_DIR}/MAKEDOCS.LOG < ${PRODUCT_DIR}/size.log +rm -fr ${PRODUCT_WORK} +print_env } install_binary() { -make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" env_${PRODUCT_TYPE}.sh +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} source ${INSTALL_WORK}/$SHRC check_jb tar xfz ${SOURCE_DIR}/doxygen-1.3-rc2.tar.gz -C ${INSTALL_ROOT} @@ -85,7 +134,7 @@ doxygen documentation will not be built! SALOME DOCUMENTATION ALSO CAN NOT BE BUILT! EOF check_job ${PRODUCT_DIR}/DOCS.LOG make - rm -fr ${PRODUCT_WORK} +# rm -fr ${PRODUCT_WORK} # echo -e "Can't find \"epstopdf\" and \"latex\" or another executables on the computer." # echo -e "doxygen documentation will not be built!" # echo -e "SALOME DOCUMENTATION ALSO CAN NOT BE BUILT!" diff --git a/config_files/doxygen-1.3.7.sh b/config_files/doxygen-1.3.7.sh index 96175b9..39e39cc 100755 --- a/config_files/doxygen-1.3.7.sh +++ b/config_files/doxygen-1.3.7.sh @@ -57,8 +57,60 @@ return $? install_source() { -echo "The installation of doxygen 1.3.7 from sources is not provided! Use native doxygen." -return 1 +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/doxygen-1.3.7.tar.gz -C ${INSTALL_WORK} + +cd ${PRODUCT_WORK} +makedir ${PRODUCT_DIR} +# vsr: fix a bug on Mandrake-10.1: wrong qt library reference +sed -e "s/-lqt/-lqt-mt/g" ./tmake/lib/linux-g++/tmake.conf > ./tmake/lib/linux-g++/tmake.conf.new +mv ./tmake/lib/linux-g++/tmake.conf.new ./tmake/lib/linux-g++/tmake.conf +# vsr: fix bug - configure fails on Red Hat 9 because of incorrect autodetect check for install tool +# so it is necessary to put it directly +f_install="--install "`which install` +check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --with-doxywizard --prefix ${PRODUCT_DIR} $f_install +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG </dev/null 2>&1; ISFOUND=$? +if [ ${ISFOUND} -eq 0 ] ; then which makeindex >/dev/null 2>&1; ISFOUND=$?; fi +if [ ${ISFOUND} -eq 0 ] ; then which latex >/dev/null 2>&1; ISFOUND=$?; fi +#if [ ${ISFOUND} -eq 0 ] ; then which latex2html >/dev/null 2>&1; ISFOUND=$?; fi +if [ ${ISFOUND} -eq 0 ] ; then which pdflatex >/dev/null 2>&1; ISFOUND=$?; fi +if [ ${ISFOUND} -eq 0 ] ; then which pslatex >/dev/null 2>&1; ISFOUND=$?; fi +#if [ ${ISFOUND} -eq 0 ] ; then which pstoimg >/dev/null 2>&1; ISFOUND=$?; fi +if [ ${ISFOUND} -eq 0 ] ; then + check_job ${PRODUCT_DIR}/MAKEDOCS.LOG make docs + check_job ${PRODUCT_DIR}/MAKEINSTALLDOCS.LOG make install_docs +else + cat >> ${PRODUCT_DIR}/MAKEDOCS.LOG < ${PRODUCT_DIR}/size.log +rm -fr ${PRODUCT_WORK} +print_env } install_binary() diff --git a/config_files/graphviz-1.9.sh b/config_files/graphviz-1.9.sh index 4e74c4f..993dfe3 100755 --- a/config_files/graphviz-1.9.sh +++ b/config_files/graphviz-1.9.sh @@ -53,8 +53,24 @@ return $? install_source() { -echo "The installation of graphvix 1.9 from sources is not provided!" -return 1 +make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +check_jb tar xfz ${SOURCE_DIR}/graphviz-1.9.tar.gz -C ${INSTALL_WORK} + +cd ${PRODUCT_WORK} +makedir ${PRODUCT_DIR} +check_job ${PRODUCT_DIR}/CONFIGURE.LOG configure --prefix=${PRODUCT_DIR} --with-tcl=$TCLHOME --disable-rpath +GCC=`which gcc` +cat >> ${PRODUCT_DIR}/MAKE.LOG < ${PRODUCT_DIR}/size.log +rm -fr ${PRODUCT_WORK} +print_env } install_binary() -- 2.39.2