# -*- 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 128558 2014-11-23 13:29:53Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

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

python.versions     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  1a4debacf5ff9d3eddb457814b50768c18698e0d \
                    sha256  604a226b9fe3f9e439353702a731f2a39cf771882e68bca020cb224d9b990c49

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]}
}
