# -*- 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.22.1
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  9235dec88f0765a539f4e397e5e878c15153f4de \
                    sha256  62606aab2c23976930bb16bfcfe27e14e09f792b240983a626501d2d9d22571b \
                    size    56253

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