# -*- 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.217.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  82bd68158c6f6a0a1f714555088abb3023d9684d \
                    sha256  6c17ded67516956180353b11a064830d3b2a5e990b210e2ca236d4460d8872bd \
                    size    12034077

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