##
# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
#
# Copyright:: Copyright 2012-2014 Uni.Lu/LCSB, NTUA
# Authors::   Fotis Georgatos <fotis@cern.ch>
# License::   MIT/GPL
# $Id$
#
# This work implements a part of the HPCBIOS project and is a component of the policy:
# http://hpcbios.readthedocs.org/en/latest/HPCBIOS_2012-97.html
##

easyblock = 'CMakeMake'

name = 'VTK'
version = '5.10.1'
altversions = ['5.4.2', '5.8.0', '5.10.1']

homepage = 'http://www.vtk.org'
description = """The Visualization Toolkit (VTK) is an open-source, freely available software system for
 3D computer graphics, image processing and visualization. VTK consists of a C++ class library and several
 interpreted interface layers including Tcl/Tk, Java, and Python. VTK supports a wide variety of visualization
 algorithms including: scalar, vector, tensor, texture, and volumetric methods; and advanced modeling techniques
 such as: implicit modeling, polygon reduction, mesh smoothing, cutting, contouring, and Delaunay triangulation."""

# Download eg. http://www.vtk.org/files/release/5.10/vtk-5.10.1.tar.gz
vermajor = '.'.join(version.split('.')[:2])
sources = [
    SOURCELOWER_TAR_GZ,
    '%sdata-%s.tar.gz' % (name.lower(), version),
]
source_urls = ['http://www.vtk.org/files/release/%s' % vermajor]

toolchain = {'version': '4.0.6', 'name': 'ictce'}

builddependencies = [('CMake', '2.8.4')]

sanity_check_paths = {
    'files': ['bin/vtkEncodeString'],
    'dirs': ['lib/vtk-%s' % vermajor, 'include/vtk-%s' % vermajor]
}

moduleclass = 'vis'
