# -*- 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-cchardet
version             2.1.7
revision            0
categories-append   devel textproc
license             MIT
platforms           darwin
maintainers         {toby @tobypeterson} openmaintainer
description         cChardet is high speed universal character encoding detector.
long_description    ${description}

homepage            https://github.com/PyYoshi/cChardet

checksums           rmd160  8e4588db69c55cc9531e66dd8d73221830d7c9d1 \
                    sha256  c428b6336545053c2589f6caf24ea32276c6664cb86db817e03a94c60afa0eaf \
                    size    653617

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     2.1.5
        revision    1
        checksums   rmd160  c30f3589db681127984288dd8ad8b348e7719e31 \
                    sha256  240efe3f255f916769458343840b9c6403cf3192720bc5129792cbcb88bf72fb \
                    size    653280
    } elseif {${python.version} == 35} {
        version     2.1.6
        revision    1
        checksums   rmd160  514768dad210d6c657d5a107b37003469b7e1863 \
                    sha256  b76afb2059ad69eab576949980a17413c1e9e5a5624abf9e43542d8853f146b3 \
                    size    653913
    }

    depends_build-append \
                    port:py${python.version}-setuptools

    livecheck.type  none
}
