# -*- 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        grzegorzmazur yacas 1.9.1 v
revision            0
categories          math
license             LGPL-2.1+
homepage            https://www.yacas.org
maintainers         nomaintainer
description         Yet Another Computer Algebra System
long_description    YACAS is an easy to use, general purpose Computer Algebra \
                    System, a program for symbolic manipulation of mathematical \
                    expressions. It uses its own programming language designed \
                    for symbolic as well as arbitrary-precision numerical computations. \
                    The system has a library of scripts that implement many of the symbolic \
                    algebra operations – new algorithms can be easily added to the library.

github.tarball_from archive
checksums           rmd160  a644ad63f6f25743c12c4dbdbe3f141b47361257 \
                    sha256  36333e9627a0ed27def7a3d14628ecaab25df350036e274b37f7af1d1ff7ef5b \
                    size    38815043

depends_build-append \
                    port:gtest

compiler.cxx_standard 2017

configure.args-append \
                    -DENABLE_CYACAS_CONSOLE=ON \
                    -DENABLE_CYACAS_GUI=OFF \
                    -DENABLE_CYACAS_GUI_PRIVATE_CODEMIRROR=OFF \
                    -DENABLE_CYACAS_GUI_PRIVATE_MATHJAX=OFF \
                    -DENABLE_CYACAS_KERNEL=OFF \
                    -DENABLE_CYACAS_UNIT_TESTS=ON \
                    -DENABLE_CYACAS_BENCHMARKS=OFF \
                    -DENABLE_JYACAS=OFF \
                    -DENABLE_DOCS=OFF \
                    -DENABLE_CODE_COVERAGE=OFF \
                    -DGTEST_ROOT=${prefix}/src/googletest

# Two tests fail on ppc: https://github.com/grzegorzmazur/yacas/issues/348
test.run            yes
