# -*- 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
PortGroup           legacysupport 1.1

github.setup        catchorg Catch2 3.15.0 v
github.tarball_from archive
name                catch2
revision            0

categories          devel
license             Boost-1
maintainers         {gmail.com:howarth.at.macports @jwhowarth} openmaintainer

description         Catch 2: a modern, C++-native, header-only, test framework for unit-tests
long_description    {*}${description}, TDD and BDD - using C++14, C++17 and later.

checksums           rmd160  d3aa2fcb0dca23fc48fd45cd61140b5032249f4c \
                    sha256  9650c55e497759cc39b977e45524bc8acb15256061c112080916ab6cb0b1ea66 \
                    size    1191813

compiler.cxx_standard 2014

# Old clangs apparently have trouble with std::is_constructible.
# https://github.com/catchorg/Catch2/issues/1935
# https://github.com/catchorg/Catch2/issues/946
compiler.blacklist-append   {clang < 900}

# error: 'uncaught_exceptions' is unavailable: introduced in macOS 10.12
legacysupport.use_mp_libcxx yes
legacysupport.newest_darwin_requires_legacy 16

github.livecheck.regex  {([0-9.]+)}
