# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           github 1.0
PortGroup           makefile 1.0

github.setup        Zeta611 polycalc 8c6922fab48f8e23ac4f02d00cd27cb271a02965
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             2023.01.03
revision            0
categories          math
license             MIT
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         PolyCalc: Polynomial Calculator
long_description    PolyCalc is a polynomial calculator. It calculates and expands polynomials, equations and relations. \
                    It supports simple variable assignments for the ease of handling expressions.
checksums           rmd160  54221d07103237afc407a791e5d0b725fc2da7a9 \
                    sha256  de11c920f403d8a87f9415d11df7eb8cdc212ea799f13b3b4f0f24bf31f6fc17 \
                    size    12422

depends_build-append \
                    port:bison \
                    port:flex

compiler.c_standard 2017

use_parallel_build  no

build.target

destroot {
    # Rename, so that it is recognizable:
    xinstall -d -m 0755 ${destroot}${prefix}/bin/
    move ${worksrcpath}/build/poly ${destroot}${prefix}/bin/${name}
}
