easyblock = 'ConfigureMake'

name = 'HarfBuzz'
version = '0.9.35'

homepage = 'http://www.harfbuzz.org/'
description = """HarfBuzz is an OpenType text shaping engine."""

toolchain = {'name': 'intel', 'version': '2014b'}

source_urls = ['http://www.freedesktop.org/software/harfbuzz/release/']
sources = [SOURCELOWER_TAR_BZ2]

dependencies = [
    ('cairo', '1.12.18'),
    ('GObject-Introspection', '1.42.0'),
]

patches = ['HarfBuzz-%(version)s_config.patch']

configopts = '--with-gobject --enable-introspection=yes '

sanity_check_paths = {
    'files': ['lib/libharfbuzz.%s' % SHLIB_EXT, 'bin/hb-view'],
    'dirs': []
}

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

moduleclass = 'vis'
