# -*- 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

set real_name       zope.component
name                py-zope-component
version             5.0.0
revision            0
categories-append   zope
license             ZPL-2.1
maintainers         {mps @Schamschula} openmaintainer
description         This package represents the core of the Zope Component Architecture.
long_description    {*}${description}
platforms           darwin
homepage            https://pypi.python.org/pypi/${real_name}
master_sites        pypi:z/${real_name}
distfiles           ${real_name}-${version}${extract.suffix}

worksrcdir          ${real_name}-${version}

python.versions     27 35 36 37 38 39

checksums           rmd160  7a515791079c2a4b64cadc0d204fec8857381317 \
                    sha256  df541a0501c79123f9ac30c6686a9e45c2690c5c3ae4f2b7f4c6fd1a3aaaf614 \
                    size    90768

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

    depends_lib-append  \
                    port:py${python.version}-zope-event \
                    port:py${python.version}-zopeinterface
} else {
    livecheck.type  regex
    livecheck.regex ${real_name}-(\[0-9.\]+)${extract.suffix}
}
