# -*- 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        thelink2012 any a05d5ad91cfbca0153adb7d7b3e6456fffc7b812
version             2024.05.01
revision            0
categories          devel
license             Boost-1
platforms           {darwin any}
maintainers         nomaintainer
description         Implementation of std::experimental::any, including small object optimization, \
                    for C++11 compilers
long_description    {*}${description}
checksums           rmd160  d3cc690ba6a23e50453ae9578fa09d873f228be7 \
                    sha256  0148f38d7a97bec157f9d8b5420ff6cb47cecebc4b8103c4db5bc4bc0e522a92 \
                    size    9486
github.tarball_from archive
installs_libs       no

compiler.cxx_standard 2011

configure.args-append \
                    -DBUILD_TESTING=ON

destroot {
    copy ${worksrcpath}/any.hpp ${destroot}${prefix}/include/
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} README.md LICENSE_1_0.txt ${destroot}${docdir}
}

test.run            yes
test.env            DYLD_LIBRARY_PATH=${cmake.build_dir}
