# -*- coding: utf-8; mode: tcl; 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           octave 1.0

octave.setup        github gnu-octave pkg-apa 1.1.1 v
octave.module       apa
revision            0

license             GPL-3+
maintainers         {mps @Schamschula} openmaintainer
description         Arbitrary Precision Arithmetic (APA) package for Octave/Matlab.
long_description    {*}${description} This package is a wrapper around the MPFR \
                    library, which provides arbitrary precision floating-point \
                    arithmetic. The package allows users to perform calculations with \
                    a precision that can be set at runtime, making it suitable for \
                    applications that require high precision, such as numerical \
                    analysis and scientific computing.

checksums           rmd160  65a2042e6ff110c8a36dc44b0466962e94832831 \
                    sha256  3961d6091fc26ba60e9d46e49d8ae5acf497178255e7d9f5e015bed6d03c3499 \
                    size    168567

depends_lib         port:libomp \
                    port:mpfr

patchfiles          patch-inst-install_apa.m.diff \
                    patch-inst-mex-mex_apa_interface.h.diff

post-patch {
    reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/inst/install_apa.m
}
