# -*- 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        adishavit argh 1.3.2 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                arghandler
revision            1
categories          devel
license             BSD
platforms           any
supported_archs     noarch
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Argh! A minimalist argument handler
long_description    {*}${description}
checksums           rmd160  34498b93e41f4dd5e4a0a4af7c64c63c0f59cefb \
                    sha256  f0c1900e67459da00fd2e31a022d666a5b0c9195b714030811355925b16b779e \
                    size    101455

patchfiles          0001-Fix-building-tests-on-PPC.patch \
                    0002-CMakeLists-fix-installation-on-macOS.patch

compiler.cxx_standard 2011
compiler.thread_local_storage yes

configure.args-append \
                    -DARGH_MASTER_PROJECT=ON \
                    -DBUILD_EXAMPLES=OFF \
                    -DBUILD_TESTS=ON

test.run            yes
test.cmd            ./argh_tests
test.target
