# -*- 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 118579 2014-04-05 04:20:13Z hum@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-jubatus-client
set real_name       jubatus
version             0.5.2
python.versions     26 27
python.default_version 27
categories-append   devel
maintainers         hum openmaintainer

description         a Python client for jubatus, a highly distributed online machine learning system
long_description    ${description}

homepage            http://pypi.python.org/pypi/${real_name}
platforms           darwin
license             LGPL-2.1

master_sites        http://pypi.python.org/packages/source/j/${real_name}/
distname            ${real_name}-${version}
checksums           rmd160  61f1a445d956eb7f95fa1d9f521ee95351aab09c \
                    sha256  c2c14af46e0e396ec8974cadace93b0800d7b1708d306db78dae4ce1fd64f08e

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

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       [lindex ${master_sites} 0]
    livecheck.regex     "${real_name}-(\\d+(?:\\.\\d+)*(-p\\d+)?)${extract.suffix}"
}
