easyblock = 'PackedBinary'

name = 'ParaView'
version = '4.3'
versionsuffix = '-OSPRay'

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 = ["PV4_3_pvOSPRay_linux_x86_64.tgz"]

dependencies = [('intel', '2016.01')]

install_cmd = "cp -a PV4_3_pvOSPRay_linux_x86_64/* %(installdir)s/ && find %(installdir)s/ -type d -exec chmod 755 {} \; "

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

moduleclass = 'vis'
