# -*- 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-fastprogress
version             1.0.0
revision            0

categories-append   devel
platforms           darwin
supported_archs     noarch
license             Apache-2
maintainers         {reneeotten @reneeotten} openmaintainer

description         A nested progress with plotting options for fastai
long_description    ${description}

homepage            https://github.com/fastai/fastprogress

checksums           rmd160  a697a98bcd198176e875e639eb55dd80d4e6d9be \
                    sha256  89e28ac1d2a5412aab18ee3f3dfd1ee8b5c1f2f7a44d0add0d0d4f69f0191bfe \
                    size    13423

python.versions     36 37 38 39

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

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.md CONTRIBUTING.md \
            LICENSE ${destroot}${docdir}
    }

    livecheck.type  none
}
