# -*- 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
PortGroup           legacysupport 1.0

name                py-zmq

version             19.0.2
checksums           rmd160 008be479b08313768a8cba8b20a2d813101be4a0 \
                    sha256 296540a065c8c21b26d63e3cea2d1d57902373b16e4256afe46422691903a438 \
                    size   1156195
revision            0

python.versions     27 35 36 37 38

maintainers         {gmail.com:jrjsmrtn @jrjsmrtn} {michaelld @michaelld} openmaintainer

categories-append   devel net
platforms           darwin
license             LGPL

description         Python bindings for 0MQ

long_description    PyZMQ is a lightweight and super-fast messaging library \
                    built on top of the ZeroMQ library.

homepage            https://github.com/zeromq/pyzmq
master_sites        pypi:p/pyzmq

distname            pyzmq-${version}

if {${name} ne ${subport}} {
    depends_lib-append     path:lib/libzmq.dylib:zmq

    post-patch {
        set setup_cfg ${worksrcpath}/setup.cfg
        file copy ${worksrcpath}/setup.cfg.template ${setup_cfg}
        reinplace "s|/usr/local|${prefix}|g" ${setup_cfg}
    }
}

livecheck.name      pyzmq
livecheck.regex     {"filename":"pyzmq-([0-9.]+).tar.gz",}
