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

go.setup            github.com/itchyny/gojq 0.12.17 v
github.tarball_from archive
revision            0

description         Pure Go implementation of jq

long_description    This is an implementation of jq command written in Go \
                    language. It attempts to fix some bugs that still exist \
                    in jq.

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

build.cmd           make
build.target        build

patch {
    reinplace {s|GO111MODULE=on|GO111MODULE=off|g} ${worksrcpath}/Makefile
}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  166333768375eb664f858dcd96c68a0d9a519d85 \
                        sha256  86b8393d04cb40db09a8de96199f358c1e49bbd7d1ace5c95496cc7cc4102b3b \
                        size    132749

go.vendors          gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/check.v1 \
                        lock    20d25e280405 \
                        rmd160  412aa0d109919182ff84259e9b5bbc9f24d78117 \
                        sha256  233f8faf427ce6701ac3427f85c28bc6b6ae7cdc97a303a52873c69999223325 \
                        size    30360 \
                    golang.org/x/xerrors \
                        lock    9bdfabe68543 \
                        rmd160  eee9929ac1c0380402c45b388077c5c505f13311 \
                        sha256  dc1be1d7efb43643507e87352ae7161883c48cb5116a20a1739ab93ab558bccf \
                        size    13661 \
                    golang.org/x/sys \
                        lock    v0.20.0 \
                        rmd160  3d0ae20090bc3c842511da5c580192dba48d3e43 \
                        sha256  ce54515eaa1296d15bbf4ad58526338eeedd046e24a8ee2840e7c3f0117faf33 \
                        size    1495244 \
                    github.com/rivo/uniseg \
                        lock    v0.4.7 \
                        rmd160  a9056dc9a2a80aa9c46d0ff9e54f9e2e5a498c41 \
                        sha256  abc6a2f17b64b34b8a0c56eb9d0b53886ebbe0c88d467755c09c7fa696a16677 \
                        size    458166 \
                    github.com/mattn/go-runewidth \
                        lock    v0.0.15 \
                        rmd160  702d468077550681ac11c3c2f3f5c9f98a868798 \
                        sha256  a6b5f47ffe7329895a605c356ff806dfd50b536bbc87af77773e55ad6e52d2db \
                        size    18287 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.20 \
                        rmd160  ef20ccdf87de8b704c0c7118625b2beb31d8f1b4 \
                        sha256  397549e98cf5d40df585f31dc7902f017c37be88c64311dd2b4aeccab4009949 \
                        size    4717 \
                    github.com/itchyny/timefmt-go \
                        lock    v0.1.6 \
                        rmd160  99551280509a955329da38d35fea28174a93af61 \
                        sha256  c8d03cbfb0111d827cc0bd98230d180ed3bc603bae95e7b43fe6fcb7748093da \
                        size    15081 \
                    github.com/google/go-cmp \
                        lock    v0.5.4 \
                        rmd160  e53e85e2f7651ce4e0dd20f8621380a60d9d5cc0 \
                        sha256  4b3ea98b1c2c83814a405d824c68521315dbddd9dada9a9992d1abebd2cca290 \
                        size    101028
