# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-functools32
version             3.2.3-2
categories-append   devel
platforms           darwin
supported_archs     noarch
license             PSF
maintainers         nomaintainer

description         Backport of the functools module from Python 3.2.3
long_description    This is a backport of the functools standard \
                    library module from Python 3.2.3 for use on \
                    Python 2.7. It includes new features 'lru_cache' \
                    (Least-recently-used cache decorator).
homepage            https://github.com/MiCHiLU/python-functools32

set realName functools32

master_sites        pypi:f/$realName
distname            $realName-${version}

checksums           rmd160  f96924aa207ac835157f734a785216f57cdb123a \
                    sha256  f6253dfbe0538ad2e387bd8fdfd9293c925d63553f5813c4e587745416501e6d \
                    size    31171

python.versions     27

if {${subport} ne ${name}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}$docdir
        xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE ${destroot}$docdir
    }
    livecheck.type  none
} else {
    livecheck.type  pypi
}