# -*- 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/confluentinc/cli 4.20.0 v
go.offline_build    no
name                confluent-cli
revision            0

description         CLI for Confluent Cloud and Confluent Platform

long_description    \
    The Confluent CLI lets you manage your Confluent Cloud and Confluent \
    Platform deployments, right from the terminal.

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

checksums           rmd160  bd06f13945fc537fd329b6581689f24d4413df21 \
                    sha256  b78d97db860911d0c9827e47da4768e319f65035e30c13c077fab7a200bf6ff3 \
                    size    8391288

patchfiles-append   patch-Makefile.diff

build.cmd           make
build.pre_args-append \
                    VERSION=${github.tag_prefix}${version}

depends_build-append \
                    port:goreleaser

destroot {
    xinstall -m 0755 \
        [glob ${worksrcpath}/dist/confluent_*/confluent] \
        ${destroot}${prefix}/bin/
}

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