# -*- 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/xyproto/orbiton 2.68.6 v
revision            0

homepage            https://roboticoverlords.org/orbiton

description         Orbiton is a vt100 text editor and a simple IDE

long_description    \
    Configuration-free text editor and IDE limited to VT100. Suitable for \
    writing git commit messages, editing Markdown, config files, source code, \
    viewing man pages and for quick edit-compile cycles when programming. Has \
    syntax highlighting, jump-to-error, rainbow parentheses, macros, tab \
    completion, cut/paste portals and a simple gdb front-end.

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

checksums           rmd160  f680da1563d509ecf91acee34453e4c9650247d1 \
                    sha256  36510204d12f607dff6952ab80ee4fcad1cd5be873a41d2c8006a47ea5d9ebe9 \
                    size    5585791

build.cmd           make
build.pre_args      GOFLAGS=
build.args          o o.1

destroot {
    xinstall -m 0755 ${worksrcpath}/o ${destroot}${prefix}/bin/
    xinstall -d ${destroot}${prefix}/share/man/man1
    copy ${worksrcpath}/o.1 ${destroot}${prefix}/share/man/man1/

    xinstall -d ${destroot}${prefix}/share/doc/${name}
    copy ${worksrcpath}/README.md ${destroot}${prefix}/share/doc/${name}/
}
