# -*- 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/fullstorydev/grpcurl 1.9.3 v
go.offline_build    no
revision            0

description         \
    Like cURL, but for gRPC: Command-line tool for interacting with gRPC \
    servers.

long_description    \
    {*}${description} The main purpose for this tool is to invoke RPC methods \
    on a gRPC server from the command-line. gRPC servers use a binary \
    encoding on the wire (protocol buffers, or "protobufs" for short). So \
    they are basically impossible to interact with using regular curl (and \
    older versions of curl that do not support HTTP/2 are of course \
    non-starters). This program accepts messages using JSON encoding, which \
    is much more friendly for both humans and scripts.

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

checksums           rmd160  1875b661ae2daf5116ada3dd7537bf0955c06a30 \
                    sha256  bb555087f279af156159c86d4d3d5dd3f2991129e4cd6b09114e6851a679340d \
                    size    123945

build.pre_args      -ldflags \"-X 'main.version=${github.tag_prefix}${version}'\"
build.args          ./cmd/${name}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

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