# $Id: Portfile 77736 2011-04-10 21:15:33Z mww@macports.org $

PortSystem 1.0

name                libmpc
version             0.9
categories          devel
maintainers         mww openmaintainer
platforms           darwin
description         C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result
long_description    ${description}

homepage            http://www.multiprecision.org/mpc/
master_sites        http://www.multiprecision.org/mpc/download/
distname            mpc-${version}
checksums           md5     0d6acab8d214bd7d1fbbc593e83dd00d \
                    sha1    229722d553030734d49731844abfef7617b64f1a \
                    rmd160  63d5fb8ab2725839e7565716c4d20187b606e2c8

depends_lib         port:gmp port:mpfr

test.run    yes
test.target    check

livecheck.type      regex
livecheck.url       http://www.multiprecision.org/index.php?prog=mpc&page=download
livecheck.regex     href=\"mpc/download/mpc-(.*?)${extract.suffix}\"
