easyblock = 'ConfigureMake'

name = 'YAXT'
version = '0.5.1'

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

toolchain = {'name': 'foss', 'version': '2017b'}
toolchainopts = {'usempi': True}

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

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'
