# -*- 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-awkward1

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

supported_archs     x86_64

license             BSD

maintainers         {jonesc @cjones051073} openmaintainer

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

# Supported python versions
python.versions     39 310 311

if {${name} ne ${subport}} {

    conflicts           py${python.version}-scikit-hep-awkward

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

    python.pep517       no

    compiler.cxx_standard 2011

    depends_build-append \
        path:bin/cmake:cmake \
        port:py${python.version}-setuptools

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

    depends_test-append \
        port:py${python.version}-pytest
}

livecheck.type      none