# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-uharfbuzz
version             0.56.3
revision            0
categories          python graphics
license             Apache-2
maintainers         {@akierig fastmail.de:akierig} openmaintainer
description         Streamlined Cython bindings for the HarfBuzz shaping engine.
long_description    {*}${description}
homepage            https://github.com/harfbuzz/uharfbuzz

checksums           rmd160  2fee1954ad62b021494415873191491c1befd573 \
                    sha256  dbb6cc2c36b42929e4059290a980640f2391d858f6eab36e369ed4f373f96caa \
                    size    39725360

python.versions     310 311 312 313 314 315

if {${name} ne ${subport}} {
    depends_lib-append  port:harfbuzz
    depends_build-append port:py${python.version}-cython \
                     port:py${python.version}-pkgconfig \
                     port:py${python.version}-setuptools_scm \
                     port:py${python.version}-wheel \
                     path:bin/pkg-config:pkgconfig

    build.env-append USE_SYSTEM_LIBS=1

    test.run         yes
}
