# -*- 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.20 v
go.toolchain_min    1.24.0
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  bbf45dbf7bb3bac2c2c099d641c74120a58bc312 \
                        sha256  7a52db203c779c88eea3ad70d6e7f10daac804e0def4198a5766a41bf6f00141 \
                        size    141471

go.vendors          golang.org/x/sys \
                        lock    v0.41.0 \
                        rmd160  bca30945ad277381830834fbdf576b4e05185da8 \
                        sha256  669fcb2dc4559b24075e581f84a4f7340446aec981432fea7f3ab80f083de3d3 \
                        size    1538084 \
                    github.com/mattn/go-runewidth \
                        lock    v0.0.31 \
                        rmd160  8161689ef4dad58b44f7e289775689bf249e5e6d \
                        sha256  67b4f7f76ffca0c5e0e21deb566b4996df6d6f05ea02856c3f2430e9e2b1732f \
                        size    38756 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.24 \
                        rmd160  06eb44028c6d8e99905f1ffbdb75a35de0ade2f2 \
                        sha256  8b1e834f93ebe2e7f607a82bb236c8ec7bdbf2a58fe9ba29cf148d309c8ae227 \
                        size    4960 \
                    github.com/itchyny/timefmt-go \
                        lock    v0.1.9 \
                        rmd160  470d6827f0b9ce7d134466f78d13c206a3023e7f \
                        sha256  087d26ca2e520e48404be14a86d690b77274c75a503b518709c5ee92806dd179 \
                        size    19888 \
                    github.com/itchyny/go-yaml \
                        lock    18a91f8189a6 \
                        rmd160  4c925a02b14bace8cb80cf19efcedc019b506b28 \
                        sha256  46a011970e8565512f395b3c82b9a0662a9093c604d8741a7c193ff6077b0ee1 \
                        size    534573 \
                    github.com/google/go-cmp \
                        lock    v0.7.0 \
                        rmd160  3f04a79c291d786f9c69c2944bdd521402052a5c \
                        sha256  b621b304b529134076c9ebe09343aea7add039cd98e68be7e5a616245b0c3d03 \
                        size    105180 \
                    github.com/clipperhouse/uax29/v2 \
                        lock    v2.7.0 \
                        rmd160  9cd62348ce0722d85ff21f2f91a05a68f877aa08 \
                        sha256  66d66a451f74709ab74902e7bca146abf376dbf0bc701b713ee600e3d3d6a5b3 \
                        size    320846
