# IT4Innovations 2019

easyblock = 'ConfigureMake'

name = 'GTK+'
version = '3.24.8'

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': '8.2.0'}

source_urls = [FTPGNOME_SOURCE]
sources = [SOURCELOWER_TAR_XZ]
checksums = ['666962de9b9768fe9ca785b0e2f42c8b9db3868a12fa9b356b167238d70ac799']

builddependencies = [
    ('binutils', '2.31.1'),
    ('GObject-Introspection', '1.60.1', '-Python-3.7.2'),
    ('gettext', '0.19.8.1'),
    ('pkg-config', '0.29.2'),
    ('cairo', '1.16.0'),
    ('Perl', '5.28.1'),
]

dependencies = [
    ('ATK', '2.32.0'),
    ('at-spi2-atk', '2.32.0'),
    ('Gdk-Pixbuf', '2.38.1'),
    ('Pango', '1.43.0'),
    ('libepoxy', '1.5.3'),
    ('X11', '20190311'),
    ('FriBidi', '1.0.5'),
]

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

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

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

moduleclass = 'vis'
