# -*- 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-pluggy
version             1.6.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {gmail.com:pedro.salgado @steenzout} openmaintainer

description         Plugin and hook calling mechanisms for Python
long_description    This is the plugin manager as used by pytest but \
                    stripped of pytest specific details.

homepage            https://github.com/pytest-dev/pluggy

checksums           rmd160  5839fcfc432c2aafe7eb8df37e9471c4d53db0c5 \
                    sha256  7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3 \
                    size    69412

python.versions     27 310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     0.13.0
        revision    0
        checksums   rmd160  29a71452c7299e6f832c095a8973e444e1be58ce \
                    sha256  fa5fa1622fa6dd5c030e9cad086fa19ef6a0cf6d7a2d12318e10cb49d6d68f34 \
                    size    57726

        depends_lib-append \
                    port:py${python.version}-importlib-metadata

    }

    depends_build-append \
                        port:py${python.version}-setuptools_scm

    test.run    yes

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

    livecheck.type  none
}
