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

gitlab.setup        jallbrit cbonsai 1.4.2 v
epoch               1
revision            0

description         grow bonsai trees in your terminal

long_description    cbonsai is a bonsai tree generator, written in C using \
                    ncurses. It intelligently creates, colors, and positions \
                    a bonsai tree, and is entirely configurable via CLI \
                    options-- see usage. There are 2 modes of operation: \
                    static (the default), and live.

categories          games
installs_libs       no
license             GPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
platforms           darwin linux freebsd

checksums           rmd160  6545cc8d48c76afd5a9306006bba59848d22abe9 \
                    sha256  be635626d8f9f294d3854f955d8d924b2aa965348ad81d2e20d3ffd1fa8641ed \
                    size    22859

depends_build-append \
                    port:pkgconfig \
                    port:scdoc
depends_lib-append  port:ncurses

build.target        ${name} ${name}.6

makefile.has_destdir yes

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

    xinstall -d ${destroot}${prefix}/share/man/man6
    copy ${worksrcpath}/${name}.6 ${destroot}${prefix}/share/man/man6/
}
