# -*- 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
PortGroup           makefile 1.0

github.setup        georgeweigt eigenmath c3e3da104dbef888c3e52659134d5e9bdc12764d
version             2024.06.20
revision            0
categories          math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             BSD
description         Symbolic math app
long_description    {*}${description}
homepage            https://georgeweigt.github.io
checksums           rmd160  1d84ab83411872100eb181c03d1eda0414458086 \
                    sha256  f90e066594fcb28802fc67dfce4289191cbbdd6e5b891e0e877ce237b245c6ca \
                    size    862449
github.tarball_from archive

patchfiles-append   patch-Makefile.diff

build.target        eigenmath

destroot {
    copy ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} LICENSE README.md ${destroot}${docdir}
}

test.run            yes

test {
    system -W ${worksrcpath} "./eigenmath test/selftest1 && ./eigenmath test/selftest2"
}
