# -*- 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-jsbeautifier
version             2.0.3
revision            0

categories-append   textproc
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         JS beautifier written in Python
long_description    {*}${description}

homepage            https://beautifier.io

checksums           rmd160  8e5c8e17e45cbbd939a8a245996490796942b962 \
                    sha256  9579d4e9dbaa00383f3efdff4c98c8140bb85ba319398e8b97cdaba27abd6ba3 \
                    size    74659

python.versions     311 312 313 314

if {${subport} ne ${name}} {
    depends_lib-append \
                    port:py${python.version}-editorconfig \
                    port:py${python.version}-six

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