# -*- 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.5 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  7ac33eec2de8b50c4f239898aa35d566754cd6b5 \
                    sha256  ab9a9e622ec5386b4c766abdcbd007011c1388144983a6ba7c4a9b534c3d2929 \
                    size    156382

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