easyblock = 'ConfigureMake'

name = 'Guile'
version = '2.2.2'

homepage = 'https://www.gnu.org/software/guile/'

description = """
 Guile is a programming language, designed to help programmers create flexible
 applications that can be extended by users or other programmers with plug-ins,
 modules, or scripts.
"""

toolchain = {'name': 'GCCcore', 'version': '6.4.0'}
toolchainopts = {'pic': True}

source_urls = [GNU_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
checksums = ['3d9b94183b19f04dd4317da87beedafd1c947142f3d861ca1f0224e7a75127ee']

builddependencies = [
    ('Autotools', '20170619'),
    ('binutils', '2.28'),
]

dependencies = [
    ('gc', '7.6.0'),
    ('GMP', '6.1.2'),
    ('libffi', '3.2.1'),
    ('libunistring', '0.9.7'),
]

sanity_check_paths = {
    'files': ['bin/guild', 'bin/guile', 'bin/guile-config',
              'bin/guile-snarf', 'bin/guile-tools',
              'include/guile/%(version_major_minor)s/libguile.h',
              'lib/libguile-%(version_major_minor)s.a',
              'lib/libguile-%%(version_major_minor)s.%s' % SHLIB_EXT],
    'dirs': ['include/guile/%(version_major_minor)s/libguile',
             'lib/guile/%(version_major_minor)s/ccache'],
}

moduleclass = 'lang'
