# #
# Author:    Robert Mijakovic <robert.mijakovic@lxp.lu>
# #
easyblock = 'ConfigureMake'

name = 'libevent'
version = '2.1.12'
versionsuffix = '-test'

homepage = 'https://libevent.org/'
description = """
 The libevent API provides a mechanism to execute a callback function when
 a specific event occurs on a file descriptor or after a timeout has been
 reached.  Furthermore, libevent also support callbacks due to signals or
 regular timeouts.
"""

toolchain = {'name': 'GCCcore', 'version': '10.3.0'}
toolchainopts = {'pic': True}

source_urls = ['https://github.com/%(name)s/%(name)s/releases/download/release-%(version)s-stable/']
sources = ['%(name)s-%(version)s-stable.tar.gz']
checksums = ['92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb']

builddependencies = [
    ('binutils', '2.36.1'),
    ('pkg-config', '0.29.2'),
]
dependencies = [
    ('zlib', '1.2.11'),
    ('OpenSSL', '1.1.1k'),
]


sanity_check_paths = {
    'files': ['bin/event_rpcgen.py', 'include/event.h', 'include/event2/event.h', 'lib/libevent_core.so', 'lib/pkgconfig/%(name)s.pc'],
    'dirs': [],
}

moduleclass = 'lib'
