easyblock = 'ConfigureMake'

name = 'libxml2'
version = '2.9.3'

homepage = 'http://xmlsoft.org/'
description = """Libxml2 is the XML C parser and
toolchain developed for the Gnome project
 (but usable outside of the Gnome platform)."""

toolchain = {'name': 'intel', 'version': '2017.00'}
toolchainopts = {'pic': True}

source_urls = [
    'http://xmlsoft.org/sources/',
    'http://xmlsoft.org/sources/old/'
]
sources = [SOURCELOWER_TAR_GZ]

configopts = 'CC="$CC" CXX="$CXX" --with-pic --without-python --with-zlib=$EBROOTZLIB'

dependencies = [('zlib', '1.2.8')]

sanity_check_paths = {
    'files': [
        ('lib/libxml2.a', 'lib64/libxml2.a'), ('lib/libxml2.%s' %
                                               SHLIB_EXT, 'lib64/libxml2.%s' %
                                               SHLIB_EXT)], 'dirs': [
        'bin', 'include/libxml2/libxml'], }

moduleclass = 'lib'