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

name                cppoptlib
github.setup        PatWie CppNumericalSolvers 5abb2ca3c5722dfd4e913deef6621a4d7d2f3292
version             2024.01.03
revision            0
categories          math
license             MIT
platforms           any
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Header-only C++17 optimization library
long_description    ${name} is light-weight header-only C++17 library \
                    of numerical optimization methods for non-linear \
                    functions based on Eigen.
checksums           rmd160  06ee36bfcf7ac1f8cc81047284c9718c95614de1 \
                    sha256  1db2d810e37b8396a212880b8819f3ed6efe6d19cead33a95a4a73798f8b6f87 \
                    size    18648
github.tarball_from archive
supported_archs     noarch

depends_run-append  path:share/pkgconfig/eigen3.pc:eigen3

compiler.cxx_standard   2017

use_configure       no

build               { }

destroot {
    delete ${worksrcpath}/include/${name}/BUILD
    copy ${worksrcpath}/include/${name} ${destroot}${prefix}/include
}
