easyblock = 'ConfigureMake'

name = 'libglade'
version = '2.6.4'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://developer.gnome.org/libglade/'
description = """Libglade is a library for constructing user interfaces dynamically from XML descriptions."""

toolchain = {'name': 'foss', 'version': '2018b'}

source_urls = ['http://ftp.gnome.org/pub/GNOME/sources/libglade/%(version_major_minor)s']
sources = [SOURCE_TAR_GZ]
checksums = ['c41d189b68457976069073e48d6c14c183075d8b1d8077cb6dfb8b7c5097add3']

dependencies = [
    ('Python', '3.6.6'),
    ('ATK', '2.28.1', versionsuffix),
    ('GTK+', '2.24.32', versionsuffix),
    ('GLib', '2.54.3'),
    ('libxml2', '2.9.8'),
]

sanity_check_paths = {
    'files': ['bin/libglade-convert', 'lib/libglade-2.0.a', 'lib/libglade-2.0.%s' % SHLIB_EXT,
              'lib/pkgconfig/libglade-2.0.pc'],
    'dirs': ['include/libglade-2.0/glade', 'share'],
}

moduleclass = 'lib'
