# -*- 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 120255 2014-05-20 20:27:28Z mf2k@macports.org $

PortSystem          1.0
PortGroup python    1.0

name                py-tagcloud
version             0.3.5
platforms           darwin
supported_archs     noarch
maintainers         nomaintainer
description         create simple tag clouds inspired by http://www.wordle.net/
long_description    ${description}
license             BSD

homepage            https://pypi.python.org/pypi/pytagcloud
distname            pytagcloud-${version}
master_sites        https://pypi.python.org/packages/source/p/pytagcloud/

checksums           rmd160  bfddcc17caed92400bb9e8f704ce86cfc384dba6 \
                    sha256  4d56539f0c80ed96f0d320fa0667db3f2d0cc3d2925f84522b82f48f6c0973e9

python.versions     24 25 26 27
python.default_version  27

if {${name} ne ${subport}} {
    depends_run-append  port:py${python.version}-game \
                        port:py${python.version}-simplejson

    livecheck.type      none
} else {
    livecheck.type     regex
    livecheck.url       ${homepage}
    livecheck.regex     "<a href=\"/pypi/pytagcloud/.*?\">(\\d+(?:\\.\\d+)*)</a>"
}
