# -*- 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 119069 2014-04-16 13:51:42Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-billiard
version             3.3.0.17
revision            0
categories-append   devel
platforms           darwin
license             BSD

python.versions     25 26 27 31 32 33 34

maintainers         stromnov openmaintainer

description         Python multiprocessing fork.
long_description    ${description}

homepage            http://github.com/ask/billiard
master_sites        http://pypi.python.org/packages/source/b/billiard/

distname            billiard-${version}

checksums           rmd160  ebac7561774417171bb602cadd2e37b9948dd10a \
                    sha256  f55c64d5db5ab98bdc8584917f6d34abb74936210a4496ad03ae672544249d73

# billiard 3.x requires Python 2.7 or 3.3
if {${name} ne ${subport} && [lsearch {25 26 31 32} ${python.version}] != -1} {
    version             2.7.3.34
    revision            0
    distname            billiard-${version}
    checksums           rmd160  d04570948ec9744505cb9c387a5b2326a87092d3 \
                        sha256  7c5638aa83d23e6339f39a2f28830f9c2ec5467a1c2bc2d6f199f0507653f36d
}

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     {billiard-(\d+(?:\.\d+)*)\.[tz]}
}
