easyblock = 'ConfigureMake'

name = 'MPC'
version = '1.0.2'

homepage = 'http://www.multiprecision.org/'
description = """Gnu Mpc is a C library for the arithmetic of
 complex numbers with arbitrarily high precision and correct
 rounding of the result. It extends the principles of the IEEE-754
 standard for fixed precision real floating point numbers to
 complex numbers, providing well-defined semantics for every
 operation. At the same time, speed of operation at high precision
 is a major design goal."""

toolchain = {'name': 'intel', 'version': '2017.00'}

source_urls = ['http://www.multiprecision.org/mpc/download/']
sources = [SOURCELOWER_TAR_GZ]

dependencies = [('GMP', '6.1.1'),
                ('MPFR', '3.1.5')]

runtest = 'check'

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

moduleclass = 'math'
