# -*- 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-typing
version             3.10.0.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             PSF
maintainers         {gmail.com:allan.que @aque} openmaintainer

description         Type hints for Python
long_description    Typing is a backport of the standard library \
                    'typing' module to Python versions older than 3.5. \
                    It defines a standard notation for Python function \
                    and variable type annotations. The notation can be \
                    used for documenting code in a concise, standard \
                    format, and it has been designed to also be used \
                    by static and runtime type checkers, static \
                    analyzers, IDEs and other tools.

homepage            https://pypi.python.org/pypi/${python.rootname}/

checksums           rmd160  15dea167ea192a7b855c96298af8455e7c2e2aba \
                    sha256  13b4ad211f54ddbf93e5901a9967b1e07720c1d1b78d596ac6a439641aa1b130 \
                    size    78962

# keep version for Python < 3.4, these are (indirect) dependencies of py-virtualenv
# See <https://trac.macports.org/wiki/Python#VersionPolicy>
# do not add subports for python 3.5 and later; module is in stdlib.
python.versions     27

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

    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
}
