| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-5.0.5.ebuild,v 1.1 2012/05/06 18:16:34 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-5.0.5.ebuild,v 1.2 2012/05/22 23:12:49 vapier Exp $ |
| 4 | |
4 | |
| 5 | inherit flag-o-matic eutils libtool unpacker toolchain-funcs |
5 | inherit flag-o-matic eutils libtool unpacker toolchain-funcs |
| 6 | |
6 | |
| 7 | MY_PV=${PV/_p*} |
7 | MY_PV=${PV/_p*} |
| 8 | MY_P=${PN}-${MY_PV} |
8 | MY_P=${PN}-${MY_PV} |
| … | |
… | |
| 26 | src_unpack() { |
26 | src_unpack() { |
| 27 | unpacker_src_unpack |
27 | unpacker_src_unpack |
| 28 | cd "${S}" |
28 | cd "${S}" |
| 29 | [[ -d ${FILESDIR}/${PV} ]] && EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch "${FILESDIR}"/${PV} |
29 | [[ -d ${FILESDIR}/${PV} ]] && EPATCH_SUFFIX="diff" EPATCH_FORCE="yes" epatch "${FILESDIR}"/${PV} |
| 30 | epatch "${FILESDIR}"/${PN}-4.1.4-noexecstack.patch |
30 | epatch "${FILESDIR}"/${PN}-4.1.4-noexecstack.patch |
| 31 | epatch "${FILESDIR}"/${PN}-5.0.2-x32-support.patch |
31 | epatch "${FILESDIR}"/${PN}-5.0.5-x32-support.patch |
| 32 | |
32 | |
| 33 | # disable -fPIE -pie in the tests for x86 #236054 |
33 | # disable -fPIE -pie in the tests for x86 #236054 |
| 34 | if use x86 && gcc-specs-pie ; then |
34 | if use x86 && gcc-specs-pie ; then |
| 35 | epatch "${FILESDIR}"/${PN}-5.0.1-x86-nopie-tests.patch |
35 | epatch "${FILESDIR}"/${PN}-5.0.1-x86-nopie-tests.patch |
| 36 | fi |
36 | fi |