easyblock = 'ConfigureMake'

name = 'GConf'
version = '3.2.6'

homepage = 'https://projects.gnome.org/gconf/'
description = """GConf is a system for storing application preferences.
 It is intended for user preferences; not configuration
 of something like Apache, or arbitrary data storage."""

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

source_urls = ['http://ftp.gnome.org/pub/GNOME/sources/GConf/%(version_major_minor)s/']
sources = [SOURCE_TAR_XZ]

dependencies = [
    ('dbus-glib', '0.106'),
    ('GLib', '2.48.0'),
    ('GObject-Introspection', '1.48.0'),
    ('libxml2', '2.9.3'),
    ('GTK+', '2.24.30'),
    ('intltool', '0.51.0', '-Perl-5.22.1'),
]

configopts = '--disable-orbit '

sanity_check_paths = {
    'files': ['bin/gconf%s' % x for x in['-merge-tree', 'tool-2']] +
             ['bin/gsettings-%s-convert' % x for x in ['data', 'schema']] +
             ['lib/libgconf-2.%s' % x for x in['a', 'so']],
    'dirs': ['include', 'share']
}

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

moduleclass = 'devel'
