# -*- 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.216.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  e2fc1e09075309eab2ba0693896256ab886f9add \
                    sha256  347cd36171b1999d581827543ec2c9c33b889efa3a835336e7f9be02f525728d \
                    size    12025827

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