# -*- 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        SergiusTheBest plog 1.1.11
github.tarball_from archive
revision            0

categories          devel
license             MIT
platforms           any
supported_archs     noarch
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

description         Portable, simple and extensible C++ logging library
long_description    Plog is a header-only C++ logging library that is small, \
                    portable and extensible, with formatters and appenders \
                    for files, consoles, the system log and custom sinks.

checksums           rmd160  9633ccebf109212856ea61c9e501ead3d1de965b \
                    sha256  d60b8b35f56c7c852b7f00f58cbe9c1c2e9e59566c5b200512d0cdbb6309a7c2 \
                    size    208251

compiler.cxx_standard   2011

configure.args-append \
                    -DPLOG_BUILD_SAMPLES=OFF \
                    -DPLOG_BUILD_TESTS=ON \
                    -DPLOG_INSTALL=ON

# The tests check wchar_t with C, which the CXX-only project never enables.
patchfiles          patch-test-CMakeLists.txt.diff

# Thread IDs before 10.6 and on PowerPC; upstream https://github.com/SergiusTheBest/plog/pull/321
patchfiles-append   patch-Util.h-macos-thread-id.diff

test.run            yes
