# -*- 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-chardet
version             5.2.0
revision            0

categories-append   devel textproc
license             LGPL-2.1+
platforms           {darwin any}
supported_archs     noarch
maintainers         {aronnax @lpsinger} openmaintainer
description         Universal character encoding detector
long_description    Character encoding auto-detection in Python. \
                    As smart as your browser.

checksums           rmd160  2d601ee32e199248ff0ee1fbd983789c2c7384fe \
                    sha256  1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7 \
                    size    2069618

python.versions     27 39 310 311 312 313 314

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        version     4.0.0
        revision    0
        checksums   rmd160  03bd0ba9cb2b0a150bed313cedf1c824439705b5 \
                    sha256  96481c3479f67911078b49063daa4978e4a7425d4a33353966c00b6208e732b9 \
                    size    1924276

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

    test.run        yes
}
