# -*- 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$

PortSystem          1.0
PortGroup           python 1.0

name                py-carrot
version             0.10.7
categories-append   devel
license             BSD
platforms           darwin
supported_archs     noarch
maintainers         stromnov openmaintainer

description         AMQP Messaging Framework for Python.

long_description    ${description}

homepage            http://ask.github.com/carrot/
master_sites        https://pypi.python.org/packages/source/c/carrot/

distname            carrot-${version}

checksums           md5     530a0614de3a669314c3acd4995c54d5 \
                    sha1    3295a79a93ac6d77f41d830057af3ee8df97567b \
                    rmd160  be0cce6da09f2acf106e1d3a4947b8b587d02edd

python.versions     26

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/carrot/json
    livecheck.regex     "carrot-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}