From 21210530b4d8ba4e797eac2bbcf1884efe194db9 Mon Sep 17 00:00:00 2001 From: Caubet Serrabou Marc Date: Thu, 3 Dec 2020 16:41:27 +0100 Subject: [PATCH] Added Paraview automatic installation --- Tools/paraview/build | 21 +++++++++++++++++++++ Tools/paraview/files/variants.rhel7 | 2 ++ Tools/paraview/files/version-to-tarname.txt | 2 ++ Tools/paraview/modulefile | 20 ++++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100755 Tools/paraview/build create mode 100644 Tools/paraview/files/variants.rhel7 create mode 100644 Tools/paraview/files/version-to-tarname.txt create mode 100644 Tools/paraview/modulefile diff --git a/Tools/paraview/build b/Tools/paraview/build new file mode 100755 index 0000000..5708b23 --- /dev/null +++ b/Tools/paraview/build @@ -0,0 +1,21 @@ +#!/usr/bin/env modbuild + + +URL=$(grep -E "^${V_PKG}" files/version-to-tarname.txt | awk '{print $2}') +FILENAME=$(grep -E "^${V_PKG}" files/version-to-tarname.txt | sed 's/"//g' | awk -F'downloadFile=' '{print $2}') + +pbuild::set_download_url "${URL}" "${FILENAME}" + +pbuild::add_to_group 'Tools' + +pbuild::configure() { + : +} + +pbuild::compile() { + : +} + +pbuild::install() { + rsync -alvAHXS "${SRC_DIR}"/* "${PREFIX}" +} diff --git a/Tools/paraview/files/variants.rhel7 b/Tools/paraview/files/variants.rhel7 new file mode 100644 index 0000000..c0ef31b --- /dev/null +++ b/Tools/paraview/files/variants.rhel7 @@ -0,0 +1,2 @@ +paraview/5.8.0 removed +paraview/5.8.1 unstable diff --git a/Tools/paraview/files/version-to-tarname.txt b/Tools/paraview/files/version-to-tarname.txt new file mode 100644 index 0000000..fefba7c --- /dev/null +++ b/Tools/paraview/files/version-to-tarname.txt @@ -0,0 +1,2 @@ +5.8.0 https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.8&type=binary&os=Linux&downloadFile=ParaView-5.8.0-MPI-Linux-Python2.7-64bit.tar.gz +5.8.1 https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.8&type=binary&os=Linux&downloadFile=ParaView-5.8.1-MPI-Linux-Python3.7-64bit.tar.gz diff --git a/Tools/paraview/modulefile b/Tools/paraview/modulefile new file mode 100644 index 0000000..3b5994e --- /dev/null +++ b/Tools/paraview/modulefile @@ -0,0 +1,20 @@ +#%Module1.0 + +module-whatis "ParaView" +module-url 'https://www.paraview.org/' +module-license "see: https://www.paraview.org/paraview-license/" +module-maintainer "Marc Caubet Serrabou " + +module-help " +ParaView is an open-source, multi-platform data analysis and visualization +application. ParaView users can quickly build visualizations to analyze their +data using qualitative and quantitative techniques. The data exploration can +be done interactively in 3D or programmatically using ParaView’s batch processing +capabilities. + +ParaView was developed to analyze extremely large datasets using distributed +memory computing resources. It can be run on supercomputers to analyze datasets +of petascale size as well as on laptops for smaller data, has become an integral +tool in many national laboratories, universities and industry, and has won +several awards related to high performance computation. +"