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

github.setup        sivel speedtest-cli 2.1.3 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            3

python.default_version 312

categories          net
platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         {khindenburg @kurthindenburg} openmaintainer

description         cli for speedtest.net
long_description    command line interface for testing internet bandwidth using speedtest.net

checksums           rmd160  984486c3fabdf8b807f44c0b023719b5419669f5 \
                    sha256  dd7e64bf678a6c012c671d6aaef42d6612bf8c8cb23787bc8e4470163e1c4b5b \
                    size    24789

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

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