# -*- 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.7.1 jq-
github.tarball_from releases
revision            1

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  847594ee8355e6ddd047e31e72b0e6ac6397494f \
                    sha256  478c9ca129fd2e3443fe27314b455e211e0d8c60bc8ff7df703873deeee580c2 \
                    size    1950645

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
