# -*- 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$

PortSystem 1.0

name                libmpc
version             1.0.3
categories          devel
platforms           darwin
license             LGPL-3+ GFDL-1.3+
maintainers         mww openmaintainer

description         GNU MPC
long_description    GNU MPC is a C library for the arithmetic of \
                    complex numbers with arbitrarily high precision \
                    and correct rounding of the result. It extends \
                    the principles of the IEEE-754 standard for fixed \
                    precision real floating point numbers to complex \
                    numbers, providing well-defined semantics for \
                    every operation. At the same time, speed of \
                    operation at high precision is a major design goal.
homepage            http://www.multiprecision.org/mpc/

depends_lib         port:gmp port:mpfr

master_sites        http://www.multiprecision.org/mpc/download/
distname            mpc-${version}
checksums           rmd160  22f4c3bed0c4298bcafbd4cbfa9d74cb5bdda186 \
                    sha256  617decc6ea09889fb08ede330917a00b16809b8db88c29c31bfbb49cbf88ecc3

test.run            yes
test.target         check

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