# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Ravi Tripathi
# Email: ravi89@uab.edu

easyblock = "Tarball"

name = 'ConnectomeWorkbench'
version = '1.2.2'

homepage = 'http://www.humanconnectome.org/software/connectome-workbench.html'
description = """Connectome Workbench is an open-source 
visualization and discovery tool used to explore data generated 
by the Human Connectome Project. The distribution includes wb_view, 
a GUI-based visualization platform, and wb_command, a command-line 
program for performing a variety of algorithmic tasks using volume, 
surface, and grayordinate data."""

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

source_urls = ['https://ftp.humanconnectome.org/workbench/']
sources = ['workbench-rh_linux64-v%(version)s.zip']

modextrapaths = {
     'PATH': 'bin_rh_linux64', 
     'LIBRARY_PATH': 'libs_rh_linux64', 
     'LD_LIBRARY_PATH': 'libs_rh_linux64',
}

sanity_check_paths = {
    'files': ["bin_rh_linux64/wb_import", "bin_rh_linux64/wb_command", 
              "bin_rh_linux64/wb_view",],
    'dirs': ["resources"]
}

moduleclass = 'bio'

