# -*- 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        jacobwilliams nlesolver-fortran 2.2.0
name                fortran-nlesolver
revision            0
categories-append   math
license             BSD
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Nonlinear equation solver with modern Fortran
long_description    Basic Newton–Raphson type nonlinear equation solver \
                    for dense systems with m functions of n input variables.
checksums           rmd160  607dd4b9092355b1f8fa313dbb2be4613bc17d46 \
                    sha256  ef22a1351259430ea0e524812f7d0308b3fd310eeb2bed594905929ac3ce2e7b \
                    size    36544
github.tarball_from archive

depends_lib-append  port:vecLibFort

build.cmd-append    --link-flag="-L${prefix}/lib -lvecLibFort"

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
}

test.run            yes
