# -*- 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 101539 2013-01-13 12:54:38Z cal@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-gmpy
version             1.16
maintainers         alluvialsw.com:md14-macports openmaintainer
license             LGPL-2.1+
platforms           darwin
description         General multiple precision arithmetic module for Python
long_description \
    GMPY is a C-coded Python extension module that supports fast \
    integer and rational multiple-precision arithmetic using the \
    GMP library.

homepage            http://code.google.com/p/gmpy/
master_sites        googlecode:gmpy
distname            gmpy-${version}
use_zip             yes
checksums           rmd160  9d1215f520a4db11372dc1c99226f06bb924f68b \
                    sha256  58eca10dfcbb68c537acf6815b9904a813da0df90936ffdd7b3cc7028e785fad

python.versions     25 26 27 31 32 33
python.default_version 27

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

    post-destroot {
        xinstall -m 644 -W ${worksrcpath} doc/gmpydoc.txt doc/index.html \
            README ${destroot}${prefix}/share/doc/${subport}
    }

    livecheck.type      none
}
