# -*- 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.5
revision                0

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  fdfd300c3a93da9fe3d05790d03b601c8b786efd \
                        sha256  f8ac0e4bc427b0ee8a3bdb07a254cc9df6b6036cd440f6c425e2e519cdbda78a \
                        size    594042

python.default_version  312

depends_build-append    port:py${python.version}-setuptools

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/
}
