easyblock = 'ConfigureMake'

name = 'libevent'
version = '2.1.8'

homepage = 'http://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': 'dummy', 'version': 'dummy'}

source_urls = [
    'https://github.com/%(name)s/%(name)s/releases/download/release-%(version)s-stable/',
    'https://downloads.sourceforge.net/project/levent/release-%(version)s-stable/',
]

sources = ['%(name)s-%(version)s-stable.tar.gz']

checksums = ['f3eeaed018542963b7d2416ef1135ecc']

sanity_check_paths = {
    'files': ["bin/event_rpcgen.py"] +
             ['include/%s' % x for x in ["evdns.h", "event.h", "evhttp.h", "evrpc.h", "evutil.h"]],
    'dirs': ["lib", "include/event2"]
}

moduleclass = 'lib'
