# -*- 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.1
revision            0

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

python.versions     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  ba4e5e25f8fa89ec2c111ae26d140da810239a98 \
                    sha256  efd6d1b75f09d69524a67609949812668b28e81ecbfe0ab449ced8c13e92642e \
                    size    2093211

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}
    }
}
