# -*- 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.19.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  4bf863ac1dc00679709ac35311e43894087fb1cb \
                    sha256  4cd6c7d97ed88f6fbf01b6816e15a788ec76125c7a31bf17bd371678f7842bbf \
                    size    42240

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/
}
