# IT4Innovations 2019

easyblock = 'ConfigureMake'

name = 'GTK+'
version = '2.24.32'

homepage = 'https://developer.gnome.org/gtk+/stable/'
description = """
 The GTK+ 2 package contains libraries used for creating graphical user interfaces for applications.
"""

toolchain = {'name': 'GCCcore', 'version': '6.3.0'}

source_urls = [FTPGNOME_SOURCE]
sources = [SOURCELOWER_TAR_XZ]
checksums = ['b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e']

builddependencies = [
    ('binutils', '2.27'),
    ('GObject-Introspection', '1.56.1', '', True),
    ('gettext', '0.19.8.1', '', True),
]

dependencies = [
    ('ATK', '2.28.1'),
    ('Gdk-Pixbuf', '2.36.8', '', True),
    ('Pango', '1.42.1', '', ('GCC', '6.3.0-2.27')),
    ('X11', '20190311', '', True),
]

configopts = "--disable-silent-rules --disable-glibtest --enable-introspection=yes --disable-visibility "

sanity_check_paths = {
    'files': ['bin/gtk-update-icon-cache', 'lib/libgtk-x11-2.0.%s' % SHLIB_EXT],
    'dirs': ['include/gtk-2.0'],
}

modextrapaths = {
    'GI_TYPELIB_PATH': 'share',
    'XDG_DATA_DIRS': 'share',
}

moduleclass = 'vis'
