# JH 2020

easyblock = 'ConfigureMake'

name = 'HarfBuzz'
version = '2.6.4'

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

toolchain = {'name': 'GCCcore', 'version': '8.3.0'}

source_urls = ['https://www.freedesktop.org/software/harfbuzz/release/']
sources = [SOURCELOWER_TAR_XZ]
checksums = ['9413b8d96132d699687ef914ebb8c50440efc87b3f775d25856d7ec347c03c12']

builddependencies = [
    ('binutils', '2.32'),
    ('GObject-Introspection', '1.63.1', '-Py-3.7'),
    ('pkg-config', '0.29.2'),
]

dependencies = [
    ('GLib', '2.64.0'),
    ('ICU', '64.2'),
    ('cairo', '1.17.2'),
    ('freetype', '2.10.1'),
]

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

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

moduleclass = 'vis'
