# -*- 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/kubernetes-sigs/kustomize 5.6.0 kustomize/v
github.tarball_from archive
revision            0

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

description         Customize raw, template-free YAML files for multiple purposes, like Kubernetes

long_description    kustomize lets you customize raw, template-free YAML files for multiple purposes, \
                    leaving the original YAML untouched and usable as is. \
                    \
                    kustomize targets kubernetes\; it understands and can patch kubernetes style API objects. \
                    It\'s like make, in that what it does is declared in a file, \
                    and it\'s like sed, in that it emits edited text.

homepage            https://kustomize.io

checksums           rmd160  b87382917b2e7d72ba20d1435cbff60348c2f2f8 \
                    sha256  80822d3227c0dbbd38bff19c4630f4fa7eccbacd0ff269a1795a63aa3a45714f \
                    size    3548345

build.dir           ${worksrcpath}/${name}

build.args          -ldflags \" \
                        -s \
                        -X sigs.k8s.io/kustomize/api/provenance.version=${version} \
                        -X sigs.k8s.io/kustomize/api/provenance.gitCommit=unknown \
                        -X sigs.k8s.io/kustomize/api/provenance.buildDate=unknown \
                    \"

# FIXME: This port currently can't be built without allowing go mod to fetch
# dependencies during the build phase. See
# https://trac.macports.org/ticket/61192
go.offline_build no

destroot {
    xinstall -m 0755 ${build.dir}/${name} ${destroot}${prefix}/bin/
}

# https://github.com/kubernetes-sigs/kustomize/blob/master/cmd/config/docs/commands/completion.md
notes "
To install shell completion for supported shells run:

    kustomize install-completion

To uninstall shell completion:

    COMP_UNINSTALL=1 kustomize install-completion
"
