From 654d93249803a12d386f9bbf9ffbd33dcbb7fcad Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 17 Apr 2005 07:35:54 +0000 Subject: setup a better default src_unpack so binutils ebuilds dont have to do anything --- eclass/toolchain-binutils.eclass | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'eclass/toolchain-binutils.eclass') diff --git a/eclass/toolchain-binutils.eclass b/eclass/toolchain-binutils.eclass index 61639fd2dab8..65b1be620211 100644 --- a/eclass/toolchain-binutils.eclass +++ b/eclass/toolchain-binutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.34 2005/04/12 04:32:58 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-binutils.eclass,v 1.35 2005/04/17 07:35:54 vapier Exp $ # We install binutils into CTARGET-VERSION specific directories. This lets # us easily merge multiple versions for multiple targets (if we wish) and @@ -50,13 +50,13 @@ MY_BUILDDIR=${WORKDIR}/build is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } -toolchain-binutils_src_unpack() { +tc-binutils_unpack() { unpack ${A} mkdir -p "${MY_BUILDDIR}" [[ -d ${WORKDIR}/patch ]] && mkdir "${WORKDIR}"/patch/skip } -apply_binutils_updates() { +tc-binutils_apply_patches() { cd "${S}" [[ -n ${PATCHVER} ]] && epatch "${WORKDIR}"/patch @@ -81,6 +81,11 @@ apply_binutils_updates() { strip-linguas -i */po } +toolchain-binutils_src_unpack() { + tc-binutils_unpack + tc-binutils_apply_patches +} + toolchain-binutils_src_compile() { strip-flags && replace-flags -O3 -O2 #47581 -- cgit v1.2.3-65-gdbad