]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Adding YACSGEN prerequisit to IW
authormaintenance team <salome-mnt@opencascade.com>
Wed, 17 Feb 2010 15:12:45 +0000 (15:12 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Wed, 17 Feb 2010 15:12:45 +0000 (15:12 +0000)
config_Debian_3.1.xml
config_Debian_4.0.xml
config_Debian_4.0_64bit.xml
config_Fedora_Core_6.xml
config_Mandriva_2006.0.xml
config_Mandriva_2006.0_64bit.xml
config_Mandriva_2008.0.xml
config_Mandriva_2008.0_64bit.xml
config_Red_Hat_Enterprise_WS_4_64bit.xml
config_Scientific_SL_5.1_64bit.xml
config_files/YACSGEN-5.1.3.sh [new file with mode: 0755]

index 4675badab5c1a8897a2a3e833947556169b2a541..b0fe77f621866016f4fece76b20022fd71863453 100755 (executable)
                    installdiskspace="1305,1489,1401"
                    script="libBatch-1.0.0.sh"/>
     </product>
+    <product name="YACSGEN" 
+            type="prerequisite"
+             description="Component and module generator for SALOME">
+      <installation os="Debian 3.1"
+                    version="5.1.3" 
+                   disable="false"
+                   installdiskspace="1305,1489,1401"
+                   script="YACSGEN-5.1.3.sh"/>
+    </product>
     <product name="Numeric"
             type="prerequisite"
             description="Numerical extension to Python">
       <dep>Swig</dep>
       <dep>cmake</dep>
     </product>
+    <product name="YACSGEN">
+      <dep>Python</dep>
+    </product>
     <product name="xdata">
       <dep>Python</dep>
       <dep>Qt</dep>
index 6b030c0d66d1deb2661fc79d62ec409a1847c415..8e68860d1a95f51cacd9dee547b31ce67a5fa223 100755 (executable)
                    installdiskspace="1305,1489,1401"
                    script="libBatch-1.0.0.sh"/>
     </product>
+    <product name="YACSGEN" 
+            type="prerequisite"
+             description="Component and module generator for SALOME">
+      <installation os="Debian 4.0"
+                    version="5.1.3" 
+                   disable="false"
+                   installdiskspace="1305,1489,1401"
+                   script="YACSGEN-5.1.3.sh"/>
+    </product>
     <product name="Numeric"
             type="prerequisite"
             description="Numerical extension to Python">
       <dep>Swig</dep>
       <dep>cmake</dep>
     </product>
+    <product name="YACSGEN">
+      <dep>Python</dep>
+    </product>
     <product name="xdata">
       <dep>Python</dep>
       <dep>Qt</dep>
index 76cc403b27b5ea0f380f0cac1916fffedb747945..7e2840ac54dec6782cba76d1456930c21fc09849 100755 (executable)
                    installdiskspace="1305,1489,1401"
                    script="libBatch-1.0.0.sh"/>
     </product>
+    <product name="YACSGEN" 
+            type="prerequisite"
+             description="Component and module generator for SALOME">
+      <installation os="Debian 4.0 64bit"
+                    version="5.1.3" 
+                   disable="false"
+                   installdiskspace="1305,1489,1401"
+                   script="YACSGEN-5.1.3.sh"/>
+    </product>
     <product name="Numeric"
             type="prerequisite"
             description="Numerical extension to Python">
       <dep>Swig</dep>
       <dep>cmake</dep>
     </product>
+    <product name="YACSGEN">
+      <dep>Python</dep>
+    </product>
     <product name="xdata">
       <dep>Python</dep>
       <dep>Qt</dep>
index 90e88e9ac50c071f6d6553880a2060fcd925191b..f422122129d5f3cb48fd9542bedce3b9c58d98c6 100755 (executable)
                    installdiskspace="1305,1489,1401"
                    script="libBatch-1.0.0.sh"/>
     </product>
+    <product name="YACSGEN" 
+            type="prerequisite"
+             description="Component and module generator for SALOME">
+      <installation os="Fedora Core 6"
+                    version="5.1.3" 
+                   disable="false"
+                   installdiskspace="1305,1489,1401"
+                   script="YACSGEN-5.1.3.sh"/>
+    </product>
     <product name="Numeric"
             type="prerequisite"
             description="Numerical extension to Python">
       <dep>Swig</dep>
       <dep>cmake</dep>
     </product>
+    <product name="YACSGEN">
+      <dep>Python</dep>
+    </product>
     <product name="xdata">
       <dep>Python</dep>
       <dep>Qt</dep>
index 38aaddcf856c48293f8bde5ca210a77a64af6779..a10527e58a6360cf4a563c4f3403ad8a7d4600b4 100755 (executable)
                    installdiskspace="1305,1489,1401"
                    script="libBatch-1.0.0.sh"/>
     </product>
+    <product name="YACSGEN" 
+            type="prerequisite"
+             description="Component and module generator for SALOME">
+      <installation os="Mandriva 2006.0"
+                    version="5.1.3" 
+                   disable="false"
+                   installdiskspace="1305,1489,1401"
+                   script="YACSGEN-5.1.3.sh"/>
+    </product>
     <product name="Numeric"
             type="prerequisite"
             description="Numerical extension to Python">
       <dep>Swig</dep>
       <dep>cmake</dep>
     </product>
+    <product name="YACSGEN">
+      <dep>Python</dep>
+    </product>
     <product name="xdata">
       <dep>Python</dep>
       <dep>Qt</dep>
index 5360482eab39af76d0778f44b03a58b8a6504fc1..dc65d439435c982687f9820534ed1eb471c94bbd 100755 (executable)
                    installdiskspace="1305,1489,1401"
                    script="libBatch-1.0.0.sh"/>
     </product>
+    <product name="YACSGEN" 
+            type="prerequisite"
+             description="Component and module generator for SALOME">
+      <installation os="Mandriva 2006.0 64bit"
+                    version="5.1.3" 
+                   disable="false"
+                   installdiskspace="1305,1489,1401"
+                   script="YACSGEN-5.1.3.sh"/>
+    </product>
     <product name="Numeric"
             type="prerequisite"
             description="Numerical extension to Python">
       <dep>Swig</dep>
       <dep>cmake</dep>
     </product>
+    <product name="YACSGEN">
+      <dep>Python</dep>
+    </product>
     <product name="xdata">
       <dep>Python</dep>
       <dep>Qt</dep>
index d464d7587b97b8114caf9e782dcda0995500b75e..d9ddb009d074d51bc3e4c6407141a52850f987e6 100755 (executable)
                    installdiskspace="1305,1489,1401"
                    script="libBatch-1.0.0.sh"/>
     </product>
+    <product name="YACSGEN" 
+            type="prerequisite"
+             description="Component and module generator for SALOME">
+      <installation os="Mandriva 2008.0"
+                    version="5.1.3" 
+                   disable="false"
+                   installdiskspace="1305,1489,1401"
+                   script="YACSGEN-5.1.3.sh"/>
+    </product>
     <product name="Numeric"
             type="prerequisite"
             description="Numerical extension to Python">
       <dep>Swig</dep>
       <dep>cmake</dep>
     </product>
+    <product name="YACSGEN">
+      <dep>Python</dep>
+    </product>
     <product name="xdata">
       <dep>Python</dep>
       <dep>Qt</dep>
index 712c7db5a165e19433bc6cd9abad6d7ea3d4f1da..96d940966152dcb32e693a35889859c9ca2bd493 100755 (executable)
                    installdiskspace="1305,1489,1401"
                    script="libBatch-1.0.0.sh"/>
     </product>
+    <product name="YACSGEN" 
+            type="prerequisite"
+             description="Component and module generator for SALOME">
+      <installation os="Mandriva 2008.0 64bit"
+                    version="5.1.3" 
+                   disable="false"
+                   installdiskspace="1305,1489,1401"
+                   script="YACSGEN-5.1.3.sh"/>
+    </product>
     <product name="Numeric"
             type="prerequisite"
             description="Numerical extension to Python">
       <dep>Swig</dep>
       <dep>cmake</dep>
     </product>
+    <product name="YACSGEN">
+      <dep>Python</dep>
+    </product>
     <product name="xdata">
       <dep>Python</dep>
       <dep>Qt</dep>
index 7399dd025c61502327dfd6bce9d5e9fa4f18a54f..0859361dde6910e7ee000640b99665b740254946 100755 (executable)
                    installdiskspace="1305,1489,1401"
                    script="libBatch-1.0.0.sh"/>
     </product>
+    <product name="YACSGEN" 
+            type="prerequisite"
+             description="Component and module generator for SALOME">
+      <installation os="Red Hat Enterprise WS 4 64bit"
+                    version="5.1.3" 
+                   disable="false"
+                   installdiskspace="1305,1489,1401"
+                   script="YACSGEN-5.1.3.sh"/>
+    </product>
     <product name="Numeric"
             type="prerequisite"
             description="Numerical extension to Python">
       <dep>Swig</dep>
       <dep>cmake</dep>
     </product>
+    <product name="YACSGEN">
+      <dep>Python</dep>
+    </product>
     <product name="xdata">
       <dep>Python</dep>
       <dep>Qt</dep>
index 981c90922edc273999b907948158bb2295e6d133..bf01097a4158546814c8b9562faa22b70122391b 100755 (executable)
                    installdiskspace="1305,1489,1401"
                    script="libBatch-1.0.0.sh"/>
     </product>
+    <product name="YACSGEN" 
+            type="prerequisite"
+             description="Component and module generator for SALOME">
+      <installation os="Scientific SL 5.1 64bit"
+                    version="5.1.3" 
+                   disable="false"
+                   installdiskspace="1305,1489,1401"
+                   script="YACSGEN-5.1.3.sh"/>
+    </product>
     <product name="Numeric"
             type="prerequisite"
             description="Numerical extension to Python">
       <dep>Swig</dep>
       <dep>cmake</dep>
     </product>
+    <product name="YACSGEN">
+      <dep>Python</dep>
+    </product>
     <product name="xdata">
       <dep>Python</dep>
       <dep>Qt</dep>
diff --git a/config_files/YACSGEN-5.1.3.sh b/config_files/YACSGEN-5.1.3.sh
new file mode 100755 (executable)
index 0000000..e055356
--- /dev/null
@@ -0,0 +1,118 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : YACSGEN-5.1.4.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2008 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+YACSGEN_VERSION=5.1.3
+
+check_version(){
+# No way to check version!
+return 0
+}
+
+print_env_bin()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM 
+export YACSGEN_ROOT_DIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
+export PYTHONPATH=\${YACSGEN_ROOT_DIR}/lib/python\${PYTHON_VERSION}/site-packages/module_generator:\${PYTHONPATH}
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src()
+{
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+# nothing to do
+##
+EOF
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SRC_DIR}/${PRODUCT}.tar.gz -C ${INST_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+
+cd ${PRODUCT_SRC_DIR}
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+check_job ${PRODUCT_DIR}/MAKE.LOG ./setup.py install --prefix=${PRODUCT_DIR}
+
+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 module directory
+test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR}
+
+check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+source ./common.sh
+
+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;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+shift
+SINGLE_DIR=$9;
+if [ -n "$SINGLE_DIR" ] ; then SINGLE_DIR=$SDIR_NAME; fi
+export PRODUCT="YACSGEN-${YACSGEN_VERSION}"
+export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
+export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC
+$PROCEDURE