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/llvm: llvm-9999.ebuild ChangeLog
Date: Sun, 29 Jun 2014 09:59:38
Message-Id: 20140629095933.29FC520036@flycatcher.gentoo.org
1 mgorny 14/06/29 09:59:33
2
3 Modified: llvm-9999.ebuild ChangeLog
4 Log:
5 Rename clang to ${CHOST}-clang-${PV}. Add multilib wrappers.
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
8
9 Revision Changes Path
10 1.88 sys-devel/llvm/llvm-9999.ebuild
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild?rev=1.88&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild?rev=1.88&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild?r1=1.87&r2=1.88
15
16 Index: llvm-9999.ebuild
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild,v
19 retrieving revision 1.87
20 retrieving revision 1.88
21 diff -u -r1.87 -r1.88
22 --- llvm-9999.ebuild 1 May 2014 15:09:30 -0000 1.87
23 +++ llvm-9999.ebuild 29 Jun 2014 09:59:32 -0000 1.88
24 @@ -1,6 +1,6 @@
25 # Copyright 1999-2014 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild,v 1.87 2014/05/01 15:09:30 mgorny Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild,v 1.88 2014/06/29 09:59:32 mgorny Exp $
29
30 EAPI=5
31
32 @@ -65,10 +65,6 @@
33 # so why did it call itself ninja in the first place?
34 CMAKE_MAKEFILE_GENERATOR=emake
35
36 -MULTILIB_CHOST_TOOLS=(
37 - /usr/bin/llvm-config
38 -)
39 -
40 pkg_pretend() {
41 # in megs
42 # !clang !debug !multitarget -O2 400
43 @@ -344,14 +340,28 @@
44 }
45
46 src_install() {
47 + local MULTILIB_CHOST_TOOLS=(
48 + /usr/bin/llvm-config
49 + )
50 +
51 local MULTILIB_WRAPPED_HEADERS=(
52 /usr/include/llvm/Config/config.h
53 /usr/include/llvm/Config/llvm-config.h
54 )
55
56 - use clang && MULTILIB_WRAPPED_HEADERS+=(
57 - /usr/include/clang/Config/config.h
58 - )
59 + if use clang; then
60 + # note: magic applied below
61 + MULTILIB_CHOST_TOOLS+=(
62 + /usr/bin/clang
63 + /usr/bin/clang++
64 + /usr/bin/clang-${PV}
65 + /usr/bin/clang++-${PV}
66 + )
67 +
68 + MULTILIB_WRAPPED_HEADERS+=(
69 + /usr/include/clang/Config/config.h
70 + )
71 + fi
72
73 multilib-minimal_src_install
74 }
75 @@ -382,6 +392,34 @@
76 fi
77 fi
78
79 + # apply CHOST and PV to clang executables
80 + # they're statically linked so we don't have to worry about the lib
81 + if use clang; then
82 + local clang_tools=( clang clang++ )
83 + local i
84 +
85 + # append ${PV} and symlink back
86 + # TODO: use alternatives.eclass? does that make any sense?
87 + # maybe with USE=-clang on :0 and USE=clang on older
88 + for i in "${clang_tools[@]}"; do
89 + mv "${ED%/}/usr/bin/${i}"{,-${PV}} || die
90 + dosym "${i}"-${PV} /usr/bin/${i}
91 + done
92 +
93 + # now prepend ${CHOST} and let the multilib-build.eclass symlink it
94 + if ! multilib_is_native_abi; then
95 + # non-native? let's replace it with a simple wrapper
96 + for i in "${clang_tools[@]}"; do
97 + rm "${ED%/}/usr/bin/${i}-${PV}" || die
98 + cat > "${T}"/wrapper.tmp <<-_EOF_
99 + #!${EPREFIX}/bin/sh
100 + exec "${i}-${PV}" $(get_abi_CFLAGS) "\${@}"
101 + _EOF_
102 + newbin "${T}"/wrapper.tmp "${i}-${PV}"
103 + done
104 + fi
105 + fi
106 +
107 # Fix install_names on Darwin. The build system is too complicated
108 # to just fix this, so we correct it post-install
109 local lib= f= odylib= libpv=${PV}
110
111
112
113 1.202 sys-devel/llvm/ChangeLog
114
115 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/ChangeLog?rev=1.202&view=markup
116 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/ChangeLog?rev=1.202&content-type=text/plain
117 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-devel/llvm/ChangeLog?r1=1.201&r2=1.202
118
119 Index: ChangeLog
120 ===================================================================
121 RCS file: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v
122 retrieving revision 1.201
123 retrieving revision 1.202
124 diff -u -r1.201 -r1.202
125 --- ChangeLog 23 Jun 2014 23:00:42 -0000 1.201
126 +++ ChangeLog 29 Jun 2014 09:59:33 -0000 1.202
127 @@ -1,6 +1,9 @@
128 # ChangeLog for sys-devel/llvm
129 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
130 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.201 2014/06/23 23:00:42 voyageur Exp $
131 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.202 2014/06/29 09:59:33 mgorny Exp $
132 +
133 + 29 Jun 2014; Michał Górny <mgorny@g.o> llvm-9999.ebuild:
134 + Rename clang to ${CHOST}-clang-${PV}. Add multilib wrappers.
135
136 *llvm-3.4.2 (23 Jun 2014)