| 1 |
# Copyright 1999-2006 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils/binutils-2.16.1-r1.ebuild,v 1.3 2006/02/11 04:20:29 vapier Exp $ |
| 4 |
|
| 5 |
PATCHVER="1.6" |
| 6 |
UCLIBC_PATCHVER="1.0" |
| 7 |
ELF2FLT_VER="" |
| 8 |
inherit toolchain-binutils autotools |
| 9 |
|
| 10 |
# ARCH - packages to test before marking |
| 11 |
KEYWORDS="-* ~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
| 12 |
|
| 13 |
src_unpack() { |
| 14 |
tc-binutils_unpack |
| 15 |
|
| 16 |
# Patches |
| 17 |
cd "${WORKDIR}"/patch |
| 18 |
# FreeBSD patches are not safe #122369 |
| 19 |
rm -f 00_all_freebsd* |
| 20 |
|
| 21 |
tc-binutils_apply_patches |
| 22 |
|
| 23 |
sed -e 's:-linux-gnu:-linux-:g' "${FILESDIR}/${P}-ldhints.patch" \ |
| 24 |
> "${T}/${P}-ldhints.patch" |
| 25 |
epatch "${T}/${P}-ldhints.patch" |
| 26 |
|
| 27 |
cd ${S}/ld |
| 28 |
eautoreconf |
| 29 |
} |