# -*- 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
set real_name       zope.event
version             4.5.0
revision            0
python.versions     27 36 37 38 39
maintainers         {mps @Schamschula} openmaintainer
platforms           darwin
description         Very basic event publishing system
license             ZPL-2.1

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.

categories-append   zope

homepage            https://pypi.python.org/pypi/${real_name}
master_sites        pypi:z/${real_name}
distname            ${real_name}-${version}

checksums           rmd160  1de457c479b1c8421ee81f7106ca7d02a924fb8c \
                    sha256  5e76517f5b9b119acf37ca8819781db6c16ea433f7e2062c4afc2b6fbedb1330 \
                    size    18723

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

    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.target
    }
} else {
    livecheck.type      regex
    livecheck.regex     ${real_name}-(\[0-9.\]+)${extract.suffix}
}

# remove after 2021-09-19
subport py35-${python.rootname} {
    replaced_by py37-${python.rootname}
    PortGroup obsolete 1.0
}
