# -*- 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/k6io/k6 1.4.0 v
go.package          go.k6.io/k6
go.offline_build    no
revision            0

homepage            https://k6.io

description         A modern load testing tool, using Go and JavaScript

long_description    \
    ${name} is a modern load testing tool, building on Load Impact's years of \
    experience in the load and performance testing industry. It provides a \
    clean, approachable scripting API, local and cloud execution, with \
    command & control through CLI or a REST API.

categories          net
installs_libs       no
license             AGPL-3+
maintainers         {l2dy @l2dy} \
                    {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  44c00f8d394e96efe2a06d6fd0fadd94bcab0bc6 \
                    sha256  a2f5ccf6ca7be527cf510d7b1ef7d7b45a2f487023ded0f3bfc88cf8dbf1cbdb \
                    size    11375168

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

    set docdir ${prefix}/share/doc/${name}
    set sharedir ${prefix}/share/${name}

    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} README.md LICENSE.md \
        ${destroot}${docdir}

    xinstall -d ${destroot}${sharedir}/
    copy ${worksrcpath}/examples ${destroot}${sharedir}/
}

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