# JH 2020

easyblock = 'MakeCp'

name = 'IOTK'
version = '1.2.2'

homepage = 'https://github.com/QEF/iotk/tree/master/iotk'
description = """The input/output tool kit (IOTK) is a Fortran90 library intended to provide a
simplified access to tagged files formatted using some specific rule."""

source_urls = ['https://github.com/yambo-code/yambo/files/962173']
sources = ['iotk-y1.2.2.tar.gz']
checksums = [
   'c0a4eb19f3e885d83d7afa52eb90658fba7cb1cb6e66049866a98dcc980de543',
   'e0536c490ce57e60ba6e10c54f1b9baf9c4d6cd6c18be8a4d2f7a4e685200df2'
]

toolchain = {'name': 'intel', 'version': '2020a'}

patches = ['IOTK-intel-2020a.patch']

with_configure = True

buildopts = 'all'

maxparallel = 1

files_to_copy = [
        (['include/*'], 'include'),
        (['src/*.x'], 'bin'),
        (['src/*.a'], 'lib'),
        (['src/*'], 'src'),
]

sanity_check_paths = {
    'files': [],
    'dirs': ['bin', 'include', 'lib'],
}

moduleclass = 'lib'
