# -*- 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 103823 2013-03-08 07:24:45Z g5pw@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-colorama
version             0.2.5
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


if {${name} != ${subport}} {
    distname            colorama-${version}

    checksums           rmd160  447ba0791b07dc7ae24883d9242c1325f9556e4d \
                        sha256  55bad9c74fbda47c558d581e287cfd9bfff48f196caedcff76bf2fb17149b80b

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