# $Id: Portfile 68606 2010-06-07 21:20:59Z blb@macports.org $

PortSystem          1.0
PortGroup           python26 1.0
name                py26-mpmath
version             0.15
categories-append   math
maintainers         blb openmaintainer
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     40a917ce8c55325f87c53b5095ca71a6 \
                    sha1    73d94ef01f2d50b50edfd2c1383e894663f792e4 \
                    rmd160  cba11fc866e073d81de1482b0ebd451fef4cb861

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}

