# IT4Innovations 2023
# JK

easyblock = 'ConfigureMake'

name = 'libevent'
version = '2.1.12'

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 = SYSTEM
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.39'),
#    ('pkgconf', '1.9.3'),
#]

dependencies = [
    ('zlib', '1.2.12'),
]

osdependencies = ['openssl']

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

moduleclass = 'lib'
