# -*- 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        onqtam doctest 2.4.11 v
revision            0

categories          devel
license             MIT
platforms           any
supported_archs     noarch
maintainers         {linux.com:nickblack @dankamongmen} openmaintainer

description         Fast header-only C++ unit testing
long_description    doctest is a light and feature-rich C++98 / C++11 \
                    single-header testing framework for unit tests and TDD.

checksums           rmd160  6ada5b26b61110851769d084d1133bc3bb19c91a \
                    sha256  632ed2c05a7f53fa961381497bf8069093f0d6628c5f26286161fbd32a560186 \
                    size    2183312
github.tarball_from archive

compiler.cxx_standard   2011
compiler.thread_local_storage yes

# https://github.com/doctest/doctest/issues/897
patchfiles-append   patch-no-werror.diff

# extensions/mpi_reporter.h:101:16: error: invalid conversion from 'const void*' to 'void*' [-fpermissive]
configure.cxxflags-append \
                    -fpermissive

# PortGroup           mpi 1.0
# 
# mpi.setup           default
# 
# pre-configure {
#     configure.args-append \
#         -DMPIEXEC_EXECUTABLE=${prefix}/bin/${mpi.exec} \
#         -DMPI_CXX_COMPILER=${prefix}/bin/${mpi.cxx}
# }

# A few tests fail becase it is looking for a .dylib in the MacPorts prefix,
# but it is only present in the examples directory (the port install no libs).
test.run            yes
