# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Pablo Escobar Lopez
# Swiss Institute of Bioinformatics
# Biozentrum - University of Basel

easyblock = 'MakeCp'

name = 'WHAM'
version = '2.0.9'

homepage = 'http://membrane.urmc.rochester.edu/content/wham'
description = """  fast, memory efficient implementation of the 
 Weighted Histogram Analysis Method (WHAM)."""

toolchain = {'name': 'goolf', 'version': '1.4.10'}

source_urls = ['http://membrane.urmc.rochester.edu/sites/default/files/wham/']
sources = ['%(namelower)s-release-%(version)s.tgz']

buildopts = ' CC="$CC"'

parallel = 1

files_to_copy = [
    (["wham/wham", "wham-2d/wham-2d"], "bin"),
    "doc"
]

sanity_check_paths = {
    'files': ['bin/wham', 'bin/wham-2d'],
    'dirs': []
}

moduleclass = 'bio'
