# -*- 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.18 v
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  798d7b4f158b599ca5ac6ca6efe92a688de6bb55 \
                        sha256  8a228e4feab900f45db14bde147e8c6f820ec2413631b932e3c15bc1f0545995 \
                        size    133200

go.vendors          golang.org/x/xerrors \
                        lock    9bdfabe68543 \
                        rmd160  eee9929ac1c0380402c45b388077c5c505f13311 \
                        sha256  dc1be1d7efb43643507e87352ae7161883c48cb5116a20a1739ab93ab558bccf \
                        size    13661 \
                    golang.org/x/sys \
                        lock    v0.38.0 \
                        rmd160  116c6683aefacc223a60af4811ab8d97c4d3f6b0 \
                        sha256  5a63f5eb3814a66b1988ad9ff703c8d54d79463eed52a49f546091e17682cbc7 \
                        size    1535499 \
                    github.com/mattn/go-runewidth \
                        lock    v0.0.19 \
                        rmd160  b0f62e2f1c2086189f2ed14ad635733c4e5ced56 \
                        sha256  6f5a00cdfbf4d88d05406a07bb95c34dc0abc2f65f15e9c5ca35814f4008b82f \
                        size    20550 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.20 \
                        rmd160  ef20ccdf87de8b704c0c7118625b2beb31d8f1b4 \
                        sha256  397549e98cf5d40df585f31dc7902f017c37be88c64311dd2b4aeccab4009949 \
                        size    4717 \
                    github.com/itchyny/timefmt-go \
                        lock    v0.1.7 \
                        rmd160  1359cdcdecdec83ec4290fe661d0eba6230c8874 \
                        sha256  68e65fc18274f2e9be835ea655e9926fdfc1ac1fe2ed46254ad2d79db27fa614 \
                        size    15117 \
                    github.com/itchyny/go-yaml \
                        lock    fca9a0999f15 \
                        rmd160  4d41c6c2ae218dcb3e7382aed6b6721b7b7e772f \
                        sha256  d2c70624a6b976bb2ba8dd2c7dc40a623b97333e9554804448803e8853a3d837 \
                        size    114424 \
                    github.com/google/go-cmp \
                        lock    v0.5.4 \
                        rmd160  e53e85e2f7651ce4e0dd20f8621380a60d9d5cc0 \
                        sha256  4b3ea98b1c2c83814a405d824c68521315dbddd9dada9a9992d1abebd2cca290 \
                        size    101028 \
                    github.com/clipperhouse/uax29 \
                        lock    v2.3.0 \
                        rmd160  c631dc3d145e3f851bb45d80328b13470a5930d5 \
                        sha256  19105bed8d9e3f811f2a798dca9f88d882651850cca57347fbc788779abba1d5 \
                        size    282102 \
                    github.com/clipperhouse/stringish \
                        lock    v0.1.1 \
                        rmd160  83e859a426d4041c5fc3d756c082786bd4d8132c \
                        sha256  8ff258affd8bbada149f5ef799bf99391494faa86a9fa88f04c26c51db63db12 \
                        size    2316908
