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

github.setup        jpmens jo 1.9
github.tarball_from archive
revision            0

homepage            \
    https://jpmens.net/2016/03/05/a-shell-command-to-create-json-jo

description         \
    JSON output from a shell - a small utility to create JSON objects

long_description    {*}${description}

categories          textproc
installs_libs       no
license             GPL-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  11cb8b524c2fa49896df24f1a41b7fb6b15749df \
                    sha256  87b3e40584730d6f8b8cdb9deb1700173d25dc54403fcb17d2c1d9def2ba8102 \
                    size    109225

depends_build-append \
                    port:pkgconfig \
                    port:pandoc

configure.env-append \
                    bashcompdir=${prefix}/share/bash-completion/completions

destroot.env-append DESTDIR=${destroot}

use_autoreconf      yes

post-destroot {
    move \
        ${destroot}${prefix}/share/bash-completion/completions/${name}.bash \
        ${destroot}${prefix}/share/bash-completion/completions/${name}
}
