# -*- 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           github 1.0

github.setup        modern-fortran neural-fortran 0.20.0 v
revision            0
categories          fortran science
license             BSD
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Parallel framework for deep learning
long_description    {*}${description}
checksums           rmd160  9a8bdf9f569d099d6b843c770b4daf3767c339bb \
                    sha256  fb2856946a596e6bdaa1fd8fde5e95daf3394ad3e2d8ed7ad94eea6ea2b942a6 \
                    size    89846
github.tarball_from archive

# https://github.com/modern-fortran/neural-fortran/issues/216
cmake.build_type    Release

depends_build-append \
                    port:curl

compiler.blacklist-append \
                    {*gcc-[34].*} {macports-gcc-[56]} {clang < 500}

configure.args-append \
                    -Dneural-fortran_BUILD_TESTING=ON \
                    -Dneural-fortran_BUILD_EXAMPLES=OFF

depends_test-append port:curl

# FIXME: one test fails: https://github.com/modern-fortran/neural-fortran/issues/218
test.run            yes
