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

github.setup        PlankCipher kabmat 2.7.0 v
revision            0
categories          sysutils
license             GPL-3
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         TUI program for managing kanban boards with vim-like keybindings
long_description    {*}${description}
checksums           rmd160  f0dbf5341d82d7f4fe785c71c426c58447615339 \
                    sha256  8f0cb6ea5057e3dad7d16944802de844ee96dcd102bb784316656718a4285cfb \
                    size    1813393
github.tarball_from archive

patchfiles          patch-makefile.diff

post-patch {
    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/Makefile
}

depends_lib-append  port:ncurses

compiler.cxx_standard   2017

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
}

# See: https://github.com/PlankCipher/kabmat/issues/26
notes "
Before launching the app, please run the following from your normal user:
mkdir ~/.local/share/kabmat
touch ~/.local/share/kabmat/data
Also make sure to check README for keybindings.
"
