# -*- 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 119967 2014-05-12 10:23:47Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-librabbitmq
version             1.5.1
revision            0
categories-append   devel
platforms           darwin
license             MPL-1.1 MIT

python.versions     26 27

maintainers         stromnov openmaintainer

description         AMQP Client using the rabbitmq-c library.
long_description    ${description}

homepage            http://github.com/celery/librabbitmq
master_sites        http://pypi.python.org/packages/source/l/librabbitmq/

distname            librabbitmq-${version}

checksums           rmd160  335383c1802a9f882b07e697df3ed4a758debc5d \
                    sha256  389ec8ef46f0f9b95322c4b33e4f2a67239fc15e38a237da4fca1555065e359c

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

    # Fix conflict with billiard (#42577)
    post-extract {
        delete ${worksrcpath}/funtests
    }

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {librabbitmq-(\d+(?:\.\d+)*)\.[tz]}
}
