# -*- 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
PortGroup           github 1.0

github.setup        beautify-web js-beautify 1.10.3 v
revision            0
name                py-jsbeautifier

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

description         JS beautifier written in Python
long_description    ${description}

homepage            https://beautifier.io/

checksums           rmd160  c37340d41235f462c1541203cd9fc6adb4fefe13 \
                    sha256  ba6966a6393583dc0de94de7f83625c0a14b3dbb139bec10724fe38ddb9242ae \
                    size    1011849

python.versions     27 37 38

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

    build.dir       ${worksrcpath}/python

    test.run        yes
    test.env        PYTHONPATH=${worksrcpath}/python
    test.dir        ${worksrcpath}
    test.cmd        ${python.bin}
    test.target     python/js-beautify-test.py

    livecheck.type  none
} else {
    github.livecheck.regex  {([0-9.]+)}
}
