# -*- 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-jupyter_sphinx
version             0.5.3
revision            0

categories-append   textproc devel
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Jupyter Sphinx Extensions
long_description    {*}${description}

homepage            https://github.com/jupyter/jupyter-sphinx/

checksums           sha256  2e23699a3a1cf5db31b10981da5aa32606ee730f6b73a844d1e76d800756af56 \
                    rmd160  d4adf52be4bc51a8354663c10ff779de35de54f6 \
                    size    17532

python.versions     310 311 312 313
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-ipython \
                    port:py${python.version}-ipywidgets \
                    port:py${python.version}-nbconvert \
                    port:py${python.version}-nbformat \
                    port:py${python.version}-sphinx

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