1 |
commit: c2de78cfc2af4be72a28555ddc8b17c1f43f216f |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 26 14:36:52 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 26 14:37:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2de78cf |
7 |
|
8 |
sys-devel/gcc-config: bump up to 2.2.1 |
9 |
|
10 |
One new change: |
11 |
- fix numbered access to toolchains, bug #706318 |
12 |
|
13 |
Closes: https://bugs.gentoo.org/706318 |
14 |
Package-Manager: Portage-2.3.85, Repoman-2.3.20 |
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.2.1.ebuild | 54 ++++++++++++++++++++++++++++ |
19 |
2 files changed, 55 insertions(+) |
20 |
|
21 |
diff --git a/sys-devel/gcc-config/Manifest b/sys-devel/gcc-config/Manifest |
22 |
index 49cbdf9d04f..e0b33baf647 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.1.tar.xz 15520 BLAKE2B 0e37762877116d90265a31cf6d9bc99da9b358afc26c0f7cb6fdbbb44dce23ebf59a1d5c2e481d456c03fbcc383efb7a56559af0bbd1f2bd78f407a853c88369 SHA512 0b19cb758a1e8c5e2e1f7901799fa1eb598d9d5c8d89ceace2e294ec569bfa90978bef72f52b9c2a3455f2ffd21be0899fb3e23b5fbdf62b70e978c153961272 |
27 |
+DIST gcc-config-2.2.1.tar.xz 16292 BLAKE2B bed319b73bb1dd1c693715654dab7d16c12929353eb28c6e93ffeda0d4539d8204e84287c58de65ed5198011130a6e0ef71421cf41e7cf59cc48781a94ec9af2 SHA512 783caf2f4236d7c84e7c76c2d001d069a1b8544644d7e6e12b79f4dc55f34c953a24a8cd8d01b2aa69fa7f8e02ec3380e0e33a83eda6b3cb00e8c43d2f69f673 |
28 |
DIST gcc-config-2.2.tar.xz 15956 BLAKE2B c83c1e2584c42d5e6317e044fc6681f5006d9158ecb8d7127383a773e0b51fc2388aab9462088c087a877d77f8ee0631eb00b48b4ef13125af2bbb3871ea2582 SHA512 501d870488ebbeab2e704cab046b6432379c0dcf430fa24737fc97d9a0aa635e25fd4f7c0b7983f349ffd4c378b1971e4c8c82dc524b4916415985a6e0e7480b |
29 |
|
30 |
diff --git a/sys-devel/gcc-config/gcc-config-2.2.1.ebuild b/sys-devel/gcc-config/gcc-config-2.2.1.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..14719662eb8 |
33 |
--- /dev/null |
34 |
+++ b/sys-devel/gcc-config/gcc-config-2.2.1.ebuild |
35 |
@@ -0,0 +1,54 @@ |
36 |
+# Copyright 1999-2020 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="mirror://gentoo/${P}.tar.xz |
48 |
+ https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.xz" |
49 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" |
50 |
+fi |
51 |
+ |
52 |
+DESCRIPTION="Utility to manage compilers" |
53 |
+HOMEPAGE="https://gitweb.gentoo.org/proj/gcc-config.git/" |
54 |
+LICENSE="GPL-2" |
55 |
+SLOT="0" |
56 |
+IUSE="" |
57 |
+ |
58 |
+RDEPEND=">=sys-apps/gentoo-functions-0.10" |
59 |
+ |
60 |
+src_compile() { |
61 |
+ emake CC="$(tc-getCC)" \ |
62 |
+ PV="${PV}" \ |
63 |
+ SUBLIBDIR="$(get_libdir)" |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ emake \ |
68 |
+ DESTDIR="${D}" \ |
69 |
+ PV="${PV}" \ |
70 |
+ SUBLIBDIR="$(get_libdir)" \ |
71 |
+ install |
72 |
+} |
73 |
+ |
74 |
+pkg_postinst() { |
75 |
+ # Scrub eselect-compiler remains |
76 |
+ rm -f "${ROOT}"/etc/env.d/05compiler & |
77 |
+ |
78 |
+ # We not longer use the /usr/include/g++-v3 hacks, as |
79 |
+ # it is not needed ... |
80 |
+ rm -f "${ROOT}"/usr/include/g++{,-v3} & |
81 |
+ |
82 |
+ # Do we have a valid multi ver setup ? |
83 |
+ local x |
84 |
+ for x in $(gcc-config -C -l 2>/dev/null | awk '$NF == "*" { print $2 }') ; do |
85 |
+ gcc-config ${x} |
86 |
+ done |
87 |
+ |
88 |
+ wait |
89 |
+} |