easyblock = 'ConfigureMake'

name = 'nettle'
version = '3.3'

homepage = 'http://www.lysator.liu.se/~nisse/nettle/'
description = """Nettle is a cryptographic library that is designed to fit easily
 in more or less any context: In crypto toolkits for object-oriented
 languages (C++, Python, Pike, ...), in applications like LSH or GNUPG,
 or even in kernel space."""

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

source_urls = [GNU_SOURCE]
sources = [SOURCE_TAR_GZ]

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

sanity_check_paths = {
    'files': ['bin/%s' % x for x in ['nettle-hash', 'nettle-lfib-stream', 'pkcs1-conv', 'sexp-conv']] +
             ['lib64/libhogweed.a', 'lib64/libhogweed.%s' % SHLIB_EXT,
              'lib64/libnettle.a', 'lib64/libnettle.%s' % SHLIB_EXT],
    'dirs': ['include/nettle'],
}

moduleclass = 'lib'