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

easyblock = "PackedBinary"

name = 'MRIcron'
version = '20150601'

homepage = 'http://www.mccauslandcenter.sc.edu/mricro/mricron/'
description = """ MRIcron allows viewing of medical images. It 
includes tools to complement SPM and FSL. Native format is NIFTI 
but includes a conversion program (see dcm2nii) for converting DICOM images. 
Features layers, ROIs, and volume rendering.  """

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

# Automatic Download doesn't work for this software as you need to accept their license, 
# so you can download it manually at https://www.nitrc.org/frs/download.php/7765/ 
# and place it in a folder where Easybuild can see it. 
# Also rename the zip file to lx-20150601.zip
sources = ['lx-%(version)s.zip']

checksums = ['a2d8b1c053384220953f6b670d0fd4df']

sanity_check_paths = {
    'files': ["dcm2nii", "dcm2niigui", "mricron", "npm"],
    'dirs': ["example", "lut", "templates"]
}

moduleclass = 'bio'
