easyblock = 'ConfigureMake'

name = 'MPFR'
version = '3.1.5'

homepage = 'http://www.mpfr.org'

description = """
 The MPFR library is a C library for multiple-precision floating-point
 computations with correct rounding.
"""

toolchain = {'name': 'GCCcore', 'version': '6.4.0'}

source_urls = ['http://www.mpfr.org/mpfr-%(version)s/']
sources = [SOURCELOWER_TAR_BZ2]
checksums = ['ca498c1c7a74dd37a576f353312d1e68d490978de4395fa28f1cbd46a364e658']

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

builddependencies = [
    ('binutils', '2.28'),
]

dependencies = [
    ('GMP', '6.1.2'),
]

runtest = 'check'

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

moduleclass = 'math'
