# -*- 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-scikit-build-core
version             0.11.5
revision            1
categories-append   devel
license             Apache-2
platforms           {darwin any}
supported_archs     noarch

python.versions     39 310 311 312 313
python.pep517_backend hatch

maintainers         {stromnov @stromnov} openmaintainer

description         A bridge between Python package build systems and CMake (a rewrite of the classic Scikit-build).
long_description    \
    Scikit-build-core is a ground-up rewrite of the classic Scikit-build, a bridge between Python package \
    build systems and CMake, the most popular compiled language build system. Scikit-build-core was built \
    using Python packaging standards developed after scikit-build (classic) was written.

homepage            https://github.com/scikit-build/scikit-build-core/

distname            [string map {- _} ${python.rootname}]-${version}

checksums           rmd160  dfa9aeb0e9a8dfa94ddda9651ca9a420764180d3 \
                    sha256  8f0a1edb86cb087876f3c699d2a2682012efd8867b390ed37355f13949d0628e \
                    size    285500

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-hatch-vcs

    depends_lib-append  path:bin/cmake:cmake \
                        port:ninja \
                        port:py${python.version}-packaging \
                        port:py${python.version}-pathspec

    if {${python.version} < 311} {
        depends_lib-append \
                port:py${python.version}-exceptiongroup \
                port:py${python.version}-tomli
    }
}
