# -*- 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/tmccombs/hcl2json 0.6.9 v
revision            0

description         Convert HCL2 to json

long_description    \
    This is a tool to convert from HCL to json, to make it easier for non-Go \
    applications and scripts to process HCL inputs (such as terraform config).

categories          textproc sysutils
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

build.args-append \
    -ldflags \" -X main.Version=${version} \"

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

checksums           ${distname}${extract.suffix} \
                        rmd160  8331b80e2b06c6f511dafd9d7d85a6542095c077 \
                        sha256  df7361e4ea5f34de02a81afa06f515bc6379efeb5ab86c154c6a31def6bcb3dc \
                        size    14976

go.vendors          golang.org/x/tools \
                        lock    v0.31.0 \
                        rmd160  4010029845b483b0540774d5c8f864f1c619eccb \
                        sha256  06875c6821aa014ebd2ef94b25ee0faf87b62019678a6f1a865270d36c8de755 \
                        size    7660229 \
                    golang.org/x/text \
                        lock    v0.25.0 \
                        rmd160  d02d93425bfd59ec78a8a6bd17c06862c621fc61 \
                        sha256  9b4598673c5d873173ca6aa86367bd1960311a7fde8bbdda74efdd8482fa2f43 \
                        size    8973162 \
                    golang.org/x/sync \
                        lock    v0.14.0 \
                        rmd160  186b9c1139a6fe9160d971ea94865bbdb47420c8 \
                        sha256  8548a5cc9b82f170f867f1a0b2cbc1f683027588b77a3b141ae812718a358a94 \
                        size    18775 \
                    golang.org/x/mod \
                        lock    v0.24.0 \
                        rmd160  ceda1ff000bf847a4e08c3717a84e37d41bdfcc7 \
                        sha256  eabb00dfcb7b58a77912f3be7f727e18db5a8c195e9b294458dfc533e0d48249 \
                        size    126047 \
                    github.com/zclconf/go-cty \
                        lock    v1.18.0 \
                        rmd160  7fc18235a604e9deee54138fd84818fb5004768c \
                        sha256  087a398684fe461134807089f2db06e5ee68b8b261b116db750fe2e5d24014e7 \
                        size    261650 \
                    github.com/mitchellh/go-wordwrap \
                        lock    v1.0.1 \
                        rmd160  aabcb6578a2dcdfc425e66174663b2ef483998ed \
                        sha256  32c15ef99c4288a9ea02387eb6cd79718da19c5b780590913990b1091827628f \
                        size    2928 \
                    github.com/hashicorp/hcl/v2 \
                        lock    v2.24.0 \
                        rmd160  3c78e373132966bfcc1f8d4e3ed8172e2d0ed70c \
                        sha256  0372345a4b2ed199022fa32b4320d04ebc8ce7a1ed66bf6cf0d67d4c67f77f1d \
                        size    448547 \
                    github.com/go-test/deep \
                        lock    v1.0.7 \
                        rmd160  dc2e53ba63e0dc32e38b0f0553b21a58e3606ad7 \
                        sha256  9a5720bc008fd0f6efd94c157a0e7d86e3a6fbeee69ee73f82ac8a49882e5508 \
                        size    10204 \
                    github.com/apparentlymart/go-textseg/v15 \
                        lock    v15.0.0 \
                        rmd160  ef720e5dd32bbaf319dc34ae765346ef0a62bd25 \
                        sha256  96a4d963b8270893b7bf812f6e5864ece9e92e2e05db0fcb724c4060a9d5fa73 \
                        size    137366 \
                    github.com/agext/levenshtein \
                        lock    v1.2.3 \
                        rmd160  aeb104e95f1a831c985cb09267b4cb3c7482be0c \
                        sha256  4721c8cc5b07642b66a7872af29468f6e4a2862716acbedc5fc4ffad186c6e8f \
                        size    13233
