# -*- 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        kward shunit2 2.1.8 v
revision            0
checksums           rmd160  8ab2648fdcdc3722c87f02415df1a582b31a5b27 \
                    sha256  b2fed28ba7282e4878640395284e43f08a029a6c27632df73267c8043c71b60c \
                    size    52458

categories          devel
license             Apache-2
maintainers         {ryandesign @ryandesign} openmaintainer
platforms           any
supported_archs     noarch

description         an xUnit-based unit test framework for Bourne shell scripts

long_description    ${name} is {*}${description}.

github.tarball_from archive
use_configure       no

build {}

test.run            yes
test.cmd            ./test_runner
test.target

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