# -*- 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.2.3
revision            0

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

description         Jupyter Sphinx Extensions
long_description    ${description}

homepage            https://github.com/jupyter/jupyter-sphinx/
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            ${python.rootname}-${version}

checksums           sha256  aaf7c9e0b6172432fca727b908bc296cc575159d3f948332886ba850357f66e7 \
                    rmd160  70423e0bc66c2e18eb1986380ac251e8e93f8412 \
                    size    13649

python.versions     37 38

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

    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}
    }

    livecheck.type  none
}