# -*- 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.34.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  c1728675c570a958c934254af04fab8f1a357cc7 \
                    sha256  9538a201b62512d197e666180d6bb0edea965fa4953d126a1ad498d05d0c8da6 \
                    size    128575

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