# -*- 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 polyroots-fortran 1.4.0
name                fortran-polyroots
revision            0
categories-append   math
license             Apache-2
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Polynomial roots with modern Fortran
long_description    Modern Fortran library for finding the roots of real and complex polynomial equations.
checksums           rmd160  46b127de878105e580694e9b97adad4227320cc6 \
                    sha256  20c6a89c2bd00fbce7da5d99694671881805aa04e71bb909fa4a0bd20a58df7f \
                    size    98588
github.tarball_from archive

# Notice that this port uses ieee_arithmetic module which may not be available on some platforms.

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

test.run            yes
