Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/gnat-gpl/
Date: Tue, 29 Nov 2022 17:33:56
Message-Id: 1669743213.b610a9b0023b86282da4d1cd7739281aa7e02061.tupone@gentoo
1 commit: b610a9b0023b86282da4d1cd7739281aa7e02061
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Tue Nov 29 17:32:32 2022 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Tue Nov 29 17:33:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b610a9b0
7
8 dev-lang/gnat-gpl: drop 2021-r1
9
10 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
11
12 dev-lang/gnat-gpl/Manifest | 1 -
13 dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild | 145 ------------------------------
14 2 files changed, 146 deletions(-)
15
16 diff --git a/dev-lang/gnat-gpl/Manifest b/dev-lang/gnat-gpl/Manifest
17 index 4d012eaa794c..0467c2ea4c27 100644
18 --- a/dev-lang/gnat-gpl/Manifest
19 +++ b/dev-lang/gnat-gpl/Manifest
20 @@ -1,5 +1,4 @@
21 DIST gcc-10-2021-20210519-19A74-src.tar.gz 109157702 BLAKE2B 8ec307e4fde35c8726bc7b9702717329695bad928d5222a7bb691cce47500de31a60bcfcbb925129a57cb81d3d7ea92e60599aa7383d5358e63cc087b0482550 SHA512 2e2cc0ec9a3a82816a5d399d2db261c356e106b82a44efd54a1ac882b96549ab8de79c69858127c4397de6e9e9463ce6fb9994fc2e426e7d3d2f98d5efa2edb6
22 -DIST gcc-10.3.0-patches-3.tar.bz2 18935 BLAKE2B 13eaf1e055b5b63069aed1575ed93f6bc822b5e3f2181ddfc88f4e7ff801f58997cd131b2efd79b90469b1f861db994feb2adcaecacf165442078f76e233fd9a SHA512 c3d6a6f32863cc0ff7c877314ff0c00a892e473f64d16b82d46b4a77aa97c3e7a575492d27f0d423acb2621c86c9a49bca0e26e45bda9e697495444fcac85084
23 DIST gcc-10.3.0-patches-4.tar.xz 18460 BLAKE2B 7c4b91c3beebc5fd91c0fdbeec6512c141bd78759a02aa7fff32dd30025ef41db1d57280e50db575f46cc0061a480ced9259410e9875b1dc0048886df469c4c9 SHA512 3befbcdec84e583966aad37d1a08c1863f39eb877296c5991348db9d37cc8359197f23cb3b8fa1b0f4d01497dfd2ebaa393e1a459267c19a0976fb535e463ec8
24 DIST gcc-interface-10-2021-20210519-19A75-src.tar.gz 359085 BLAKE2B 75f941a7635f2880cc0192acb49d8e7f567baca7530fb981be14dc6cb1bf46fda0e3c043c8703cdbeeb242b548894e0bc6787adfff0f27198354d150e6e36386 SHA512 0251a93d20c59cc4705963438880fe265e2e0bb94a35b7ddaaf03e9efae60e044e585a2204d0773a46f17b3b774e4d0c73adf852f5d06ba17373d26ed580ca8d
25 DIST gnat-2021-20210519-19A70-src.tar.gz 8765762 BLAKE2B ef48f54c6109566e37bfa5dee9262305d0529b3dfd333ee28bc4e66f4709a0673f673d742bc04deb15dc145404f7618d350dbdf3f2a7ab37c861e57d011946fa SHA512 3cb79be024fdd9b738d99ffc8e224d32bb382b5da2d02b97b2061a5ea58456f33d4564c92e224af2713ce15fd5481edd715e5b9a52abc74fdc142f27e103c201
26
27 diff --git a/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild
28 deleted file mode 100644
29 index 7e9e65beb91e..000000000000
30 --- a/dev-lang/gnat-gpl/gnat-gpl-2021-r1.ebuild
31 +++ /dev/null
32 @@ -1,145 +0,0 @@
33 -# Copyright 1999-2022 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=7
37 -
38 -PATCH_GCC_VER=10.3.0
39 -PATCH_VER="3"
40 -
41 -TOOLCHAIN_GCC_PV=10.3.1
42 -
43 -REL=10
44 -MYP=gcc-${REL}-${PV}-20210519-19A74-src
45 -GNATDIR=gnat-${PV}-20210519-19A70-src
46 -INTFDIR=gcc-interface-${REL}-${PV}-20210519-19A75-src
47 -
48 -BTSTRP_X86=gnat-gpl-2014-x86-linux-bin
49 -BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin
50 -BASE_URI=https://community.download.adacore.com/v1
51 -# we provide own tarball below
52 -GCC_TARBALL_SRC_URI="
53 - ${BASE_URI}/005d2b2eff627177986d2517eb31e1959bec6f3a?filename=${GNATDIR}.tar.gz
54 - -> ${GNATDIR}.tar.gz
55 - ${BASE_URI}/44cd393be0b468cc253bf2cf9cf7804c993e7b5b?filename=${MYP}.tar.gz
56 - -> ${MYP}.tar.gz
57 - ${BASE_URI}/8ace7d06e469d36d726cc8badb0ed78411e727f3?filename=${INTFDIR}.tar.gz
58 - -> ${INTFDIR}.tar.gz
59 - bootstrap? (
60 - amd64? (
61 - ${BASE_URI}/6eb6eef6bb897e4c743a519bfebe0b1d6fc409c6?filename=${BTSTRP_AMD64}.tar.gz&rand=1193
62 - -> ${BTSTRP_AMD64}.tar.gz
63 - )
64 - x86? (
65 - ${BASE_URI}/c5e9e6fdff5cb77ed90cf8c62536653e27c0bed6?filename=${BTSTRP_X86}.tar.gz&rand=436
66 - -> ${BTSTRP_X86}.tar.gz
67 - )
68 - )"
69 -
70 -inherit toolchain-funcs toolchain
71 -
72 -DESCRIPTION="GNAT Ada Compiler - GPL version"
73 -HOMEPAGE="http://libre.adacore.com/"
74 -
75 -LICENSE+=" GPL-2 GPL-3"
76 -KEYWORDS="amd64 x86"
77 -IUSE="+ada +bootstrap"
78 -RESTRICT="test"
79 -
80 -BDEPEND=sys-devel/binutils
81 -
82 -S="${WORKDIR}"/${MYP}
83 -
84 -src_unpack() {
85 - if ! use bootstrap && [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then
86 - eerror "You need a gcc compiler that provides the Ada Compiler:"
87 - eerror "1) use gcc-config to select the right compiler or"
88 - eerror "2) set the bootstrap use flag"
89 - die "ada compiler not available"
90 - fi
91 -
92 - toolchain_src_unpack
93 -}
94 -
95 -src_prepare() {
96 - if use amd64; then
97 - BTSTRP=${BTSTRP_AMD64}
98 - else
99 - BTSTRP=${BTSTRP_X86}
100 - fi
101 -
102 - if use bootstrap; then
103 - GCC="${WORKDIR}"/${BTSTRP}/bin/gcc
104 - else
105 - GCC=${ADA:-$(tc-getCC)}
106 - fi
107 -
108 - gnatbase=$(basename ${GCC})
109 - gnatpath=$(dirname ${GCC})
110 -
111 - GNATMAKE=${gnatbase/gcc/gnatmake}
112 - if [[ ${gnatpath} != "." ]] ; then
113 - GNATMAKE="${gnatpath}/${GNATMAKE}"
114 - fi
115 - if use bootstrap; then
116 - rm "${WORKDIR}"/${BTSTRP}/libexec/gcc/x86_64-pc-linux-gnu/4.7.4/ld \
117 - || die
118 - ln -s /usr/bin/$CHOST-ld \
119 - "${WORKDIR}"/${BTSTRP}/libexec/gcc/x86_64-pc-linux-gnu/4.7.4/ld \
120 - || die
121 - rm "${WORKDIR}"/${BTSTRP}/libexec/gcc/x86_64-pc-linux-gnu/4.7.4/as \
122 - || die
123 - ln -s /usr/bin/$CHOST-as \
124 - "${WORKDIR}"/${BTSTRP}/libexec/gcc/x86_64-pc-linux-gnu/4.7.4/as \
125 - || die
126 - fi
127 -
128 - CC=${GCC}
129 - CXX="${gnatbase/gcc/g++}"
130 - GNATBIND="${gnatbase/gcc/gnatbind}"
131 - GNATLINK="${gnatbase/gcc/gnatlink}"
132 - GNATLS="${gnatbase/gcc/gnatls}"
133 - if [[ ${gnatpath} != "." ]] ; then
134 - CXX="${gnatpath}/${CXX}"
135 - GNATBIND="${gnatpath}/${GNATBIND}"
136 - GNATLINK="${gnatpath}/${GNATLINK}"
137 - GNATLS="${gnatpath}/${GNATLS}"
138 - fi
139 - mkdir bin || die
140 - ln -s $(type -P ${GCC}) bin/gcc || die
141 - ln -s $(type -P ${CXX}) bin/g++ || die
142 - ln -s $(type -P ${GNATMAKE}) bin/gnatmake || die
143 - ln -s $(type -P ${GNATBIND}) bin/gnatbind || die
144 - ln -s $(type -P ${GNATLINK}) bin/gnatlink || die
145 - ln -s $(type -P ${GNATLS}) bin/gnatls || die
146 -
147 - cd ..
148 - mv ${GNATDIR}/src/ada ${MYP}/gcc/ || die
149 - mv ${INTFDIR} ${MYP}/gcc/ada/gcc-interface || die
150 - eapply "${FILESDIR}"/${P}-gentoo.patch
151 - cd -
152 - sed -i \
153 - -e 's:-fcf-protection":":' \
154 - libiberty/configure \
155 - lto-plugin/configure || die
156 - sed -i \
157 - -e 's:$(P) ::g' \
158 - gcc/ada/gcc-interface/Makefile.in \
159 - || die "sed failed"
160 - toolchain_src_prepare
161 -}
162 -
163 -src_configure() {
164 - export PATH=${PWD}/bin:${PATH}
165 - downgrade_arch_flags "$(gcc-version)"
166 - toolchain_src_configure
167 -}
168 -
169 -pkg_postinst() {
170 - toolchain_pkg_postinst
171 - einfo "This provide the GNAT compiler with gcc for ada/c/c++ and more"
172 - einfo "The compiler binary is ${CTARGET}-gcc-${TOOLCHAIN_GCC_PV}"
173 - einfo "Even if the c/c++ compilers are using almost the same patched"
174 - einfo "source as the sys-devel/gcc package its use is not extensively"
175 - einfo "tested, and not supported for updating your system, except for ada"
176 - einfo "related packages"
177 -}