# -*- 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           python 1.0

name                py-mpmath
version             1.4.0
revision            0

categories-append   math
platforms           {darwin any}
license             BSD
supported_archs     noarch

python.versions     39 310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

description         Arbitrary-precision floating-point library for Python
long_description    {*}${description}

homepage            https://mpmath.org

checksums           rmd160  67ac557c3e27ece5c0bd46daf4f7b16f70a00ae4 \
                    sha256  d272b40c031ba0ee385e7e5fc735b48560d9838a0d7fbca109919efd23580a22 \
                    size    2092745

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} LICENSE \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
