From: vsr Date: Tue, 3 Apr 2012 19:54:16 +0000 (+0000) Subject: SALOME 6.5.0 preparation: update script for qscintilla (2.4.3) X-Git-Tag: V6_5_0b1~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8ed80cd2426b9a0f483e2a44f03d392a99cd9c6e;p=tools%2Finstall.git SALOME 6.5.0 preparation: update script for qscintilla (2.4.3) --- diff --git a/config_CentOS_5.5_64bit.xml b/config_CentOS_5.5_64bit.xml index defef72..de1a13e 100755 --- a/config_CentOS_5.5_64bit.xml +++ b/config_CentOS_5.5_64bit.xml @@ -417,7 +417,7 @@ version="2.4.3" disable="false" installdiskspace="3228,15692,24220" - script="qscintilla-2.4.3.sh"/> + script="qscintilla.sh"/> + script="qscintilla.sh"/> + script="qscintilla.sh"/> + script="qscintilla.sh"/> + script="qscintilla.sh"/> + script="qscintilla.sh"/> + script="qscintilla.sh"/> + script="qscintilla.sh"/> + script="qscintilla.sh"/> + script="qscintilla.sh"/> + script="qscintilla.sh"/> ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < qscintilla.pro.new -mv -f qscintilla.pro.new qscintilla.pro - -qmake -o Makefile qscintilla.pro -check_job ${PRODUCT_DIR}/MAKE.LOG make -check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install - -if [ "${PYQTDIR}" != "" ] ; then - # install Python wrapping for QScintilla only if pre-installed version of PyQt is used - cd ${PRODUCT_SRC_DIR}/Python - check_job ${PRODUCT_DIR}/PYCONFIGURE.LOG python configure.py -a ${PRODUCT_DIR}/qsci \ - -n ${PRODUCT_DIR}/include -o ${PRODUCT_DIR}/lib -p 4 \ - -d ${PYQTDIR}/PyQt4 -v ${PYQTDIR}/sip - check_job ${PRODUCT_DIR}/PYMAKE.LOG make - check_job ${PRODUCT_DIR}/PYMAKEINSTALL.LOG make install -fi - -if [ "${INSTALL_ROOT_PREV}" != "" ] ; then - export INSTALL_ROOT=$INSTALL_ROOT_PREV -fi - -#rm -rf ${PRODUCT_DIR}/doc -#du -sk ${PRODUCT_SRC_DIR} > ${PRODUCT_DIR}/size.log -cd ${PRODUCT_DIR}; - -# remove sources and temporary files after building -if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then - test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR} -fi - -# to generate environment scripts -try_preinstalled -} - -install_binary() -{ -make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE} -source ${INSTALL_WORK}/$SHRC - -# create a product directory -test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR} - -check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR} - -if [ "${PYQTDIR}" != "" ] ; then - # install Python wrapping for QScintilla only if pre-installed version of PyQt is used - if [ -f ${SOURCE_DIR}/${PRODUCT}-python.tar.gz ] ; then - check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}-python.tar.gz -C ${PYQTDIR} - fi -fi - -# to generate environment scripts -try_preinstalled -} - -export PROCEDURE=$1; -export INSTALL_WORK=$2; -export SOURCE_DIR=$3; -export INST_ROOT=$4; -export PRODUCT_SEQUENCE=$5; -export PRODUCT_TYPE=$6; -export INSTALL_PRODUCTS=$7; -shift -REMOVE_SRC_TMP=$8; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="QScintilla-${QSCINTILLA_VERSION}" -export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}} -export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} -export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC -source ./common.sh -$PROCEDURE diff --git a/config_files/qscintilla.sh b/config_files/qscintilla.sh new file mode 100755 index 0000000..a30311d --- /dev/null +++ b/config_files/qscintilla.sh @@ -0,0 +1,162 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : qscintilla.sh +# Created : Thu Oct 23 11:50:00 2008 +# Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com) +# Project : SALOME +# Module : Installation Wizard +# Copyright : 2002-2012 CEA +# +# This script is the part of the SALOME installation procedure. +# +#################################################################################### + +# +# QSCINTILLA version +# +QSCINTILLA_VERSION=2.4.3 + +check_version(){ +if [ -z "${QSCINTILLA_DIR}" ]; then + return 1 +fi +ver=`grep "QSCINTILLA_VERSION_STR" ${QSCINTILLA_DIR}/include/Qsci/qsciglobal.h | sed -e 's%^#define QSCINTILLA_VERSION_STR\([[:space:]]*\)%%g' -e 's%\"%%g'` +if [ "$ver" == "${QSCINTILLA_VERSION}" ] ; then + return 0 +fi +return 1 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < qscintilla.pro.new +mv -f qscintilla.pro.new qscintilla.pro + +qmake -o Makefile qscintilla.pro +check_job ${PRODUCT_DIR}/MAKE.LOG make +check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install + +if [ "${PYQTDIR}" != "" ] ; then + # install Python wrapping for QScintilla only if pre-installed version of PyQt is used + cd ${PRODUCT_SRC_DIR}/Python + check_job ${PRODUCT_DIR}/PYCONFIGURE.LOG python configure.py -a ${PRODUCT_DIR}/qsci \ + -n ${PRODUCT_DIR}/include -o ${PRODUCT_DIR}/lib -p 4 \ + -d ${PYQTDIR}/PyQt4 -v ${PYQTDIR}/sip + check_job ${PRODUCT_DIR}/PYMAKE.LOG make + check_job ${PRODUCT_DIR}/PYMAKEINSTALL.LOG make install +fi + +if [ "${INSTALL_ROOT_PREV}" != "" ] ; then + export INSTALL_ROOT=$INSTALL_ROOT_PREV +fi + +#rm -rf ${PRODUCT_DIR}/doc +#du -sk ${PRODUCT_SRC_DIR} > ${PRODUCT_DIR}/size.log +cd ${PRODUCT_DIR}; + +# remove sources and temporary files after building +if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then + test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR} +fi + +# to generate environment scripts +try_preinstalled +} + +install_binary() +{ +make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +# create a product directory +test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR} + +check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR} + +if [ "${PYQTDIR}" != "" ] ; then + # install Python wrapping for QScintilla only if pre-installed version of PyQt is used + if [ -f ${SOURCE_DIR}/${PRODUCT}-python.tar.gz ] ; then + check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}-python.tar.gz -C ${PYQTDIR} + fi +fi + +# to generate environment scripts +try_preinstalled +} + +export PROCEDURE=$1; +export INSTALL_WORK=$2; +export SOURCE_DIR=$3; +export INST_ROOT=$4; +export PRODUCT_SEQUENCE=$5; +export PRODUCT_TYPE=$6; +export INSTALL_PRODUCTS=$7; +shift +REMOVE_SRC_TMP=$8; +test $# == 10 && shift && SINGLE_DIR=$9 +export PRODUCT="QScintilla-${QSCINTILLA_VERSION}" +export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}} +export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} +export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC +source ./common.sh +$PROCEDURE