# This is an easyconfig file for EasyBuild, see https://github.com/hpcugent/easybuild
# Copyright:: Copyright 2013 Juelich Supercomputing Centre, Germany
# Authors::   Bernd Mohr <b.mohr@fz-juelich.de>
# License::   New BSD
#
# This work is based from experiences from the UNITE project
# http://apps.fz-juelich.de/unite/
##
easyblock = 'CMakeMake'

name = 'PnMPI'
version = '1.2.0'

homepage = 'https://scalability.llnl.gov/pnmpi/'
description = """MPI Tool Virtualization and Interoperability library."""

toolchain = {'name': 'goolf', 'version': '1.5.14'}
toolchainopts = {'usempi': True}

# http://tu-dresden.de/die_tu_dresden/zentrale_einrichtungen/zih/forschung/projekte/must/files/pnmpi-for-gti-1.2.0.tar.gz
source_urls = ['http://tu-dresden.de/die_tu_dresden/zentrale_einrichtungen/zih/forschung/projekte/must/files/']
sources = ['%(namelower)s-for-gti-%(version)s.tar.gz']

builddependencies = [('CMake', '3.0.2')]

configopts = ' -DCMAKE_BUILD_TYPE=Release -DBFD_FOUND=False -DPNMPI_HAVE_BFD=False'

parallel = 1

sanity_check_paths = {
    'files': ["bin/pnmpi-patch", "include/pnmpi.h", "lib/libpnmpi.a"],
    'dirs': [],
}

moduleclass = 'perf'
