# -*- 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.1 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  aeca347f48b7b02a02b17ed56d2d4f481719ee37 \
                    sha256  df3d81d75aa37285c2abad60745c669f86c7c857e75925779ab38785721e80f6 \
                    size    144044

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