Gentoo Archives: gentoo-dev

From: Benda Xu <heroxbd@g.o>
To: gentoo-dev@l.g.o
Cc: Benda Xu <heroxbd@g.o>
Subject: [gentoo-dev] [PATCH 4/7] toolchain.eclass: prefixify helper scripts.
Date: Sun, 08 Jan 2017 05:50:39
Message-Id: 1483854247-10948-5-git-send-email-heroxbd@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/7] RFC1: toolchain.eclass prefix support by Benda Xu
1 Directory prefixify part 2.
2 ---
3 eclass/toolchain.eclass | 10 +++++-----
4 1 file changed, 5 insertions(+), 5 deletions(-)
5
6 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
7 index 40759f5..17950c1 100644
8 --- a/eclass/toolchain.eclass
9 +++ b/eclass/toolchain.eclass
10 @@ -8,7 +8,7 @@ DESCRIPTION="The GNU Compiler Collection"
11 HOMEPAGE="https://gcc.gnu.org/"
12 RESTRICT="strip" # cross-compilers need controlled stripping
13
14 -inherit eutils fixheadtails flag-o-matic gnuconfig libtool multilib pax-utils toolchain-funcs versionator
15 +inherit eutils fixheadtails flag-o-matic gnuconfig libtool multilib pax-utils toolchain-funcs versionator prefix
16
17 if [[ ${PV} == *_pre9999* ]] ; then
18 EGIT_REPO_URI="git://gcc.gnu.org/git/gcc.git"
19 @@ -1764,10 +1764,10 @@ toolchain_src_install() {
20 # Rather install the script, else portage with changing $FILESDIR
21 # between binary and source package borks things ....
22 if ! is_crosscompile ; then
23 - insinto "${DATAPATH}"
24 - newins "${GCC_FILESDIR}"/awk/fixlafiles.awk-no_gcc_la fixlafiles.awk || die
25 - exeinto "${DATAPATH}"
26 - doexe "${GCC_FILESDIR}"/fix_libtool_files.sh || die
27 + insinto "${DATAPATH#${EPREFIX}}"
28 + newins "$(prefixify_ro "${GCC_FILESDIR}"/awk/fixlafiles.awk-no_gcc_la)" fixlafiles.awk || die
29 + exeinto "${DATAPATH#${EPREFIX}}"
30 + doexe "$(prefixify_ro "${GCC_FILESDIR}"/fix_libtool_files.sh)" || die
31 doexe "${GCC_FILESDIR}"/c{89,99} || die
32 fi
33
34 --
35 2.8.3