# -*- 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/temporalio/tctl 1.18.0 v
github.tarball_from archive
name                temporal-cli
revision            0

homepage            https://temporal.io

description         CLI for Temporal

long_description    \
    {*}${description}. Temporal is the open source microservices \
    orchestration platform for running mission critical code at any scale.

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

checksums           rmd160  ff8c6c135e75cc3aa790089d63db8cb0cdb31fc6 \
                    sha256  46d9bcd8c011205b81f4564023267638ddc1be64a28c61d5c531d0c60af1ad43 \
                    size    227265

# Allow fetching dependencies at build time
go.offline_build no

build.cmd           make
build.target        build

use_parallel_build  no

notes "temporal-cli is installed as tctl"

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

    xinstall -m 0755 ${worksrcpath}/tctl-authorization-plugin \
        ${destroot}${prefix}/bin/
}
