# -*- 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  cxx11 1.1

# NOTE: As of cppunit 1.14.0 dated April 13, 2017, the configure
# script now checks internally to make sure the requested compiler is
# C++11 compliant, and will error out if not. So, all we need to do
# here is to use the cxx11 PG to make sure the compiler is compliant.

# NOTE: CppUnit's public API also required C++11 for compiling, hence
# any project using CppUnit must be compiled with C++11 support,
# regardless of whether the project itself requires C++11.

name                cppunit
version             1.14.0
categories          devel
platforms           darwin
maintainers         {michaelld @michaelld} openmaintainer
license             LGPL-2.1
description         unit testing framework for C++
long_description    CppUnit is the C++ port of the famous JUnit framework for \
                    unit testing. Test output is in XML or text format for \
                    automatic testing and GUI based for supervised tests.

homepage            https://www.freedesktop.org/wiki/Software/cppunit/
master_sites        http://dev-www.libreoffice.org/src/

checksums           rmd160  9d2bec93f3cee98b95430b60d801f5ed886688aa \
                    sha256  3d569869d27b48860210c758c4f313082103a5e58219a7669b52bfd29d674780

configure.args      --disable-dot \
                    --disable-doxygen \
                    --disable-silent-rules

use_autoreconf      yes
autoreconf.args     -fvi

test.run            yes
test.target         check

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}