easyblock = 'ConfigureMake'

name = 'libSM'
version = '1.2.2'

homepage = "http://www.freedesktop.org/wiki/Software/xlibs"
description = """X11 Session Management library, which allows for applications to both manage sessions,
 and make use of session managers to save and restore their state for later use."""

toolchain = {'name': 'foss', 'version': '2016a'}

sources = [SOURCE_TAR_GZ]
source_urls = [XORG_LIB_SOURCE]

dependencies = [
    ('libICE', '1.0.9'),
]
builddependencies = [
    ('xproto', '7.0.28'),
    ('xtrans', '1.3.5'),
]

sanity_check_paths = {
    'files': ['include/X11/SM/%s' % x for x in ['SM.h', 'SMlib.h', 'SMproto.h']],
    'dirs': [],
}

moduleclass = 'devel'
