# -*- 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        jqlang jq 1.8.0 jq-
github.tarball_from releases
revision            0

categories          sysutils
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

description         A lightweight and flexible command-line JSON processor
long_description\
    jq is like sed for JSON data – you can use it to slice and filter and \
    map and transform structured data with the same ease that sed, awk, \
    grep and friends let you play with text.

homepage            https://jqlang.github.io/jq/

checksums           rmd160  5b9c98f802207acd41223e140ed636f976ea22a0 \
                    sha256  91811577f91d9a6195ff50c2bffec9b72c8429dc05ec3ea022fd95c06d2b319c \
                    size    1908285

depends_lib-append  port:oniguruma6

# The documentation requires some ruby dependencies which are not available as
# ports. However, the manpage is already distributed in compiled form and will
# be installed.
configure.args      --disable-docs \
                    --disable-silent-rules \
                    --with-oniguruma=${prefix} \
                    --disable-maintainer-mode

livecheck.type      regex
livecheck.regex     ${name}-(\\d+(\.\\d+)+)\.tar

test.run            yes
test.target         check
