# -*- 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 2024.09.23.00 v
revision            0
categories          devel
license             BSD
maintainers         nomaintainer
description         Library for fast prototyping software in modern C++
long_description    Fatal 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.
checksums           rmd160  ef75b2c8af5fc2686300ee21d20fd99b1193b715 \
                    sha256  c4c473051d1953a40a0c8172e6dea5a71d6522aa03c61aa52ec64a1636df8190 \
                    size    651042
github.tarball_from releases
distname            ${name}-v${version}
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}
        }
    }
}
