# -*- 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.hookable
name                py-zope-hookable
version             5.0.1
revision            0
worksrcdir          ${real_name}-${version}
distfiles           ${real_name}-${version}${extract.suffix}
categories-append   zope
license             ZPL-2.1
maintainers         {mps @Schamschula} openmaintainer
description         This package supports the efficient creation of “hookable” objects, \
                    which are callable objects that are meant to be optionally replaced.
long_description    ${description}
platforms           darwin
homepage            https://pypi.python.org/pypi/${real_name}
master_sites        pypi:z/${real_name}

python.versions     27 36 37 38 39

checksums           rmd160  869282b14b2c79c85e2ebebf704d6fd8975e0370 \
                    sha256  29d07681a78042cdd15b268ae9decffed9ace68a53eebeb61d65ae931d158841 \
                    size    24401

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

    if {${python.version} == 27} {
        depends_lib-append  \
                    port:py${python.version}-future
    }

    livecheck.type      none
} else {
    livecheck.type  regex
    livecheck.regex ${real_name}-(\[0-9.\]+)${extract.suffix}
}
