# -*- 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.1
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  ea04e819b628699c019c76f8654210b8383d602c \
                    sha256  a0a6928ed66b166a931ebe5df9ac551b9c42983513030233dcd95b41fa827f97 \
                    size    39249661

python.versions     310 311 312 313 314

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
}
