# -*- 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.7.0 v
go.offline_build    no
revision            0

homepage            https://batch.sh

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  a079800e983911ace6db1957ea171ceeff10dd2b \
                    sha256  aa9c2e37d2e5bc320f502b525dafc4649595219f0223692bca1614b11e895adb \
                    size    26357602

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}
}
