# -*- 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-filechunkio
version             1.6

platforms           darwin
supported_archs     noarch
license             MIT
maintainers         {petr @petrrr} openmaintainer

description         FileChunkIO represents a chunk of an OS-level file containing bytes data
long_description    ${description}

homepage            https://bitbucket.org/fabian/filechunkio

set pypi_path       [string index ${python.rootname} 0]/${python.rootname}
master_sites        pypi:${pypi_path}
distname            ${python.rootname}-${version}

checksums           md5     c168a11ad94cd2ec42a219f0f8869a7b \
                    rmd160  79d8362d9eb5c0762f2468056d8be8375d0750a1 \
                    sha256  163948052cd274daddfcde9cec9cb5e04ac19d7bb91606cdc6a305b0428a0e70

python.versions     27 34 35 36

if {${name} ne ${subport}} {
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/${python.rootname}/json
    livecheck.regex "\"${python.rootname}-(\[.\\d\]+)\\${extract.suffix}\""
}