# -*- 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.3.1 v
epoch               1
revision            1

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  14bfc90078e4fc072ce46b41d9959be2065f08b5 \
                    sha256  4bc60f75dd01159d53fb24ec68abcb0c8fc0832934f5692cbd169728a1e5fc49 \
                    size    21709

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

build.target        ${name} ${name}.1

makefile.has_destdir yes

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

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