# -*- 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 120329 2014-05-23 14:00:13Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-jug
version             1.0
revision            0
platforms           darwin
license             MIT

python.versions     27 33 34

maintainers         stromnov openmaintainer

description         A Task Based Parallelization Framework
long_description    ${description}

homepage            http://luispedro.org/software/jug
master_sites        http://pypi.python.org/packages/source/J/Jug/

distname            Jug-${version}

checksums           rmd160  be1d9b7111dbee9bb786ff51b2ea34d00ece2072 \
                    sha256  e580e11a43c51291957fb27c6c1ad04e3d592aa80314b4c55c6255b86b8b4839

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools

    depends_lib-append      port:py${python.version}-six \
                            port:py${python.version}-redis

    livecheck.type          none
} else {
    livecheck.type          regex
    livecheck.url           ${master_sites}
    livecheck.regex         {Jug-(\d+(?:\.\d+)*)\.[tz]}
}
