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

PortSystem          1.0
PortGroup           python 1.0

name                py-pyficache
version             0.2.3
platforms           darwin
supported_archs     noarch
license             GPL-3+
maintainers         nomaintainer

description         A Python module to read and cache lines and file \
                    info of a Python program
long_description    The pyficache module allows one to get any line \
                    from any file, caching lines of the file on first \
                    access to the file. Although the file may be any \
                    file, the common use is when the file is a Python \
                    script since parsing of the file is done to figure \
                    out where the statement boundaries are.
homepage            https://code.google.com/p/pyficache

master_sites        https://pypi.python.org/packages/source/p/pyficache
distname            pyficache-${version}
checksums           rmd160  25f368784f48c6567b80708369dbf6df09e2e30f \
                    sha256  78b7c4d2a9e94545fc36f1aa460b4fbe2f7e0af8bede28ddf2d05b4b5753ad0e

python.versions     27 34

if {${subport} ne ${name}} {
    depends_lib-append  port:py${python.version}-coverage \
                        port:py${python.version}-pygments
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       [lindex ${master_sites} 0]
    livecheck.regex     {pyficache-(\d(?:\.\d+)+)}
}