Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc-config/
Date: Sun, 28 Feb 2021 09:50:20
Message-Id: 1614505811.88d3cf89b62f5b2ef7813aaf21a49ba94102cd44.slyfox@gentoo
1 commit: 88d3cf89b62f5b2ef7813aaf21a49ba94102cd44
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 09:46:48 2021 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 09:50:11 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88d3cf89
7
8 sys-devel/gcc-config: bump up to 2.4
9
10 One user visible change:
11 - gcc-config: add support for special 'latest' version for profile switch
12
13 Bug: https://bugs.gentoo.org/765664
14 Package-Manager: Portage-3.0.16, Repoman-3.0.2
15 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
16
17 sys-devel/gcc-config/Manifest | 1 +
18 sys-devel/gcc-config/gcc-config-2.4.ebuild | 53 ++++++++++++++++++++++++++++++
19 2 files changed, 54 insertions(+)
20
21 diff --git a/sys-devel/gcc-config/Manifest b/sys-devel/gcc-config/Manifest
22 index 38fb58fecf8..0274ff30b10 100644
23 --- a/sys-devel/gcc-config/Manifest
24 +++ b/sys-devel/gcc-config/Manifest
25 @@ -1,2 +1,3 @@
26 DIST gcc-config-2.3.2.tar.xz 17444 BLAKE2B c66fd121770dddcb27033be228de691f766f1acd9ada9580ae96dc12f6fbd0cd823e6656dc9b0515d498305b10d72f9cd87cf69388791971e9eac1a20e3f97c9 SHA512 31327d9abd26fdadaaf25a63568fd860ae25030b4a99dcbf0424f2d8fb14e61f041e681eea90c781a3f4e5401e3a7ba3299b1260ceb6e51bda5bef24f65dcacc
27 DIST gcc-config-2.3.3.tar.xz 17452 BLAKE2B fb77e2a2ea3d57142e6784d985364f3c0c82c149af10ac0a6490b3f4acceb3cd86e9d25168a60c532dd2bfce300a12a13cfc0eb290bf8c9457e43b9acf247328 SHA512 110af5a15e34c41f8f0568f20215bd4b0db2ffd2e65a4c3e7c3a6695c0de574e85478582cd65b627591ee754cd7f28c01ab8f3c3a101ed00c2b42fedab58a08a
28 +DIST gcc-config-2.4.tar.xz 17552 BLAKE2B 631645a5cc9f3e7ab0ff089960ee3d0b2ecea29aa96f839a03a86985db512bf0d182b67a7b1bb73b95808c04523f32d6b8c122cdfbe8dbf94e7d319a1e49a23c SHA512 852b4aefaccfae1d91c551e226ac28110fa23f9668075c190a5fb9129c86d2f3e4994e96b7a5e8a2801883c5a5b16d9fbf3e9066e6b6a423055fdefa490793c7
29
30 diff --git a/sys-devel/gcc-config/gcc-config-2.4.ebuild b/sys-devel/gcc-config/gcc-config-2.4.ebuild
31 new file mode 100644
32 index 00000000000..33b842037c4
33 --- /dev/null
34 +++ b/sys-devel/gcc-config/gcc-config-2.4.ebuild
35 @@ -0,0 +1,53 @@
36 +# Copyright 1999-2021 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +
41 +inherit toolchain-funcs
42 +
43 +if [[ ${PV} == 9999 ]]; then
44 + EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/gcc-config.git"
45 + inherit git-r3
46 +else
47 + SRC_URI="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz"
48 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
49 +fi
50 +
51 +DESCRIPTION="Utility to manage compilers"
52 +HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/"
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +IUSE="+cc-wrappers +native-symlinks"
56 +
57 +RDEPEND=">=sys-apps/gentoo-functions-0.10"
58 +
59 +_emake() {
60 + emake \
61 + PV="${PVR}" \
62 + SUBLIBDIR="$(get_libdir)" \
63 + USE_CC_WRAPPERS="$(usex cc-wrappers)" \
64 + USE_NATIVE_LINKS="$(usex native-symlinks)" \
65 + TOOLCHAIN_PREFIX="${CHOST}-" \
66 + "$@"
67 +}
68 +
69 +src_compile() {
70 + _emake
71 +}
72 +
73 +src_install() {
74 + _emake DESTDIR="${D}" install
75 +}
76 +
77 +pkg_postinst() {
78 + # Do we have a valid multi ver setup ?
79 + local x
80 + for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do
81 + gcc-config ${x}
82 + done
83 +
84 + # USE flag change can add or delete files in /usr/bin worth recaching
85 + if [[ ! ${ROOT} && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then
86 + eselect compiler-shadow update all
87 + fi
88 +}