# -*- 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-roman
version             4.1
revision            0

categories-append   textproc
license             ZPL-2.1
platforms           {darwin any}
supported_archs     noarch
maintainers         {aronnax @lpsinger} openmaintainer

description         Integer to Roman numerals converter
long_description    {*}${description}.

homepage            https://github.com/zopefoundation/roman

checksums           rmd160  ebfa4afbfd864715ba59d5caf3d179442183cf49 \
                    sha256  4da8a200529a730822a27f1704b3ac70bc907141d3bc558115fb8e36af13b412 \
                    size    7005

python.versions     27 35 36 37 38 39 310 311 312 313

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

    if {${python.version} <= 36} {
        version     3.3
        revision    0
        checksums   rmd160  793b600babe15e5cc811f9eb9fe2fe931378a180 \
                    sha256  2c46ac8db827d34e4fa9ccc0577e7f0b0d84f16ffe112351bd4f1ec2eb12d73f \
                    size    7577
    }

    test.run                yes
    python.test_framework   {}
    test.cmd                ${python.bin} setup.py test

    livecheck.type          none
}
