easyblock = 'ConfigureMake'

name = 'GnuTLS'
version = '3.1.8'

homepage = 'http://www.gnutls.org/'
description = "gnutls-3.0.22: GNU Transport Layer Security library"
toolchain = {'name': 'goolf', 'version': '1.4.10'}

source_urls = ['ftp://ftp.gnutls.org/pub/gnutls/']
sources = [SOURCELOWER_TAR_XZ]

dependencies = [
    ('GMP', '5.0.5'),
    ('nettle', '2.6'),
    ('Guile', '1.8.8'),
]

configopts = "--with-guile-site-dir=$EBROOTGUILE"

sanity_check_paths = {
    'files': [
        'bin/%s' %
        x for x in [
            'certtool',
            'danetool',
            'gnutls-cli',
            'gnutls-cli-debug',
            'gnutls-serv',
            'ocsptool',
            'psktool',
            'srptool']] +
    [
        'lib/libgnutls%s' %
        x for x in [
            '.a',
            'xx.a',
            '-xssl.a',
            '-openssl.a']],
    'dirs': ['include/gnutls'],
}

moduleclass = 'system'
