# -*- 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/carvel-dev/ytt 0.55.2 v
go.package          carvel.dev/ytt
go.offline_build    no
go.toolchain_min    1.26
revision            0

homepage            https://${go.package}

description         \
    YAML templating tool that works on YAML structure instead of text

long_description    \
    ytt (pronounced spelled out) is a templating tool that understands YAML \
    structure. It helps you easily configure complex software via reusable \
    templates and user provided values. ytt provides: \n \
    - Structural templating: understands yaml structure so users can focus on \
      their configuration instead of issues associated with text templating, \
      such as YAML value quoting or manual template indentation \n \
    - Built-in programming language: includes the \"fully featured\" \
      Python-like programming language Starlark which helps ease the burden \
      of configuring complex software through a richer set of functionality.\n\
    - Reusable configuration: You can reuse the same configuration in \
      different environments by applying environment-specific values. \n \
    - Custom validations: coupled with the fast and deterministic execution, \
      allows you to take advantage of faster feedback loops when creating and \
      testing templates \n \
    - Overlays: this advanced configuration helps users manage the \
      customization required for complex software. For more, see this example \
      in the online playground. \n \
    - Sandboxing: provides a secure, deterministic environment for execution \
      of templates

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

build.pre_args-append \
    -ldflags \" \
        -X ${go.package}/pkg/version.Version=${github.tag_prefix}${version} \
    \"
build.args          ./cmd/${name}

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

    xinstall -d ${destroot}${prefix}/share/doc/${name}
    copy {*}[glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${name}
}

checksums           ${distname}${extract.suffix} \
                        rmd160  e1d1b59d6db41b48f36c2e14b95f54a4983957fe \
                        sha256  e36439c836b24a572f465c8404c53d65eecdca737a6d98e0d79d5e82babe1e4e \
                        size    1346290
