Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-devel/multilib-gcc-wrapper: metadata.xml multilib-gcc-wrapper-0.ebuild ChangeLog
Date: Mon, 30 Jun 2014 20:18:03
Message-Id: 20140630201754.55A8D2004E@flycatcher.gentoo.org
1 mgorny 14/06/30 20:17:54
2
3 Added: metadata.xml multilib-gcc-wrapper-0.ebuild
4 ChangeLog
5 Log:
6 Introduce the initial version.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.1 sys-devel/multilib-gcc-wrapper/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/multilib-gcc-wrapper/metadata.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/multilib-gcc-wrapper/metadata.xml?rev=1.1&content-type=text/plain
15
16 Index: metadata.xml
17 ===================================================================
18 <?xml version="1.0" encoding="UTF-8"?>
19 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
20 <pkgmetadata>
21 <maintainer>
22 <email>mgorny@g.o</email>
23 <name>Michał Górny</name>
24 </maintainer>
25 <maintainer>
26 <email>multilib@g.o</email>
27 <name>gx86 multilib team</name>
28 </maintainer>
29 </pkgmetadata>
30
31
32
33 1.1 sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0.ebuild
34
35 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0.ebuild?rev=1.1&view=markup
36 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0.ebuild?rev=1.1&content-type=text/plain
37
38 Index: multilib-gcc-wrapper-0.ebuild
39 ===================================================================
40 # Copyright 1999-2014 Gentoo Foundation
41 # Distributed under the terms of the GNU General Public License v2
42 # $Header: /var/cvsroot/gentoo-x86/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0.ebuild,v 1.1 2014/06/30 20:17:54 mgorny Exp $
43
44 EAPI=5
45
46 inherit eutils multilib
47
48 DESCRIPTION="Wrappers for gcc tools to be used on non-native CHOSTs"
49 HOMEPAGE="http://www.gentoo.org"
50 SRC_URI=""
51
52 LICENSE="public-domain"
53 SLOT="0"
54 KEYWORDS="~amd64"
55 IUSE=""
56
57 RDEPEND="sys-devel/gcc:="
58
59 S=${WORKDIR}
60
61 mkwrap() {
62 einfo " ${2}"
63
64 cat > "${T}"/wrapper <<-_EOF_
65 #!${EPREFIX}/bin/sh
66 exec ${1} $(get_abi_CFLAGS) "\${@}"
67 _EOF_
68
69 newbin "${T}"/wrapper "${2}"
70 }
71
72 src_install() {
73 local host_prefix=${CHOST}
74 # stolen from sys-devel/gcc-config
75 # TODO: check if all of them actually support $(get_ABI_CFLAGS)
76 local tools=(
77 cpp cc gcc c++ g++ f77 g77 gcj gcjh gdc gdmd gfortran gccgo
78 )
79
80 cd "${EROOT%/}"/usr/bin || die
81 eshopts_push -s nullglob
82
83 # same as toolchain.eclass
84 : ${TARGET_DEFAULT_ABI:=${DEFAULT_ABI}}
85 : ${TARGET_MULTILIB_ABIS:=${MULTILIB_ABIS}}
86 local ABI t e
87 for ABI in $(get_all_abis TARGET); do
88 [[ ${ABI} == ${TARGET_DEFAULT_ABI} ]] && continue
89
90 einfo "Creating wrappers for ${ABI} ..."
91 for t in "${tools[@]}"; do
92 # look for both plain *-gcc and e.g. *-gcc-4.8.3
93 # (but avoid *-gcc-nm)
94 # note: nullglob applied above
95 for e in ${host_prefix}[-]${t}{,-[0-9]*}; do
96 local newname=$(get_abi_CHOST)-${e#${host_prefix}-}
97
98 einfo " ${newname}"
99
100 cat > "${T}"/wrapper <<-_EOF_
101 #!${EPREFIX}/bin/sh
102 exec ${e} $(get_abi_CFLAGS) "\${@}"
103 _EOF_
104
105 newbin "${T}"/wrapper "${newname}"
106 done
107 done
108 done
109
110 eshopts_pop
111 }
112
113
114
115 1.1 sys-devel/multilib-gcc-wrapper/ChangeLog
116
117 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/multilib-gcc-wrapper/ChangeLog?rev=1.1&view=markup
118 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/multilib-gcc-wrapper/ChangeLog?rev=1.1&content-type=text/plain
119
120 Index: ChangeLog
121 ===================================================================
122 # ChangeLog for sys-devel/multilib-gcc-wrapper
123 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
124 # $Header: /var/cvsroot/gentoo-x86/sys-devel/multilib-gcc-wrapper/ChangeLog,v 1.1 2014/06/30 20:17:54 mgorny Exp $
125
126 *multilib-gcc-wrapper-0 (30 Jun 2014)
127
128 30 Jun 2014; Michał Górny <mgorny@g.o> +metadata.xml,
129 +multilib-gcc-wrapper-0.ebuild:
130 Introduce the initial version.