# -*- 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
maintainers {@mndavidoff alluvialsw.com:md14-macports} openmaintainer
description General multiple precision arithmetic module for Python
GMPY2 is a C-coded Python extension module that supports fast \
multiple-precision arithmetic. GMPY2 supports the GMP library \
for integer and rational arithmetic and multiple-precision real \
and complex arithmetic as provided by the MPFR and MPC libraries.
homepage https://github.com/aleaxit/gmpy
master_sites pypi:g/gmpy2
distname gmpy2-${version}
checksums rmd160 d7a4f6d8fe370e4565f0af00b903d6b6740e4718 \
sha256 dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f \
python.versions 27 35 36 37
if {${name} ne ${subport}} {
depends_lib-append port:gmp port:libmpc port:mpfr
patchfiles patch-setup.py.diff
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/setup.py
xinstall -m 644 -W ${worksrcpath} README \
${destroot}${prefix}/share/doc/${subport}