# -*- 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.51.2 v
go.package          carvel.dev/ytt
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  21b7ae3e3b0dddeff84519ca2eef979525b137e0 \
                        sha256  c795c388612d93a2a139fce378b5721db2404a2a70fb3d67124931453b11f163 \
                        size    1352245

go.vendors          gopkg.in/yaml.v3 \
                        lock    v3.0.1 \
                        rmd160  e85ac1368fb7f9ef945b7fd7bd608a1f0d261c12 \
                        sha256  f3ea6be3f405ec25f8799773355aba54f8831d11f5315a01155bdc69b92eca7b \
                        size    91208 \
                    gopkg.in/check.v1 \
                        lock    41f04d3bba15 \
                        rmd160  1e5543a8e6a3159296ee63e28cbde9931a04f6b3 \
                        sha256  c41575a73d10809f89b05ef9e783f2d53facdc6573697770d30efb05a9d2dc28 \
                        size    31612 \
                    github.com/stretchr/testify \
                        lock    v1.8.4 \
                        rmd160  8e1645055c9b1d8e117df7974034e74b7f600d27 \
                        sha256  6d0a77075bbe0f8f1c0cbed51dd4d174579db976fef39d9ae6b500aab8917d6a \
                        size    104469 \
                    github.com/spf13/pflag \
                        lock    v1.0.5 \
                        rmd160  2ce81608a38c6f383a35bccd24d64361df5828c9 \
                        sha256  7f41acdcba65b1fab5b9b633947a139f9915b60f94bdab486cdbe9d90c54f61e \
                        size    50815 \
                    github.com/spf13/cobra \
                        lock    v1.7.0 \
                        rmd160  2d0592a4c5aca1ba5daa45cd1d4e662adadd0703 \
                        sha256  913afd358ab699baf7773e7a5661c9f6436c6f825da2a1d61623e69d2c0b4b2d \
                        size    187188 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/kr/text \
                        lock    v0.1.0 \
                        rmd160  0b3c78459e227170a3b80a0103d87a3eef77ed88 \
                        sha256  5ed970aad0da3cba3cffacdb4d154a162a8968655ee6d6f7b627e71b869efaf6 \
                        size    8691 \
                    github.com/kr/pretty \
                        lock    v0.2.0 \
                        rmd160  45bbf0be7a3328e33186718ab12cb506c0f5a073 \
                        sha256  35fb1f8788552fc7df2120bc06dd34e00aa3284d23c250fc1f143eef51d08586 \
                        size    8762 \
                    github.com/k14s/starlark-go \
                        lock    3a5c849cc368 \
                        rmd160  091ec4900c8983ccacdf3d2ee3e2c8bbc37579df \
                        sha256  e5fb60f41c65052abe71c892029dfd4c46a0ed87ac921cd7203b3d7494450a64 \
                        size    222571 \
                    github.com/k14s/difflib \
                        lock    0c031775bf57 \
                        rmd160  8116857231c112a68acf1e2827470b80ab12996b \
                        sha256  3d9ee58954bceb0b3519bbb4bf772a7f2e338a80aa6bb0c19956421b97abc553 \
                        size    8709 \
                    github.com/inconshreveable/mousetrap \
                        lock    v1.1.0 \
                        rmd160  88f9577df93ac0f8801d8960adc7f28e38867f3e \
                        sha256  f69af10ff08c0e87f92dac3ee5172d8ed02463725b74edfc8943ef018a1a632d \
                        size    5343 \
                    github.com/hashicorp/go-version \
                        lock    v1.6.0 \
                        rmd160  e2738a78472a98f067520abd0833b64b83887ac3 \
                        sha256  f13b1e81ac2386acd975ef942abf70ecbcd29fa731820a102c2e8287fe881bee \
                        size    15899 \
                    github.com/google/gofuzz \
                        lock    v1.2.0 \
                        rmd160  96da30fd8ada1c6e0bd1c7041c11fa22f2efc490 \
                        sha256  530af70773c8a858880f648ea720c7db968aa7f69d95b8dca62b11f7d9a89464 \
                        size    17057 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.1 \
                        rmd160  7c02883aa81f81aca14e13a27fdca9e7fbc136f7 \
                        sha256  e85d6afa83e64962e0d63dd4812971eccf2b9b5445eda93f46a4406f0c177d5f \
                        size    42171 \
                    github.com/cppforlife/go-cli-ui \
                        lock    512793797f05 \
                        rmd160  f2327c0e34a2e09958e21437f034c60857f4539f \
                        sha256  96bbb6a4e4508d94435ebcdee40a5b12aaedc5da8a409361591dedaec96985a8 \
                        size    2570351 \
                    github.com/cppforlife/cobrautil \
                        lock    bb86e6965d72 \
                        rmd160  cbfd80fca1f0b95c11c65b0844b10d336782887b \
                        sha256  79c96a10d3ae98c52d61f51943dda02f5d8025de2b552d0db72403fb679cdf4b \
                        size    68160 \
                    github.com/aws/aws-lambda-go \
                        lock    v1.41.0 \
                        rmd160  96a860fe3534845d5b9c947e90f8d6eac0f457e4 \
                        sha256  783691b17d610ef1496a95d565603140219985b902aef4f783b784cc0a385114 \
                        size    118111 \
                    github.com/BurntSushi/toml \
                        lock    v1.2.1 \
                        rmd160  f28ee241d0d9ccdec5d3647c39b4921040ae8660 \
                        sha256  8a680ca349a545a02844730b3f5701ff929f7b6ba35d07294b7794710c4c36fa \
                        size    97017
