# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=Portfile:et:sw=4:ts=4:sts=4
# $Id: Portfile 119505 2014-04-28 12:44:08Z g5pw@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-colorama
version             0.3.1
categories-append   devel
license             Python
platforms           darwin
supported_archs     noarch

maintainers         g5pw openmaintainer

description         Cross-platform colored terminal text.
long_description    ${description} Makes ANSI escape character sequences, for \
                    producing colored terminal text and cursor positioning, work \
                    under MS Windows.

homepage            http://code.google.com/p/colorama/
master_sites        http://pypi.python.org/packages/source/c/colorama/
python.versions     25 26 27 31 32 33 34


if {${name} ne ${subport}} {
    distname            colorama-${version}

    checksums           rmd160  579b6287440d32a2156e02ce3dfc68536bb18336 \
                        sha256  012261ba542a5b18076cac0eaa3892ebe6098e170591e08a8fc0fbf8ab3d5c90

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "colorama-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
