# -*- 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        TypedDevs bashunit 0.23.0
github.tarball_from archive
revision            0

homepage            https://bashunit.typeddevs.com/

description         A simple testing library for bash scripts.

long_description    \
    ${name} is a dedicated testing tool crafted specifically for Bash \
    scripts. It empowers you with tests on your Bash codebase, ensuring that \
    your scripts operate reliably and as intended. With an intuitive API and \
    documentation, it streamlines the process for developers to implement and \
    manage tests. This is beneficial regardless of the project's size or \
    intricacy in Bash.

categories          devel shells
platforms           any
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
supported_archs     noarch

checksums           rmd160  9665a2e882186a68e0172133f1a5484793584cc7 \
                    sha256  c6333a5ebb600212228e36f11091f56b518e07085a7541a2b541acc0a9f87565 \
                    size    58171

depends_lib-append  port:bash \
                    port:gsed

use_configure       no

build.cmd           ./build.sh

post-build {
    reinplace -E \
        "s|#!/bin/bash|#!${prefix}/bin/bash|g" ${worksrcpath}/all/${name}
}

destroot {
    copy ${worksrcpath}/all/${name} ${destroot}${prefix}/bin/
}
