# -*- 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 NumDiff 1.8.0
name                fortran-numdiff
revision            0
categories-append   math
license             BSD
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Modern Fortran Numerical Differentiation Library
long_description    NumDiff provides a modern Fortran interface for computing \
                    the Jacobian (derivative) matrix of m nonlinear functions \
                    which depend on n variables. The Jacobian matrix is required \
                    for various applications, including numerical optimization. \
                    It can also be used to test the accuracy of gradients \
                    computed by other means. The library also provides \
                    for computing the sparsity of this matrix, \
                    and returning the Jacobian in sparse or dense form.
checksums           rmd160  bf162d05abffac55851a671009de9e97b8df5646 \
                    sha256  205a3481e9db33f9f0318763027f7923364d409cd4121b413a0b25edc2c21307 \
                    size    216721
github.tarball_from archive

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
