# -*- 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/hairyhenderson/gomplate 5.2.0 v
go.package          github.com/hairyhenderson/gomplate/v5
go.offline_build    no
go.toolchain_min    1.26.0
revision            0

description         \
    A flexible commandline tool for template rendering. Supports lots of \
    local and remote datasources.

long_description    \
    ${name} is a template renderer which supports a growing list of \
    datasources, such as: JSON (including EJSON - encrypted JSON), YAML, AWS \
    EC2 metadata, BoltDB, Hashicorp Consul and Hashicorp Vault secrets.

categories          textproc
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  a938639d7970b1a21f47883aefe1dfe43d9526b3 \
                    sha256  fb08872f54f776863a30adcd58dce0437529d0e6a468839d107803bbff1d0b23 \
                    size    611285

build.cmd           make
build.pre_args-append \
                    VERSION=${version}
build.args          build

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

github.livecheck.regex \
                    {([0-9.]+)}
