# -*- 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 geodesic-fortran 1.0.0
revision            0
categories-append   science
license             BSD
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Geodesic routines for modern Fortran
long_description    This is a library to solve geodesic problems on a planetary body.
checksums           rmd160  a35d01bceeb855c6d3d5cfb26386e99b720d7e19 \
                    sha256  eec42b8d7eeb2a0979f984a9434d1a25fbdd75b9ce12f06d8d718b98e1b5e6c3 \
                    size    164529

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

# Test uses ieee_arithmetic module which is not yet in GCC.
# See: https://github.com/iains/darwin-toolchains-start-here/discussions/40
if {${os.arch} ne "powerpc"} {
    test.run        yes
}