Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/mpfr-2.3.1.ebuild,v 1.7 2008/05/02 04:55:40 vapier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-libs/mpfr/mpfr-2.3.1.ebuild,v 1.7 2008/05/02 04:55:40 vapier Exp $ |
4 |
|
4 |
|
5 |
# NOTE: we cannot depend on autotools here starting with gcc-4.3.x |
5 |
# NOTE: we cannot depend on autotools here starting with gcc-4.3.x |
6 |
inherit eutils |
6 |
inherit eutils toolchain-funcs |
7 |
|
7 |
|
8 |
MY_PV=${PV/_p*} |
8 |
MY_PV=${PV/_p*} |
9 |
MY_P=${PN}-${MY_PV} |
9 |
MY_P=${PN}-${MY_PV} |
Lines 24-29
Link Here
|
24 |
src_unpack() { |
24 |
src_unpack() { |
25 |
unpack "${MY_P}.tar.bz2" |
25 |
unpack "${MY_P}.tar.bz2" |
26 |
cd "${S}" |
26 |
cd "${S}" |
|
|
27 |
if tc-is-cross-compiler ; then |
28 |
epatch "${FILESDIR}"/${P}-disable-rpath.patch |
29 |
epatch "${FILESDIR}"/${P}-la-to-lai.patch |
30 |
fi |
27 |
[[ ${PLEVEL} == ${PV} ]] && return 0 |
31 |
[[ ${PLEVEL} == ${PV} ]] && return 0 |
28 |
for ((i=1; i<=PLEVEL; ++i)) ; do |
32 |
for ((i=1; i<=PLEVEL; ++i)) ; do |
29 |
patch=patch$(printf '%02d' ${i}) |
33 |
patch=patch$(printf '%02d' ${i}) |