# -*- 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           cmake 1.1
PortGroup           compilers 1.0
PortGroup           github 1.0

github.setup        toml-f toml-f 0.4.2 v
revision            0
categories          fortran devel
license             {Apache-2 MIT}
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         TOML parser implementation for data serialization and deserialization in Fortran
long_description    {*}${description}
homepage            https://toml-f.readthedocs.io
checksums           rmd160  01ef90cdf64c80512e464ae1ed1c9fc6c38688ba \
                    sha256  6b49013d3bcd1043494c140d7b2da6b0cedd87648e4fc5179fcfcf41226d3232 \
                    size    406944
github.tarball_from releases

use_xz              yes

compilers.choose    fc f90
compilers.setup     require_fortran

platform darwin powerpc {
    # In fact all tests pass on PPC, however building them requires ieee_arithmetic support in gfortran, which atm is lacking in Macports.
    # See: https://github.com/toml-f/toml-f/issues/132
    patchfiles      patch-no-tests.diff
}

test.run            yes
