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

epoch               1
github.setup        scikit-hep boost-histogram 1.4.0 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         Python bindings for Boost::Histogram.
long_description    {*}${description}

python.versions     39 310 311

if {${name} ne ${subport}} {
    compiler.cxx_standard     2014
    compiler.blacklist-append {clang < 800}

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

    depends_build-append \
        port:py${python.version}-setuptools \
        port:py${python.version}-setuptools_scm
}
