# IT4Innovations 2018

easyblock = 'ConfigureMake'

name = 'HarfBuzz'
version = '1.8.1'

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

toolchain = {'name': 'system', 'version': ''}

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

dependencies = [
    ('libICU', '62.1', '', ('GCC', '6.3.0-2.27')),
    ('GLib', '2.57.1'),
    ('cairo', '1.14.12'),
    ('freetype', '2.9.1', '-libpng-1.6.34'),
]

parallel = 1

buildopts = 'CXXFLAGS="$CXXFLAGS --std=c++11 -fno-exceptions"'

builddependencies = [('GObject-Introspection', '1.56.1')]

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'
