# -*- 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 92076 2012-04-17 12:32:32Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

name                py-celery
version             2.5.3
revision            0
categories-append   devel
license             BSD
platforms           darwin
supported_archs     noarch

maintainers         stromnov openmaintainer

description         Distributed Task Queue

long_description    Celery is an asynchronous task queue/job queue based \
                    on distributed message passing

homepage            http://celeryproject.org/
master_sites        http://pypi.python.org/packages/source/c/celery/

distname            celery-${version}

checksums           rmd160  87b36c9148925f8cbe50a93af796345af5fc55b0 \
                    sha256  30bef144a62fb978dd81bef848f30f8df30b5e9a22171dc582b8d3332acae726

python.default_version  27
python.versions     26 27

if {$subport != $name} {
    depends_lib     port:py${python.version}-distribute \
                    port:py${python.version}-kombu \
                    port:py${python.version}-anyjson \
                    port:py${python.version}-amqplib

    depends_run     port:celery_select

    select.group    celery
    select.file     ${filespath}/py${python.version}-celery

    notes "
To make the Python ${python.branch} version of py-celery the one that is run\
when you execute the commands without a version suffix, e.g. 'celeryd' or\
'celeryctl', run:

port select --set ${select.group} [file tail ${select.file}]
"
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "celery-(\\d+(?:\\.\\d+)*)${extract.suffix}"
