# -*- 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.43.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

fetch.type          git
patchfiles-append   patch-Makefile.diff

build.cmd           make

depends_build-append \
                    port:goreleaser

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

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