# -*- 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             5.2
revision            1

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  22e4f1c108515d4d574d25232b4748c4d5264921 \
                    sha256  275fe9f46290f7d0ffaea1c33251b92b8e463ace23660508ceef522e7587cb6f \
                    size    8185

patchfiles-append   pyproject.toml.patch

python.versions     27 311 312 313 314 315

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

    if {${python.version} == 27} {
        version             3.3
        revision            1
        checksums           rmd160  793b600babe15e5cc811f9eb9fe2fe931378a180 \
                            sha256  2c46ac8db827d34e4fa9ccc0577e7f0b0d84f16ffe112351bd4f1ec2eb12d73f \
                            size   7577
        patchfiles-delete   pyproject.toml.patch
    }

    test.run                yes
    test.args               src/tests.py

    livecheck.type          none
}
