# -*- 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/variantdev/vals 0.42.4 v
go.offline_build    no
revision            0

description         \
    Helm-like configuration values loader with support for various sources

long_description    \
    ${name} is a tool for managing configuration values and secrets. \
    It supports various backends including Vault, AWS SSM Parameter Store, \
    AWS Secrets Manager, AWS S3, GCP Secrets Manager, Google Sheets, \
    SOPS-encrypted files and Terraform State.

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

checksums           rmd160  09f3392450e7471728c82ff5861f926ba4f3c2a6 \
                    sha256  cd0d000a68df7db53b8293859042e776ccbca6dbd001fbd923a329797fdbf9ff \
                    size    131392

build.pre_args-append \
    -ldflags \" -X main.version=${github.tag_prefix}${version} \"

build.args          ./cmd/${name}

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