# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-zope-event
python.rootname     zope.event
version             5.0
revision            0
categories-append   zope
license             ZPL-2.1
maintainers         nomaintainer
platforms           darwin
description         Very basic event publishing system
long_description    The zope.event package provides a simple event system, including an \
                    event publishing API, intended for use by applications which are \
                    unaware of any subscribers to their events, and a very simple \
                    event-dispatching system on which more sophisticated event \
                    dispatching systems can be built.
supported_archs     noarch
platforms           {darwin any}

homepage            https://github.com/zopefoundation/zope.event

python.versions     27 35 36 37 38 39 310 311 312

checksums           rmd160  b18ff29ee3dfd489a8f3f20025a845c38aa2ceaf \
                    sha256  bac440d8d9891b4068e2b5a2c5e2c9765a9df762944bda6955f96bb9b91e67cd \
                    size    17350

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

    if {${python.version} <= 36} {
        version             4.6
        revision            0

        checksums           rmd160  97fd3e3cf7c0b0d147761d543d3743a697d301f1 \
                            sha256  81d98813046fc86cc4136e3698fee628a3282f9c320db18658c21749235fce80 \
                            size    17430

        livecheck.type none
    }

    variant tests description {Add dependencies needed to run tests} {
        test.run        yes
        depends_build   port:py${python.version}-nose
        test.cmd        nosetests-${python.branch}
        test.args
        test.target
    }
}
