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

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

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

python.versions     27 35 36 37 38

maintainers         {stromnov @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        pypi:[string index ${python.rootname} 0]/${python.rootname}

distname            ${python.rootname}-${version}

checksums           rmd160  6606e0b65d1f711802867400c03b28ec6b9f41d8 \
                    sha256  4c4532aa683f170f40bd76f928b70bc06ff171a959e06e71bf35f2f9d6031ef9 \
                    size    1398430

if {${name} ne ${subport}} {
    # celery depends on pkg_resources from setuptools
    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-kombu \
                        port:py${python.version}-tz \
                        port:py${python.version}-billiard

    depends_run-append  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. 'celery', run:

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

    livecheck.type      none
}