# -*- 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
PortGroup           github           1.0

name                py-scikit-hep-awkward

github.setup        scikit-hep awkward 2.4.6 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
fetch.type          git

license             BSD

maintainers         {jonesc @cjones051073} openmaintainer

description         Awkward Array is a library for nested, variable-sized data.
long_description    {*}${description}

python.versions     39 310 311

if {${name} ne ${subport}} {
    conflicts       py${python.version}-scikit-hep-awkward1

    post-fetch {
        system -W ${worksrcpath} "git submodule update --init --recursive"
    }

    compiler.cxx_standard 2011

    depends_build-append \
        path:bin/cmake:cmake \
        port:py${python.version}-setuptools \
        port:py${python.version}-hatch-fancy-pypi-readme \
        port:py${python.version}-hatchling \
        port:py${python.version}-hatch-vcs

    depends_lib-append \
        port:py${python.version}-numpy \
        port:py${python.version}-yaml
}

# Exclude pre-release candidates
github.livecheck.regex {([0-9.]+)}
