# -*- 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.7
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  19cc7c7230b5c7db0a490fc898d273f1e974e923 \
                        sha256  63481e34d92715781e1b094eca7d76d122a14489463d45b7f3e8180f44ea3a10 \
                        size    616951

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