/[gentoo-x86]/sys-apps/prefix-chain-utils/prefix-chain-utils-0.2-r5.ebuild
Gentoo

Contents of /sys-apps/prefix-chain-utils/prefix-chain-utils-0.2-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Jul 13 15:13:00 2010 UTC (4 years ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
whitespace
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/prefix-chain-utils/prefix-chain-utils-0.2-r5.ebuild,v 1.1 2010/07/13 09:51:24 mduft Exp $
4
5 inherit prefix
6
7 DESCRIPTION="Chained EPREFIX utilities and wrappers"
8 HOMEPAGE="http://dev.gentoo.org/~mduft"
9 SRC_URI=""
10
11 LICENSE="GPL-3"
12 SLOT="0"
13 KEYWORDS="~ppc-aix ~ia64-hpux ~x86-interix ~x86-linux ~sparc-solaris ~x86-solaris ~x86-winnt"
14 IUSE=""
15
16 DEPEND=""
17 RDEPEND="sys-devel/gcc-config"
18
19 src_install() {
20 cp "${FILESDIR}"/*.in "${T}"
21 eprefixify "${T}"/*.in
22
23 for x in "${T}"/*.in; do
24 mv ${x} ${x%.in}
25 done
26
27 # install toolchain wrapper.
28 wrapperdir=/usr/${CHOST}/gcc-bin/${CHOST}-prefix-chain-wrapper/${PV}
29 wrappercfg=${CHOST}-prefix-chain-wrapper-${PV}
30
31 exeinto $wrapperdir
32 sed -i -e "s,@GENTOO_PORTAGE_CHOST@,${CHOST},g" "${T}"/prefix-chain-wrapper
33 doexe "${T}"/prefix-chain-wrapper
34
35 dosym $wrapperdir/prefix-chain-wrapper $wrapperdir/${CHOST}-gcc
36 dosym $wrapperdir/prefix-chain-wrapper $wrapperdir/${CHOST}-g++
37 dosym $wrapperdir/prefix-chain-wrapper $wrapperdir/${CHOST}-cpp
38 dosym $wrapperdir/prefix-chain-wrapper $wrapperdir/${CHOST}-c++
39
40 dosym $wrapperdir/${CHOST}-gcc $wrapperdir/gcc
41 dosym $wrapperdir/${CHOST}-g++ $wrapperdir/g++
42 dosym $wrapperdir/${CHOST}-cpp $wrapperdir/cpp
43 dosym $wrapperdir/${CHOST}-c++ $wrapperdir/c++
44
45 # LDPATH is required to keep gcc-config happy :(
46 cat > "${T}"/$wrappercfg <<EOF
47 GCC_PATH="${EPREFIX}/$wrapperdir"
48 LDPATH="${EPREFIX}/$wrapperdir"
49 EOF
50
51 insinto /etc/env.d/gcc
52 doins "${T}"/$wrappercfg
53
54 # install startprefix script.
55 exeinto /
56 doexe "${T}"/startprefix
57 }

  ViewVC Help
Powered by ViewVC 1.1.20