# -*- 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 118177 2014-03-24 21:20:15Z g5pw@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-six
version             1.6.1
categories-append   devel
license             MIT
platforms           darwin
supported_archs     noarch

maintainers         g5pw openmaintainer

description         ${name} is a Python 2 and 3 compatibility library.
long_description    ${description} It provides utility functions for smoothing\
                    over the differences between the Python versions with the goal\
                    of writing Python code that is compatible on both Python versions.

homepage            http://pypi.python.org/pypi/six/
master_sites        http://pypi.python.org/packages/source/s/six/
distname            six-${version}

checksums           rmd160  74e34e6f5d1da70996bfb981d2f78734f52ef379 \
                    sha256  d4392a7c8d91b005c002568a85faf617c67241c8cd8399cc395e8f1005aff80d

python.versions     25 26 27 31 32 33 34

if {${name} ne ${subport}} {
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "six-(\\d+(\\.\\d+){2})${extract.suffix}"
}
