# -*- 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/kluctl/kluctl 2.27.0 v
go.package          github.com/kluctl/kluctl/v2
revision            0

homepage            https://kluctl.io

description         \
    Kluctl combines Helm, Kustomize and more to handle large deployments in \
    a manageable and unified way.

long_description    \
    Kluctl is the missing glue that puts together your (and any third-party) \
    deployments into one large declarative Kubernetes deployment, while \
    making it fully manageable \(deploy, diff, prune, delete, ...\) via one \
    unified command line interface. Kluctl tries to be as flexible as \
    possible, while remaining as simple as possible. It reuses established \
    tools (e.g. Kustomize and Helm), making it possible to re-use a large set \
    of available third-party deployments. Kluctl is centered around \
    \"targets\", which can be a cluster or a specific environment \(e.g. \
    test, dev, prod, ...\) on one or multiple clusters. Targets can be \
    deployed, diffed, pruned, deleted, and so on. The idea is to have the \
    same set of operations for every target, no matter how simple or complex \
    the deployment and/or target is. Kluctl does not depend on external \
    operators\/controllers and allows to use the same deployment wherever you \
    want, as long as access to the kluctl project and clusters is available. \
    This means, that you can use it from your local machine, from your CI/CD \
    pipelines or any automation platform/system that allows to call custom \
    tools.

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

checksums           rmd160  8e057706ac65c0be460314bb7be2a180e36c584e \
                    sha256  699fc10338436f335f853d58467cc5833aabb967042bec5538ae7af0e48bd2e2 \
                    size    4801211

go.offline_build no

build.pre_args-append \
    -ldflags \"-X main.version=${github.tag_prefix}${version}\" \
    -o ${name}

build.args          ./cmd

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

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