easyblock = 'ConfigureMake'

name = 'MPFR'
version = '3.1.4'

homepage = 'http://www.mpfr.org'
description = """The MPFR library is a C library for multiple-precision
 floating-point local_computations with correct rounding."""

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

source_urls = [
    'http://www.mpfr.org/mpfr-%(version)s/',
    'http://mpfr.loria.fr/mpfr-%(version)s/',
    'http://mpfr.loria.fr/mpfr-%(version)s/mpfr-%(version)s.tar.gz'
]
sources = [SOURCELOWER_TAR_GZ]

patches = ['MPFR_ictce_remove-deprecated-mp.patch']

dependencies = [
    ('GMP', '6.1.1', '', True)
]

runtest = 'check'

sanity_check_paths = {
    'files': ['lib/libmpfr.%s' % SHLIB_EXT, 'include/mpfr.h'],
    'dirs': []
}

moduleclass = 'math'
