easyblock = 'ConfigureMake'

name = 'HarfBuzz'
version = '1.5.1'

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

toolchain = {'name': 'intel', 'version': '2017a'}

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

dependencies = [
    ('GLib', '2.53.5'),
    ('cairo', '1.14.10'),
    ('freetype', '2.7.1', '-libpng-1.6.29'),
]

builddependencies = [('GObject-Introspection', '1.53.5', '-Python-2.7.13')]

configopts = "--enable-introspection=yes --with-gobject=yes --enable-static --enable-shared --with-cairo "

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

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

moduleclass = 'vis'
