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

github.setup        scikit-hep mplhep 0.3.32 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                py-scikit-hep-mplhep
revision            0

fetch.type          git

platforms           {darwin any}
supported_archs     noarch
license             MIT

maintainers         {jonesc @cjones051073} openmaintainer

description         A set of helpers for matplotlib to more easily produce plots typically needed in HEP.
long_description    {*}${description}

python.versions     310 311 312 313

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

    depends_lib-append \
        port:py${python.version}-scikit-hep-mplhep_data
}

# Only allow numbers, to avoid pre-release versions
github.livecheck.regex  {([0-9.]+)}
