name = 'libxml2'
version = '2.8.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': 'goolf', 'version': '1.4.10'}
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 --with-zlib=$EBROOTZLIB'

pythonver = '2.7.3'
pythonshortver = '.'.join(pythonver.split('.')[0:2])
versionsuffix = '-%s-%s' % ('Python', pythonver)

dependencies = [
    ('zlib', '1.2.7'),
    ('Python', pythonver),
]

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'