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

name                tree
version             2.2.1
categories          sysutils
license             GPL-2+
maintainers         {larryv @larryv} openmaintainer

description         display tree-view of directories with optional \
                    color/HTML output
long_description    Tree is a simple utility that displays a tree-view \
                    of directories and files. It has options to use ANSI \
                    color escape-sequences or ASCII graphic characters, \
                    and can also output in HTML format. Tree was written \
                    by Steve Baker for Linux.
homepage            https://oldmanprogrammer.net/source.php?dir=projects/tree
master_sites        https://oldmanprogrammer.net/tar/${name}/
extract.suffix      .tgz

checksums           rmd160  4e7d927b44a771bb1bc408aec95d749faa3f2e2f \
                    sha256  68ac45dc78c0c311ada06200ffc3c285e74223ba208061f8d15ffac25e44b2ec \
                    size    65505

compiler.c_standard 2011

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    xinstall -m 0644 ${worksrcpath}/doc/${name}.1 ${destroot}${prefix}/share/man/man1/
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} README CHANGES LICENSE \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
