# -*- 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/ivaaaan/smug 0.3.10 v
revision            0

description         A session manager for tmux written in Go

long_description    {*}${description}. Smug automates your tmux workflow. \
                    You can create a single configuration file, and Smug will \
                    create all the required windows and panes from it. \
                    Inspired by tmuxinator and tmuxp.

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

build.cmd           make
build.pre_args      VERSION=${version}
build.args          build

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

    xinstall -d ${destroot}${prefix}/share/man/man1
    xinstall -m 0644 ${worksrcpath}/man/man1/${name}.1 \
        ${destroot}${prefix}/share/man/man1/

    set bash_comp_dir ${prefix}/share/bash-completion/completions
    set fish_comp_dir ${prefix}/share/fish/vendor_completions.d

    xinstall -d ${destroot}${bash_comp_dir}
    xinstall -d ${destroot}${fish_comp_dir}

    xinstall -m 0755 ${worksrcpath}/completion/${name}.bash \
        ${destroot}${bash_comp_dir}/

    xinstall -m 0644 ${worksrcpath}/completion/${name}.fish \
        ${destroot}${fish_comp_dir}/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  825d08708b4b79c0517af8fbcb94bd3d402675ab \
                        sha256  505721367958dcf86831e23b9c73b2fc4648a62be070e534abc82c71b714e7ad \
                        size    17979

go.vendors          gopkg.in/yaml.v2 \
                        lock    v2.4.0 \
                        rmd160  66e9feb7944b3804efa63155ed9b618717b8955c \
                        sha256  72812077e7f20278003de6ab0d85053d89131d64c443f39115a022114fd032b6 \
                        size    73231 \
                    gopkg.in/check.v1 \
                        lock    20d25e280405 \
                        rmd160  412aa0d109919182ff84259e9b5bbc9f24d78117 \
                        sha256  233f8faf427ce6701ac3427f85c28bc6b6ae7cdc97a303a52873c69999223325 \
                        size    30360 \
                    github.com/spf13/pflag \
                        lock    v1.0.5 \
                        rmd160  2ce81608a38c6f383a35bccd24d64361df5828c9 \
                        sha256  7f41acdcba65b1fab5b9b633947a139f9915b60f94bdab486cdbe9d90c54f61e \
                        size    50815
