# IT4Innovations 2019

easyblock = 'CMakeMake'

name = 'CheMPS2'
version = '1.8.9'

homepage = 'https://github.com/SebWouters/CheMPS2'
description = """CheMPS2 is a scientific library which contains a spin-adapted implementation of the
density matrix renormalization group (DMRG) for ab initio quantum chemistry."""

toolchain = {'name': 'intel', 'version': '2017c'}

source_urls = ['https://github.com/SebWouters/CheMPS2/archive/']
sources = ['v%(version)s.tar.gz']

builddependencies = [
    ('CMake', '3.14.1', '', True)
]

dependencies = [
    ('HDF5', '1.10.4')
]

pretestopts = 'export OMP_NUM_THREADS=1 && '
#runtest = 'test'

separate_build_dir = True

sanity_check_paths = {
    'files': ['bin/chemps2', 'lib64/libchemps2.%s' % SHLIB_EXT, 'lib64/libchemps2.a'],
    'dirs': ['include/chemps2']
}

moduleclass = 'chem'
