--- /usr/portage/dev-libs/mpfr/mpfr-3.1.2.ebuild 2013-04-29 10:31:08.000000000 -0600 +++ mpfr-3.1.1.ebuild 2013-07-04 15:09:04.035221868 -0600 @@ -1,11 +1,11 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/mpfr-3.1.2.ebuild,v 1.2 2013/04/29 16:08:45 bicatali Exp $ EAPI="3" # NOTE: we cannot depend on autotools here starting with gcc-4.3.x -inherit eutils multilib +inherit eutils libtool multilib MY_PV=${PV/_p*} MY_P=${PN}-${MY_PV} @@ -39,11 +39,16 @@ done sed -i '/if test/s:==:=:' configure #261016 find . -type f -print0 | xargs -0 touch -r configure + + # needed for FreeMiNT + [[ ${CHOST} == *-mint* ]] && elibtoolize } src_configure() { econf \ --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --with-gmp-lib="${EPREFIX}"/usr/$(get_libdir) \ + --with-gmp-include="${EPREFIX}"/usr/include || die $(use_enable static-libs static) } @@ -61,9 +66,9 @@ } pkg_preinst() { - preserve_old_lib /usr/$(get_libdir)/libmpfr.so.1 + preserve_old_lib /usr/$(get_libdir)/libmpfr$(get_libname 1) } pkg_postinst() { - preserve_old_lib_notify /usr/$(get_libdir)/libmpfr.so.1 + preserve_old_lib_notify /usr/$(get_libdir)/libmpfr$(get_libname 1) }