# -*- 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.2
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  e667b4d892bc366a34a3ac1faee3420590bcc525 \
                    sha256  6144007ae690c1f542c410f4d1c0276a9e0073b8edb960079b8243aeccdfd04e \
                    size    56463

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