# -*- 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 107146 2013-06-19 20:22:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-amqp
version             1.2.0
revision            0
categories-append   devel
license             LGPL-2.1+
platforms           darwin
supported_archs     noarch

maintainers         stromnov openmaintainer

description         Low-level AMQP client for Python (fork of amqplib).
long_description    ${description}

homepage            http://github.com/celery/py-amqp
master_sites        http://pypi.python.org/packages/source/a/amqp/

distname            amqp-${version}

checksums           rmd160  a7f0187559948587d8f700d1fe5b5c56238928df \
                    sha256  aadadfac49adbab85c92ab343fb529209e91b86ba9a2d82bd33257162a5d9014

python.versions     26 27 31 32 33

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