# -*- 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.0
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  c0d5336f28157be9acbdd9a47aeb0fd38b671f6a \
                    sha256  9949b763e4b43ad3362d5da365e7f6118df296bc29c1d2dff415baac1e430c43 \
                    size    106213
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}
}
