# -*- 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.1 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  e179864f37a296896e63fbed40373f28a48f9e2f \
                    sha256  2be64e7129cecb11d5906290eba10af694fb9e3e7f9fc208a311dc33ca837eb0 \
                    size    2026798

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
