# -*- 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-numpydoc
python.rootname     numpydoc
version             0.8.0
platforms           darwin
license             BSD
maintainers         {mojca @mojca} openmaintainer

description         Sphinx extension to support docstrings in Numpy format
long_description    Numpydoc inserts a hook into Sphinx’s autodoc \
                    that converts docstrings following the Numpy/Scipy format \
                    to a form palatable to Sphinx.

homepage            https://github.com/numpy/numpydoc
master_sites        pypi:n/${python.rootname}/
distname            ${python.rootname}-${version}

checksums           rmd160  ba273ec50d275eb93051a4cf32ebc8e5022139ea \
                    sha256  61f4bf030937b60daa3262e421775838c945dcdd671f37b69e8e4854c7eb5ffd \
                    size    20488

python.versions     27 34 35 36

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

    # TODO: requires more work
    test.run            yes
    livecheck.type      none
} else {
    livecheck.type      pypi
}