# -*- 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 107221 2013-06-21 23:17:04Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

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

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  6af95b1cbb4187452816cc8bf097d8557b7248fb \
                    sha256  645763262ad61df3feec618c3cbe1226710a364fca57256f61c53b0101abd880

python.versions     26 27

if {$subport != $name} {
    depends_build       port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "librabbitmq-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
