# $Id: Portfile 58334 2009-09-26 21:16:02Z blb@macports.org $

PortSystem          1.0
PortGroup           python25 1.0
name                py25-mpmath
version             0.13
categories-append   math
maintainers         nomaintainer
description         Arbitrary-precision floating-point library for Python
long_description \
   Mpmath is a pure-Python library for arbitrary-precision floating-point \
   arithmetic that implements an extensive set of mathematical functions.

platforms           darwin

homepage            http://code.google.com/p/mpmath/
master_sites        http://mpmath.googlecode.com/files/
distname            mpmath-${version}

checksums           md5     ed7812cc7470c0b8fbbca76a2ff02075 \
                    sha1    2ae72cb66b4d22e9db9dd8c4a0f3ac9512671131 \
                    rmd160  b379d88a494be862f57b01526745ae24f0e9b3f0

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} CHANGES LICENSE README \
      ${destroot}${prefix}/share/doc/${name}
   eval xinstall -m 644 [glob ${worksrcpath}/doc/source/*.txt] \
      ${destroot}${prefix}/share/doc/${name}
   file copy ${worksrcpath}/demo ${destroot}${prefix}/share/doc/${name}/
}

livecheck.type      regex
livecheck.url       http://code.google.com/p/mpmath/downloads/list
livecheck.regex     {mpmath-([0-9.]+)\.tar\.gz}

