# -*- 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                CatalinMihaiGhita libcat f6ae598f1ecfe71413947a3c59f1055380f29306
version                     2020.02.29
revision                    0
categories                  math
platforms                   any
license                     MPL-2
maintainers                 {@barracuda156 macos-powerpc.org:barracuda}
description                 C++ Category Theory
long_description            This is a C++17 library which implements concepts \
                            from the Category Theory.
checksums                   rmd160  c97532857275a308d1d284bee9b4503991c3214f \
                            sha256  e8d44073201988a64446558246446d760f6933e60694f1318bf9e627238da767 \
                            size    10189
github.tarball_from         archive
supported_archs             noarch

compiler.cxx_standard       2017

depends_build-append        port:gtest

destroot {
    xinstall -d ${destroot}${prefix}/include/libcat
    foreach inc [glob -directory ${worksrcpath}/include *.h] {
        copy ${inc} ${destroot}${prefix}/include/libcat
    }
}

# FWIW, tests appear to be broken: https://github.com/CatalinMihaiGhita/libcat/issues/1
test.run                    yes
test.cmd                    ${cmake.build_dir}/tests/tests
test.target
