easyblock = 'ConfigureMake'

name = 'libxml2'
version = '2.9.0'

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': 'ictce', 'version': '4.1.13'}
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.7')]

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'