# -*- 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.57.0
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  6e5a5d88cbf254e26f0d6138d5c4c65cc8fe0dc2 \
                    sha256  55136df18a9dd09fec36d1ceb77965f3108de6d86c338b3825feedb0730d84b7 \
                    size    39863434

python.versions     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
}
