# -*- 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.43.8 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  018a73f7d863e1aec732f97d295f3ba1a37fce82 \
                    sha256  a05fdfb08a065cca20d399df1d79cba665e2a9a9abe26ba9cd82d253dc9d4197 \
                    size    163183

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/
}
