# -*- 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.6.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  dbf7d3504674bf9a9627215b06d7595905231d0b \
                    sha256  8cca14edd8bf29dc254866d942a86399e82b283f311786ba677acb2c6dc65681 \
                    size    11636375

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.]+)}
