easyblock = 'CMakeMake'

name = 'OpenCoarrays'
version = '1.8.10'

homepage = 'http://www.opencoarrays.org/'
description = """A transport layer for coarray Fortran compilers."""

toolchain = {'name': 'GCC', 'version': '6.3.0-2.27'}

source_urls = [
    'https://github.com/sourceryinstitute/opencoarrays/releases/download/%(version)s/']
sources = [SOURCE_TAR_GZ]

builddependencies = [('CMake', '3.7.2', '', True)]
dependencies = [('OpenMPI', '1.10.7')]

separate_build_dir = True

sanity_check_paths = {
    'files': ['bin/caf', 'bin/cafrun', 'lib64/libcaf_mpi.a'],
    'dirs': ['bin', 'lib64'],
}

moduleclass = 'compiler'
