# $Id$ PNAME="mpc" PVER="1.0.3" PBUILD="r7" PCAT="dev-libs" DESCRIPTION="MPC is a C library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result." HOMEPAGE="http://www.multiprecision.org/" # do not depend on glibc, as it depends ob libstdc++ and this wants mpc # as SRCDEPEND -> this may generate loops DEPEND=">= dev-libs/gmp-dev-6.0 >= dev-libs/mpfr-3.1" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude multilib SRC_URI=( http://www.multiprecision.org/${PNAME}/download/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd '${HOMEPAGE}?prog=mpc&page=download' | firsttarball gz" src_compile() { # fixes an issue with grep while building shared lib EGREP="grep -E" mconfigure || die mmake || die }