# -*- 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/idursun/jjui 0.10.8 v
go.offline_build    no
revision            0

description         \
    Jujutsu UI \(jjui\) is a Text User Interface \(TUI\) designed for \
    interacting with the Jujutsu version control system.

long_description    {*}${description}

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

checksums           rmd160  d844c4ea27bf2c6dd8813b43e06a07682679c539 \
                    sha256  964fc721c5494237a8259b044001327d7c93aa58aba07f9444d873f05d18d21d \
                    size    264443

depends_run         port:jujutsu

build.pre_args-append \
    -ldflags \" -X main.Version=${version} \"

build.args-append   ./cmd/${name}

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