# IT4Innovations 2020

easyblock = 'ConfigureMake'

name = 'DBus'
version = '1.13.8'

homepage = 'http://dbus.freedesktop.org/'

description = """
 D-Bus is a message bus system, a simple way for applications to talk
 to one another.  In addition to interprocess communication, D-Bus helps
 coordinate process lifecycle; it makes it simple and reliable to code
 a "single instance" application or daemon, and to launch applications
 and daemons on demand when their services are needed.
"""

toolchain = SYSTEM

source_urls = ['http://dbus.freedesktop.org/releases/dbus']
sources = [SOURCELOWER_TAR_XZ]

builddependencies = [
    ('binutils', '2.27'),
]

dependencies = [
    ('expat', '2.2.0'),
]

configopts = '--without-systemdsystemunitdir'

sanity_check_paths = {
    'files': ['bin/dbus-%s' % x for x in
              ['cleanup-sockets', 'daemon', 'launch', 'monitor',
               'run-session', 'send', 'uuidgen']] +
             ['lib/libdbus-1.%s' % x for x in ['a', SHLIB_EXT]],
    'dirs': ['include', 'share'],
}

moduleclass = 'devel'