# -*- 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           github 1.0

github.setup        facebook fatal 2026.09.14.00 v
revision            0
categories          devel
license             BSD
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Library for fast prototyping software in modern C++
long_description    ${name} is a library for fast prototyping software in modern C++. \
                    It provides facilities to enhance the expressive power of C++. \
                    The library is heavily based on template meta-programming, \
                    while keeping the complexity under-the-hood.
distname            ${name}-v${version}
checksums           rmd160  be8b8c3204b0230bd126a76774116ac126fcc071 \
                    sha256  312149b21822fabd1c72b6dc5278d5f2aeef4a1ccb9aeadee892ec450775b9e9 \
                    size    651126
github.tarball_from releases
extract.mkdir       yes

platforms           any
supported_archs     noarch

use_configure       no
build               {}

destroot {
    copy ${worksrcpath}/${name} ${destroot}${prefix}/include
    xinstall -d ${destroot}${prefix}/share/${name}
    xinstall -W ${worksrcpath} README.md CONTRIBUTING.md LICENSE PATENTS \
        ${destroot}${prefix}/share/${name}
}

post-destroot {
    fs-traverse f ${destroot}${prefix}/include/${name} {
        if {[file isfile ${f}] && [file extension ${f}] eq ".cpp"} {
            delete ${f}
        }
    }
}
