# -*- 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        renatomatz cafut 95ace2d89d809ecc832586133c11316fe829d1a9
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             2023.06.30
revision            0
categories          fortran devel
license             MIT
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Single-file object-oriented unit testing utility for Coarray Fortran
long_description    The point of this library is to provide a simple, object-oriented unit testing framework \
                    meant for applications using Coarray Fortran. As it is further developped, \
                    we place more importance in brevity than to features, and for that reason, \
                    this project aims at maintaining all code within a single module \
                    that can be placed with the tested scripts.
homepage            https://renatomatz.github.io/cafut-docs
checksums           rmd160  cc12c2ee36da581218d25aa3ce627d7c55ba3f2f \
                    sha256  af3b096b65f0f05b36f5001ce6b44a748e8f6d9949ac16e4f1655a1ecdac9b27 \
                    size    620150
installs_libs       no

depends_build-append \
                    port:OpenCoarrays

configure.fc        ${prefix}/bin/caf

use_configure       no

build {
    system -W ${worksrcpath}/src "${configure.fc} -c cafut.f90"
}

destroot {
    xinstall -d ${destroot}${prefix}/include
    copy ${worksrcpath}/src/${name}.mod ${destroot}${prefix}/include/
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENCE README.md doc.md ${destroot}${docdir}
}

universal_variant   no
