# -*- 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/tidwall/jj 1.9.2 v
revision            1

description         JSON Stream Editor

long_description    \
    JJ is a command line utility that provides a fast and simple way to \
    retrieve or update values from JSON documents. It's powered by GJSON and \
    SJSON under the hood. It's fast because it avoids parsing irrelevant \
    sections of json, skipping over values that do not apply, and aborts as \
    soon as the target value has been found or updated.

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

conflicts           jujutsu

build.pre_args-append \
    -ldflags \"-X main.version=${version}\"
build.args          ./cmd/${name}

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

checksums           ${distname}${extract.suffix} \
                        rmd160  c1e382b0acc7fc9fcb25619e8db2356a42a7ae67 \
                        sha256  a3dafa9f2182bf79f26cdca790ff7106ebc02a50bd72bcc2db58bdbc39ee052f \
                        size    11289

go.vendors          golang.org/x/sys \
                        lock    0f9fa26af87c \
                        rmd160  b5e5b546cddec0ad97bccbc3a19fe3630792097b \
                        sha256  e9ff4a07a3cc01341990da0d8ecd1cfa05643a2db423bb1efcf62f577901ea77 \
                        size    1202158 \
                    github.com/tidwall/sjson \
                        lock    v1.2.4 \
                        rmd160  3b5cbf850df799d6065d2df14bfedd0d68758786 \
                        sha256  7f136109932989289f35a3e1c7497c62e4d83a467896b9265465aa2af33dff81 \
                        size    28054 \
                    github.com/tidwall/pretty \
                        lock    v1.2.0 \
                        rmd160  37f7e7321c8a38180b1551d25135f936d96c203e \
                        sha256  2e3bdcaa298fb9af2d17187edd750a6b9ba25a0528adadff9b12cee933af7345 \
                        size    11228 \
                    github.com/tidwall/match \
                        lock    v1.1.1 \
                        rmd160  c120d8ecd4d45abbb5b04deb804d1566b9a672fe \
                        sha256  9fd7217a82378a818d31cf6b01db7f9f176674cea583b139ee89b4f06da2ccfd \
                        size    5934 \
                    github.com/tidwall/gjson \
                        lock    v1.14.0 \
                        rmd160  81f23e7d603a29ee8f7ac48de9e3ba4ee44b4f50 \
                        sha256  fc1c019e73f6d68cb956d236d59f68ebdf5906312a7fedfc4c5f8bcc6b91514e \
                        size    56569 \
                    github.com/mattn/go-isatty \
                        lock    v0.0.14 \
                        rmd160  8ebfd3a6f2898a729e41dff6b5359e88959c46e1 \
                        sha256  dc141c207a7f4eb83992df90ca087841a0a3aab5a4f2b528bf81d42a186bcc1e \
                        size    4705
