easyblock = 'ConfigureMake'

name = 'YAXT'
version = '0.9.0'

homepage = 'https://www.dkrz.de/redmine/projects/yaxt'
description = "Yet Another eXchange Tool"

toolchain = {'name': 'iimpi', 'version': '2021.02'}
#toolchainopts = {'pic': True, 'usempi': True, 'lowopt': True}
toolchainopts = {'usempi': True}

source_urls = ['https://www.dkrz.de/redmine/attachments/download/498/']
sources = [SOURCELOWER_TAR_GZ]

#configopts = 'FC="$F90" FCFLAGS="$F90FLAGS -cpp" UCX_TLS="ud,sm,self" '
configopts = 'FC="$F90" FCFLAGS="$F90FLAGS -cpp" '

sanity_check_paths = {
    'files': ['include/yaxt.h', 'include/yaxt.mod', 'lib/libyaxt.a', 'lib/libyaxt.%s' % SHLIB_EXT],
    'dirs': ['include/xt'],
}

moduleclass = 'tools'
