# -*- 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.55.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/trufont/uharfbuzz

checksums           rmd160  8a7d55c79ea2006a73a805c1460024c386dd0584 \
                    sha256  a29bda4c147c35240a71051315423b1933b46eac558a72f55d9ffdc1f2bbb69f \
                    size    2012220

python.versions     310 311 312 313 314

compiler.cxx_standard   2011

if {${subport} ne ${name}} {
    # https://github.com/harfbuzz/uharfbuzz/issues/306
    patchfiles-append \
                    patch-verify.diff
    # https://github.com/harfbuzz/uharfbuzz/issues/307
    patchfiles-append \
                    patch-narrowing.diff

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