# -*- 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        executablebooks sphinx-copybutton 0.3.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball

name                py-sphinx-copybutton
platforms           {darwin any}
license             MIT
supported_archs     noarch

maintainers         nomaintainer

description         A Sphinx plugin to add a little “copy” button to your code.
long_description    {*}$description

homepage            https://sphinx-copybutton.readthedocs.io/en/latest/

python.versions     39 310 311 312

# Has a submodule that isn't included in the release tarballs.
fetch.type          git

if {${name} ne ${subport}} {
    post-fetch {
        system -W ${worksrcpath} "git submodule update --init"
    }

    depends_lib-append\
                        port:py${python.version}-sphinx \
                        port:py${python.version}-black \
                        port:py${python.version}-flake8

    livecheck.type      none
}