# -*- 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-text-unidecode
version             1.3
revision            0

categories-append   textproc
platforms           darwin
supported_archs     noarch
license             GPL-2+
maintainers         {reneeotten @reneeotten} openmaintainer

description         The most basic Text::Unidecode port
long_description    ${description}

homepage            https://github.com/kmike/text-unidecode/

checksums           rmd160  2bad1ffba32b00bb5a67b38ccb365ad6b376d254 \
                    sha256  bad6603bb14d279193107714b288be206cac565dfa49aa5b105294dd5c4aab93 \
                    size    76885

python.versions     27 35 36 37 38 39 310

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_test-append \
                    port:py${python.version}-pytest

    test.run        yes
    test.cmd        py.test-${python.branch}
    test.target
    test.env        PYTHONPATH=${worksrcpath}/build/lib

    livecheck.type  none
}
