easyblock = 'PackedBinary'

name = 'ParaView'
version = '5.0.0'
versionsuffix = '-binary'

homepage = "http://www.paraview.org"
description = "ParaView is a scientific parallel visualizer."

toolchain = {'name': 'system', 'version': ''}

download_suffix = 'download.php?submit=Download&version=v%(version_major_minor)s&type=source&os=all&downloadFile='
source_urls = [
    'http://www.paraview.org/paraview-downloads/%s' %
    download_suffix]
sources = ["ParaView-5.0.0-Qt4-OpenGL2-MPI-Linux-64bit.tar.gz"]

install_cmd = "cp -a ParaView-5.0.0-Qt4-OpenGL2-MPI-Linux-64bit/* %(installdir)s/ && find %(installdir)s/ -type d -exec chmod 755 {} \; "

sanity_check_paths = {
    'files': ['bin/paraview'],
    'dirs': ['bin', 'lib'],
}

moduleclass = 'vis'
