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

github.setup        FredHucht pstree 2.40 v
revision            0

categories          sysutils
maintainers         nomaintainer
license             GPL-2
description         pstree shows the output of the ps command as a tree
platforms           darwin freebsd
long_description    {*}${description}

github.tarball_from releases
use_zip             yes
master_sites        https://github.com/FredHucht/pstree/files/9119465/
distname            ${name}-v${version}
checksums           rmd160  b8eb35d6d887b2fc5371a086561f173e77ecfd33 \
                    sha256  286c917ed9a979af3f4a43429b49a9087593f90ced20b9ef08f0daceff3f3e3b \
                    size    28894

installs_libs       no

post-extract {
    xinstall -m 0755 ${filespath}/configure ${worksrcpath}
}

destroot {
    xinstall -s ${worksrcpath}/pstree ${destroot}${prefix}/bin
    xinstall -m 0644 ${worksrcpath}/pstree.1 ${destroot}${prefix}/share/man/man1
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -W ${worksrcpath} -m 0644 README.md LICENSE \
        ${destroot}${docdir}
}
