# -*- 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
# $Id: Portfile 105221 2013-04-13 19:26:28Z larryv@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-gmpy2
epoch               1
version             2.0.0
maintainers         alluvialsw.com:md14-macports openmaintainer
license             LGPL-2.1+
platforms           darwin
description         General multiple precision arithmetic module for Python
long_description \
    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            http://code.google.com/p/gmpy/
master_sites        googlecode:gmpy
distname            gmpy2-${version}
use_zip             yes
checksums           rmd160  f46c4ee9af8828bce476c940878616003bc06519 \
                    sha256  ecaccceb8fa4f75e631ae0211fd1e1ca1c24d8cdcc371e961052d1d038ac577a

python.versions     26 27 31 32 33

if {$subport != $name} {
    depends_lib-append  port:gmp port:libmpc port:mpfr

    post-destroot {
        xinstall -m 644 -W ${worksrcpath} README \
            ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type      none
}
