# -*- 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.26.3
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  e389991b53fa38acc27935878efba0b6eaa70a44 \
                        sha256  19fcfa9c3d7ad4261bf9dd4accb4a1038c82902efe2463723fd2a3f163ce1ae9 \
                        size    831073

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