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/kgcc64/
Date: Fri, 08 May 2020 00:31:10
Message-Id: 1588897860.65da7f0a88b3b6a4df0ff8a7e82a64d2c3a540bd.slyfox@gentoo
1 commit: 65da7f0a88b3b6a4df0ff8a7e82a64d2c3a540bd
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 7 22:07:01 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Fri May 8 00:31:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65da7f0a
7
8 sys-devel/kgcc64: bump up to 10.1.0
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
12
13 sys-devel/kgcc64/Manifest | 2 ++
14 sys-devel/kgcc64/kgcc64-10.1.0.ebuild | 42 +++++++++++++++++++++++++++++++++++
15 2 files changed, 44 insertions(+)
16
17 diff --git a/sys-devel/kgcc64/Manifest b/sys-devel/kgcc64/Manifest
18 index 818f980822c..46da3d0fa86 100644
19 --- a/sys-devel/kgcc64/Manifest
20 +++ b/sys-devel/kgcc64/Manifest
21 @@ -1,3 +1,5 @@
22 +DIST gcc-10.1.0-patches-1.tar.bz2 13432 BLAKE2B 2f0517778eb012288ae305a91f84eb31a5f08f842c504201f1a8085afd42ed4c9b4a5b15f7553982c926735e8ea57307a1749004e679880ef47abad7d4596115 SHA512 cc513d8b68dcf484d37c51961c809fc6c470a8341f068b4029430ca4677e7b49155c3d964b3b9ab50c69835b32db98bcb9a91f14de14417e4611521059192118
23 +DIST gcc-10.1.0.tar.xz 74591240 BLAKE2B d64cf01beaaff7af9e7d5b1d5e6fdfb37cce5667b4455c1c9bbfd190e631f03555d63d52d31e7be5ac232256be11058f89d5bc7d0dcb01de44e90a52645ad87f SHA512 0cb2a74c793face751f42bc580960b00e2bfea785872a0a2155f1f1dbfaa248f9591b67f4322db0f096f8844aca9243bc02732bda106c3b6e43b02bb67eb3096
24 DIST gcc-4.1.2-patches-1.0.1.tar.bz2 43294 BLAKE2B e8040fb94925a622e5fffee820cb1094989210decab95175844ce729216a439b730381fa457e3a607f124c4b9d249427bfdd85fa9e62cb96199a911509c06736 SHA512 79f1d47d364462325a927b35b66bbdc68c100dbb6c86a6dd524d0e1cd09b7135c3789e80b71539cec63befbeea1a0e9b456b53ab0a5580b64509f78231d3fdc5
25 DIST gcc-4.1.2.tar.bz2 39707720 BLAKE2B 966b6a64c118456c7fb66eb2ad0dd84b1d53ad88dcbd146f446ef097a6975f5d6a7f1bcbbc4bfcd4e48b00eeb8054728e412db3d9818cff1f195e37859a4e510 SHA512 b97d3b72a3b0355611d5090b2c715b7a774f0e466a89326a0226c2809d12dfafb2d7c5a7af54bd5e00c135bbb6596f535e1a484740f7f1f691e8a57e6f0425cc
26 DIST gcc-4.2.4-patches-1.0.tar.bz2 21809 BLAKE2B 5ae6eddeeb6f39fc6364f093d7ec166d053dce33d25d0f0d128dcdb95de6a203b993b60302b56bb347e76fbb50f932642e64ae0dadcc7d824600056e1e26432b SHA512 20eb3fa790e5cc1bd66c9ad1915c73c20ae8977d6789addaf4863184e6d5c25ab9b0f2c40e3ad08a6859825b2e97bf0839e0a616730362072aa35e8ae158a427
27
28 diff --git a/sys-devel/kgcc64/kgcc64-10.1.0.ebuild b/sys-devel/kgcc64/kgcc64-10.1.0.ebuild
29 new file mode 100644
30 index 00000000000..e0c1432958e
31 --- /dev/null
32 +++ b/sys-devel/kgcc64/kgcc64-10.1.0.ebuild
33 @@ -0,0 +1,42 @@
34 +# Copyright 1999-2020 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +case ${CHOST} in
40 + hppa*) CTARGET=hppa64-${CHOST#*-};;
41 + mips*) CTARGET=${CHOST/mips/mips64};;
42 + powerpc*) CTARGET=${CHOST/powerpc/powerpc64};;
43 + s390*) CTARGET=${CHOST/s390/s390x};;
44 + sparc*) CTARGET=${CHOST/sparc/sparc64};;
45 + i?86*) CTARGET=x86_64-${CHOST#*-};;
46 +esac
47 +export CTARGET
48 +TOOLCHAIN_ALLOWED_LANGS="c"
49 +GCC_TARGET_NO_MULTILIB=true
50 +
51 +PATCH_VER="1"
52 +inherit toolchain
53 +
54 +DESCRIPTION="64bit kernel compiler"
55 +
56 +# Works on hppa and mips; all other archs, refer to bug #228115
57 +KEYWORDS="~hppa ~mips"
58 +
59 +# unlike every other target, hppa has not unified the 32/64 bit
60 +# ports in binutils yet
61 +DEPEND="hppa? ( sys-devel/binutils-hppa64 )"
62 +
63 +pkg_postinst() {
64 + toolchain_pkg_postinst
65 +
66 + cd "${ROOT}"/usr/bin
67 + local x
68 + for x in gcc cpp ; do
69 + cat <<-EOF >${CTARGET%%-*}-linux-${x}
70 + #!/bin/sh
71 + exec ${CTARGET}-${x} "\$@"
72 + EOF
73 + chmod a+rx ${CTARGET%%-*}-linux-${x}
74 + done
75 +}