# -*- 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.12.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  283e547fa97981b0109e3b15dbdf7609f63a4e82 \
                    sha256  e077079f214afc99fee940d91c14cf1a8c1d378212226bb9f50efff75fe07b23 \
                    size    1416567

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.]+)}
