# -*- 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 350
revision            0
epoch               1
categories          math
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
license             BSD
description         Symbolic math app
long_description    {*}${description}
checksums           rmd160  3450ac3664ecfa0b8968b6e0bb966213aabad335 \
                    sha256  8092a385a8b4ad149910239c56db23f5fbc16da47291af006e0f230316d83c4e \
                    size    1038045
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"
}
