# -*- 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                    jc
version                 1.25.6
revision                1

homepage                https://pypi.org/project/jc

description             ${name} converts the output of popular command-line \
                        tools and file-types to JSON.

long_description        {*}${description} This allows for piping the output \
                        to tools like jq, and/or for easier parsing within \
                        scripts.

categories              sysutils textproc python
license                 MIT
maintainers             {gmail.com:herby.gillot @herbygillot} \
                        openmaintainer
supported_archs         noarch
platforms               {darwin any}

checksums               rmd160  057bc6c28eba3ecde62f68cd73172fcf2b48faeb \
                        sha256  27f58befc7ae0a4c63322926c5f1ec892e3eac4a065eff3b07cfe420a6924a07 \
                        size    602542

python.default_version  314

depends_lib-append      port:py${python.version}-ruamel-yaml  \
                        port:py${python.version}-pygments     \
                        port:py${python.version}-xmltodict

post-destroot {
    xinstall -d ${destroot}${prefix}/share/man/man1
    xinstall -m 0444 \
        ${worksrcpath}/man/${name}.1 \
        ${destroot}${prefix}/share/man/man1/
}
