# -*- 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        Taywee args 6.6.1
revision            0
categories          devel
platforms           any
license             MIT
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Simple header-only C++ argument parser library
long_description    {*}${description}. Supposed to be flexible and powerful, \
                    and attempts to be compatible with the functionality \
                    of the Python standard argparse library.
checksums           rmd160  40b830839157869a5b8e7a418ecac2c3d648191d \
                    sha256  61cdbb13f55493e6ffe07018c86b17f9ff68a5c1059eb15f4f079e04429915ff \
                    size    119662
github.tarball_from archive
supported_archs     noarch

compiler.cxx_standard   2011

configure.args-append \
                    -DARGS_BUILD_EXAMPLE=OFF \
                    -DARGS_BUILD_UNITTESTS=ON \
                    -DARGS_MAIN_PROJECT=ON

test.run            yes
test.cmd            ctest
test.target

post-destroot {
    set destdocdir  ${destroot}${prefix}/share/doc/${name}

    xinstall -d ${destdocdir}
    xinstall -W ${worksrcpath} -m 644 \
        CHANGELOG \
        CONTRIBUTING.md \
        LICENSE \
        README.md \
        ${destdocdir}
}
