# -*- 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/bojand/ghz 0.120.0 v
go.offline_build    no
revision            0

homepage            https://ghz.sh

description         \
    Simple gRPC benchmarking and load testing tool

long_description    {*}${description}

categories          net
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  dfe8205026a56fda2a38e9f944681453f43909c9 \
                    sha256  e058b1dc3aa09ca7594a79f92bad3b481c4193a0db31b2ac310b54ad802b2580 \
                    size    3915706

build.pre_args      -ldflags \"-X main.version=v${version}\"
build.args          -o ${name} ./cmd/${name}/...

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