# -*- 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/batchcorp/plumber 2.9.0 v
go.offline_build    no
revision            0

description         \
    A swiss army knife CLI tool for interacting with Kafka, RabbitMQ and \
    other messaging systems.

long_description    \
    {*}${description} The tool enables you to safely view the contents of \
    your data streams, write plain or encoded data to any system, route data \
    from one place to another, decode protobuf/avro/thrift/JSON data in \
    real-time, relay data to the Batch platform, ship change data capture \
    events to Batch platform, replay events into a message system on your \
    local network, and many other features.

categories          net devel
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  4fc0f48e73b3b605b9ea41ae431b6eed2405ff3d \
                    sha256  6ccdf3231a2789cbdb8d9258e88a3e33b97c0e8575c99a8b7ac240a666a84a43 \
                    size    26320504

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

pre-build {
    system -W ${worksrcpath} "${go.bin} mod vendor"
}

destroot {
    xinstall -m 0755 \
        {*}[glob ${worksrcpath}/build/${name}-*] \
        ${destroot}${prefix}/bin/${name}
}
