# -*- 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
# $Id: Portfile 106141 2013-05-16 10:49:19Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-zmq
version             13.1.0
revision            0
categories-append   devel net
license             LGPL
platforms           darwin

python.versions     26 27 31 32 33

maintainers         gmail.com:jrjsmrtn openmaintainer

description         Python bindings for ØMQ

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

homepage            http://github.com/zeromq/pyzmq
master_sites        http://pypi.python.org/packages/source/p/pyzmq/

distname            pyzmq-${version}

checksums           rmd160  2d7d79240c2544241830c68e5b9ba12bd8e0f7bd \
                    sha256  8e6fbe2999204456216a2da62429277117ed1761326bce00e48a0443ae3574a7

if {$subport != $name} {
    depends_lib-append     port: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.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "pyzmq-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
