# -*- 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           fortran 1.0

github.setup        renatomatz econ-toolchain c021e23d80a6cd7bc51e8a4ec81c68a4de39d6e2
version             2024.02.15
revision            0
categories-append   economics
license             MIT
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         General tools used for structural macroeconomic modelling
long_description    {*}${description}
checksums           rmd160  fb0e3c982f9a5fa77f59412a5e7bc6ebc7bf6048 \
                    sha256  00e53be37b4f7dc3977bf6baeed23a1a1df0e981d54dc69a8a31346f20201b2a \
                    size    14195
github.tarball_from archive

# https://github.com/renatomatz/econ-toolchain/pull/2
patchfiles-append   0001-fpm.toml-fix-parsing.patch

# See also: https://github.com/renatomatz/econ-toolchain/issues/3
depends_lib-append      path:lib/libopenblas.dylib:OpenBLAS
require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENCE ${destroot}${docdir}
}

test.run            yes
