# -*- 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/weaveworks/eksctl 0.229.0 v
go.offline_build    no
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  b4645c5fae7ef748379f80ce9410ce9095b5ee33 \
                    sha256  7886e5b0562465053421dd3612badf6e9acab29298e88abff4a325f850a4263e \
                    size    12108612

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.]+)}
