# -*- 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           cargo   1.0
PortGroup           github  1.0

github.setup        fioncat otree 0.6.1 v
github.tarball_from archive
revision            0

description         \
    A command line tool to view objects \(JSON\/YAML\/TOML\) in TUI tree \
    widget.

long_description    {*}${description}

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

fetch.type          git

cargo.offline_cmd

destroot {
    xinstall -m 0755 \
        ${worksrcpath}/target/[cargo.rust_platform]/release/${name} \
        ${destroot}${prefix}/bin/

    xinstall -d ${destroot}${prefix}/share/${name}
    copy ${worksrcpath}/config/default.toml ${destroot}${prefix}/share/${name}/
}

notes "
    Default configuration included in ${prefix}/share/${name}

    It can be copied to \$HOME/.config/otree.toml:

    $ cp ${prefix}/share/${name}/default.toml \$HOME/.config/otree.toml
"
