# $Id$ PNAME="mpfr" PVER="4.0.2" PBUILD="r4" PATCHLEVEL="" PCAT="dev-libs" DESCRIPTION="The MPFR library is a C library for multiple-precision floating-point computations with correct rounding." HOMEPAGE="http://www.mpfr.org/" DEPEND=">= dev-libs/gmp-dev-6.2" SRCFILE="${PNAME}-${PVER}.tar.xz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude multilib mbuild SRC_URI=( #http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/distfiles/${SRCFILE} http://www.mpfr.org/${PNAME}-current/${SRCFILE} http://www.mpfr.org/${PNAME}-${PVER}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) if [[ -n ${PATCHLEVEL} ]] then SRC_URI+=( mirror://${PNAME}/${PNAME}-${PVER}-p${PATCHLEVEL}.patch ) fi UP2DATE="updatecmd ${HOMEPAGE}/${PNAME}-current | lasttarball xz" src_prepare() { munpack ${SRCFILE} || die if [[ -n ${PATCHLEVEL} ]] then # -Np1 is required, weird patch mpatch -Np1 ${PNAME}-${PVER}-p${PATCHLEVEL}.patch || die fi } src_compile() { mconfigure --enable-thread-safe || die mmake || die }