# -*- 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/eksctl-io/eksctl 0.232.0 v
go.package          github.com/weaveworks/eksctl
go.offline_build    no
go.toolchain_min    1.27
revision            0

homepage            https://eksctl.io

description         Simple CLI tool for creating clusterrs on AWS EKS

long_description    \
    eksctl is a simple CLI tool for creating clusters on EKS - Amazon’s new \
    managed Kubernetes service for EC2. It is written in Go, uses \
    CloudFormation, was created by Weaveworks.

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

checksums           rmd160  687b745bc8e22d8649c98331342c8405d20cc1f4 \
                    sha256  0fa5a04630e86d3e0bdf7e88d1d2e03b0036e57fc273a53502b47717bf6856d7 \
                    size    12160930

build.cmd           make
build.target        binary

destroot {
    xinstall ${worksrcpath}/eksctl ${destroot}${prefix}/bin/eksctl

    set bashCompletionPrefix ${prefix}/share/bash-completion/completions
    set fishCompletionPrefix ${prefix}/share/fish/vendor_completions.d
    set zshCompletionPrefix  ${prefix}/share/zsh/site-functions

    xinstall -d ${destroot}${bashCompletionPrefix}
    xinstall -d ${destroot}${fishCompletionPrefix}
    xinstall -d ${destroot}${zshCompletionPrefix}

    exec ${destroot}${prefix}/bin/eksctl completion bash > \
        ${destroot}${bashCompletionPrefix}/${name}

    exec ${destroot}${prefix}/bin/eksctl completion fish > \
        ${destroot}${fishCompletionPrefix}/${name}.fish

    exec ${destroot}${prefix}/bin/eksctl completion fish > \
        ${destroot}${zshCompletionPrefix}/_${name}
}

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