summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Mocciola2016-12-20 07:23:21 +0100
committerMichele Mocciola2016-12-20 07:23:21 +0100
commitb8ad2cb2baed2a146e74fc12578a272bada3bbed (patch)
treed7a239f1ace093ce2a19c9c75148f2052e470966
parentfa50fd36dd7341dcd441b3a2a1a3e2164c5aebb2 (diff)
downloadaur-salome-smesh.tar.gz
Updated
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD102
-rw-r--r--salome-smesh.profile32
-rw-r--r--salome-smesh.sh52
4 files changed, 132 insertions, 75 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e12389a4519..826de22e9f8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,26 @@
# Generated by mksrcinfo v8
-# Fri Jun 3 17:17:09 UTC 2016
+# Tue Dec 20 06:23:09 UTC 2016
pkgbase = salome-smesh
pkgdesc = Generic platform for Pre and Post-Processing for numerical simulation - SMESH Module
- pkgver = 7.6.0
- pkgrel = 4
+ pkgver = 7.8.0
+ pkgrel = 1
url = http://www.salome-platform.org
arch = i686
arch = x86_64
license = LGPL
+ makedepends = doxygen
makedepends = boost
makedepends = swig2
makedepends = python2-sphinx
makedepends = optipng
- depends = salome-geom>=7.6.0
- depends = salome-geom<7.7.0
- depends = salome-med>=7.6.0
- depends = salome-med<7.7.0
- source = salome-smesh.profile
- md5sums = d339c1021bc8797c7877581b75e5ef23
+ depends = salome-geom>=7.8.0
+ depends = salome-geom<7.9.0
+ depends = salome-medcoupling>=7.8.0
+ depends = salome-medcoupling<7.9.0
+ source = salome-smesh.sh
+ source = http://files.salome-platform.org/Salome/Salome7.8.0/src7.8.0.tar.gz
+ md5sums = 39adab63f05b987bfdd5bbc284ec5f92
+ md5sums = 0f6de10ad9d9c646fce3ca21a7dab46a
pkgname = salome-smesh
diff --git a/PKGBUILD b/PKGBUILD
index 21a7e300ab6..b90df0eab79 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,38 @@
# Maintainer: Michele Mocciola <mickele>
pkgname=salome-smesh
-pkgver=7.6.0
-pkgrel=4
+pkgver=7.8.0
+pkgrel=1
pkgdesc="Generic platform for Pre and Post-Processing for numerical simulation - SMESH Module"
url="http://www.salome-platform.org"
-depends=('salome-geom>=7.6.0' 'salome-geom<7.7.0' 'salome-med>=7.6.0' 'salome-med<7.7.0')
-makedepends=('boost' 'swig2' 'python2-sphinx' 'optipng')
+depends=("salome-geom>=${pkgver}" "salome-geom<${pkgver:0:2}$((${pkgver:2:1}+1)).0" "salome-medcoupling>=${pkgver}" "salome-medcoupling<${pkgver:0:2}$((${pkgver:2:1}+1)).0")
+makedepends=('doxygen' 'boost' 'swig2' 'python2-sphinx' 'optipng')
arch=('i686' 'x86_64')
conflicts=()
provides=()
license=('LGPL')
-source=("salome-smesh.profile")
+source=("${pkgname}.sh" "http://files.salome-platform.org/Salome/Salome${pkgver}/src${pkgver}.tar.gz")
-_source=smesh
-_installdir=/opt/salome
+#_source=smesh
+_source=SMESH_SRC
+_basedir=/opt/salome
+_installdir=${_basedir}
+_profiledir=${_basedir}/env.d
_paraviewrootdir=/usr
-_paraviewver=4.2
+_paraviewver=5.0
prepare() {
- msg "Connecting to git server..."
+# msg "Connecting to git server..."
+# if [[ -d ${_source} ]] ; then
+# rm -rf ${_source}
+# fi
+# git clone git://git.salome-platform.org/modules/${_source}.git
+# cd ${_source}
+# git checkout V${pkgver:0:1}_${pkgver:2:1}_${pkgver:4:1}
+# msg "GIT checkout done or server timeout"
- if [[ -d ${_source} ]] ; then
- rm -rf ${_source}
- fi
-
- git clone git://git.salome-platform.org/modules/${_source}.git
cd ${_source}
- git checkout V${pkgver:0:1}_${pkgver:2:1}_${pkgver:4:1}
- msg "GIT checkout done or server timeout"
-
# python -> python2
for _FILE in `grep -Rl "/usr/bin/env python" * `
do
@@ -44,20 +46,50 @@ build() {
source /opt/salome/env.d/salome-geom.sh
source /opt/salome/env.d/salome-med.sh
- rm -rf "${srcdir}/${_source}/build"
- mkdir -p "${srcdir}/${_source}/build"
- cd "${srcdir}/${_source}/build"
-
- cmake .. \
- -DCMAKE_INSTALL_PREFIX=$_installdir \
- -DCMAKE_CXX_STANDARD=98 \
- -DHDF5_ROOT_DIR=/opt/hdf5-1.8 \
- -DPYTHON_EXECUTABLE=/usr/bin/python2 \
- -DVTK_DIR="${_paraviewrootdir}/lib/cmake/paraview-${_paraviewver}" \
- -DSPHINX_EXECUTABLE=/usr/bin/sphinx-build2 \
- -DSPHINX_APIDOC_EXECUTABLE=/usr/bin/sphinx-apidoc2 \
- -DSWIG_EXECUTABLE=/usr/bin/swig-2
-
+ cd "${srcdir}/${_source}"
+ rm -rf build
+ mkdir -p build
+ cd build
+
+ # generic options
+ cmake_options+=" -DCMAKE_BUILD_TYPE=Release"
+ cmake_options+=" -DCMAKE_INSTALL_PREFIX=${_installdir}"
+ cmake_options+=" -DSALOME_BUILD_DOC:BOOL=ON"
+
+ # debug options
+ cmake_options+=" -DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF"
+ cmake_options+=" -DSALOME_CMAKE_DEBUG:BOOL=OFF"
+
+ # mpi
+ cmake_options+=" -DSALOME_USE_MPI:BOOL=ON"
+
+ # python2
+ cmake_options+=" -DPYTHON_EXECUTABLE=/usr/bin/python2"
+
+ # sphinx-2
+ cmake_options+=" -DSPHINX_EXECUTABLE=/usr/bin/sphinx-build2"
+ cmake_options+=" -DSPHINX_APIDOC_EXECUTABLE=/usr/bin/sphinx-apidoc2"
+
+ # swig2
+ cmake_options+=" -DSWIG_EXECUTABLE=/usr/bin/swig-2"
+
+ # vtk
+ cmake_options+=" -DVTK_DIR=${_paraviewrootdir}/lib/cmake/paraview-${_paraviewver}"
+
+ # libxml2
+ cmake_options+=" -DLIBXML2_ROOT_DIR=/usr"
+ cmake_options+=" -DLibXml2_DIR=/usr/lib/cmake/libxml2"
+ cmake_options+=" -DLIBXML2_INCLUDE_DIR=/usr/include/libxml2"
+
+ # hdf5-1.8
+ cmake_options+=" -DHDF5_INCLUDE_DIRS:PATH=/usr/include/hdf5_18/"
+ cmake_options+=" -DHDF5_INCLUDE_DIR:PATH=/usr/include/hdf5_18/"
+ cmake_options+=" -DHDF5_C_COMPILER_EXECUTABLE:FILEPATH=/usr/bin/h5cc_18"
+ cmake_options+=" -DHDF5_C_LIBRARY_hdf5:FILEPATH=/usr/lib/hdf5_18/libhdf5.so"
+ cmake_options+=" -DHDF5_DIFF_EXECUTABLE:FILEPATH=/usr/bin/h5diff_18"
+
+ cmake ${cmake_options} ..
+
make
}
@@ -77,10 +109,12 @@ package() {
optipng -quiet -force -fix ${pkgdir}${_installdir}/${_FILE}
done
- install -D -m755 "${srcdir}/${pkgname}.profile" \
- "${pkgdir}${_installdir}/env.d/${pkgname}.sh"
+ # install profile
+ install -D -m755 "${srcdir}/${pkgname}.sh" \
+ "${pkgdir}${_profiledir}/${pkgname}.sh"
rm -f "${pkgdir}${_installdir}/bin/salome/VERSION"
rm -f "${pkgdir}${_installdir}/bin/salome/test/CTestTestfile.cmake"
}
-md5sums=('d339c1021bc8797c7877581b75e5ef23')
+md5sums=('39adab63f05b987bfdd5bbc284ec5f92'
+ '0f6de10ad9d9c646fce3ca21a7dab46a')
diff --git a/salome-smesh.profile b/salome-smesh.profile
deleted file mode 100644
index f05b33f142d..00000000000
--- a/salome-smesh.profile
+++ /dev/null
@@ -1,32 +0,0 @@
-# module var
-export SMESH_ROOT_DIR=/opt/salome
-
-# local vars
-_pythonver=2.7
-_paraviewver=4.2
-_smesh_path=$SMESH_ROOT_DIR/bin/salome
-_smesh_librarypath=$SMESH_ROOT_DIR/lib/salome
-_smesh_pythonpath=$SMESH_ROOT_DIR/lib/python${_pythonver}/site-packages/salome
-_paraview_pythonpath="/usr/lib/paraview-${_paraviewver}/site-packages/:/usr/lib/paraview-${_paraviewver}/site-packages/vtk"
-_paraview_librarypath="/usr/lib/paraview-${_paraviewver}"
-
-# PYTHONPATH
-if [[ $PYTHONPATH != *${_smesh_pythonpath}* ]]; then
- export PYTHONPATH=${_smesh_pythonpath}:$PYTHONPATH
-fi
-if [[ $PYTHONPATH != *${_paraview_pythonpath}* ]]; then
- export PYTHONPATH=${_paraview_pythonpath}:$PYTHONPATH
-fi
-
-# LD_LIBRARY_PATH
-if [[ $LD_LIBRARY_PATH != *${_smesh_librarypath}* ]]; then
- export LD_LIBRARY_PATH=${_smesh_librarypath}:$LD_LIBRARY_PATH
-fi
-if [[ $LD_LIBRARY_PATH != *${_paraview_librarypath}* ]]; then
- export LD_LIBRARY_PATH=${_paraview_librarypath}:$LD_LIBRARY_PATH
-fi
-
-# PATH
-if [[ $PATH != *${_smesh_path}* ]]; then
- export PATH=${_smesh_path}:$PATH
-fi
diff --git a/salome-smesh.sh b/salome-smesh.sh
new file mode 100644
index 00000000000..2a01b88fae3
--- /dev/null
+++ b/salome-smesh.sh
@@ -0,0 +1,52 @@
+# module var
+export SMESH_ROOT_DIR=/opt/salome
+
+# local vars
+_smesh_pythonver=2.7
+_smesh_paraviewver=5.0
+_smesh_path=$SMESH_ROOT_DIR/bin/salome
+_smesh_librarypath=$SMESH_ROOT_DIR/lib/salome
+_smesh_pythonpath=$SMESH_ROOT_DIR/lib/python${_smesh_pythonver}/site-packages/salome
+_smesh_paraview_pythonpath="/usr/lib/paraview-${_smesh_paraviewver}/site-packages/:/usr/lib/paraview-${_smesh_paraviewver}/site-packages/vtk"
+_smesh_paraview_librarypath="/usr/lib/paraview-${_smesh_paraviewver}"
+
+# PYTHONPATH
+if [[ $PYTHONPATH != ${_smesh_pythonpath} && $PYTHONPATH != *:${_smesh_pythonpath}&& $PYTHONPATH != ${_smesh_pythonpath}:* && $PYTHONPATH != *:${_smesh_pythonpath}:* ]]; then
+ if [[ -z "$PYTHONPATH" ]]; then
+ export PYTHONPATH=${_smesh_pythonpath}
+ else
+ export PYTHONPATH=${_smesh_pythonpath}:$PYTHONPATH
+ fi
+fi
+if [[ $PYTHONPATH != ${_smesh_paraview_pythonpath} && $PYTHONPATH != *:${_smesh_paraview_pythonpath} && $PYTHONPATH != ${_smesh_paraview_pythonpath}:* && $PYTHONPATH != *:${_smesh_paraview_pythonpath}:* ]]; then
+ if [[ -z "$PYTHONPATH" ]]; then
+ export PYTHONPATH=${_smesh_paraview_pythonpath}
+ else
+ export PYTHONPATH=${_smesh_paraview_pythonpath}:$PYTHONPATH
+ fi
+fi
+
+# LD_LIBRARY_PATH
+if [[ $LD_LIBRARY_PATH != ${_smesh_librarypath} && $LD_LIBRARY_PATH != *:${_smesh_librarypath} && $LD_LIBRARY_PATH != ${_smesh_librarypath}:* && $LD_LIBRARY_PATH != *:${_smesh_librarypath}:* ]]; then
+ if [[ -z "$LD_LIBRARY_PATH" ]]; then
+ export LD_LIBRARY_PATH=${_smesh_librarypath}
+ else
+ export LD_LIBRARY_PATH=${_smesh_librarypath}:$LD_LIBRARY_PATH
+ fi
+fi
+if [[ $LD_LIBRARY_PATH != ${_smesh_paraview_librarypath} && $LD_LIBRARY_PATH != *:${_smesh_paraview_librarypath} && $LD_LIBRARY_PATH != ${_smesh_paraview_librarypath}:* && $LD_LIBRARY_PATH != *:${_smesh_paraview_librarypath}:* ]]; then
+ if [[ -z "$LD_LIBRARY_PATH" ]]; then
+ export LD_LIBRARY_PATH=${_smesh_paraview_librarypath}
+ else
+ export LD_LIBRARY_PATH=${_smesh_paraview_librarypath}:$LD_LIBRARY_PATH
+ fi
+fi
+
+# PATH
+if [[ $PATH != ${_smesh_path} && $PATH != *:${_smesh_path} && $PATH != ${_smesh_path}:* && $PATH != *:${_smesh_path}:* ]]; then
+ if [ -z "$PATH" ]; then
+ export PATH=${_smesh_path}
+ else
+ export PATH=${_smesh_path}:$PATH
+ fi
+fi