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: Mon, 26 Feb 2018 17:46:06
Message-Id: 1519667130.03f5cfb6ab991d0bc1ca4264dcadb847390f53b4.tupone@gentoo
1 commit: 03f5cfb6ab991d0bc1ca4264dcadb847390f53b4
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 26 17:45:30 2018 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 26 17:45:30 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03f5cfb6
7
8 dev-lang/gnat-gpl: Add ~x86 to gnat-gpl-2017
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-lang/gnat-gpl/gnat-gpl-2017.ebuild | 36 +++++++++++++++++++++++-----------
13 1 file changed, 25 insertions(+), 11 deletions(-)
14
15 diff --git a/dev-lang/gnat-gpl/gnat-gpl-2017.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2017.ebuild
16 index 445189b6be8..dde7fbf04a9 100644
17 --- a/dev-lang/gnat-gpl/gnat-gpl-2017.ebuild
18 +++ b/dev-lang/gnat-gpl/gnat-gpl-2017.ebuild
19 @@ -1,4 +1,4 @@
20 -# Copyright 1999-2017 Gentoo Foundation
21 +# Copyright 1999-2018 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23
24 EAPI="5"
25 @@ -11,6 +11,8 @@ inherit eutils toolchain-funcs toolchain
26
27 REL=6
28 MYP=gcc-${REL}-gpl-${PV}-src
29 +BTSTRP_X86=gnat-gpl-2014-x86-linux-bin
30 +BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin
31
32 DESCRIPTION="GNAT Ada Compiler - GPL version"
33 HOMEPAGE="http://libre.adacore.com/"
34 @@ -22,13 +24,19 @@ SRC_URI+="
35 http://mirrors.cdn.adacore.com/art/591adbc5c7a4473fcbb153ae
36 -> gcc-interface-${REL}-gpl-${PV}-src.tar.gz
37 bootstrap? (
38 - http://mirrors.cdn.adacore.com/art/564b3ebec8e196b040fbe66c ->
39 - gnat-gpl-2014-x86_64-linux-bin.tar.gz
40 + amd64? (
41 + http://mirrors.cdn.adacore.com/art/564b3ebec8e196b040fbe66c ->
42 + ${BTSTRP_AMD64}.tar.gz
43 + )
44 + x86? (
45 + http://mirrors.cdn.adacore.com/art/564b3e9dc8e196b040fbe248 ->
46 + ${BTSTRP_X86}.tar.gz
47 + )
48 )"
49
50 LICENSE+=" GPL-2 GPL-3"
51 SLOT="${TOOLCHAIN_GCC_PV}"
52 -KEYWORDS="amd64"
53 +KEYWORDS="amd64 ~x86"
54 IUSE="bootstrap"
55
56 RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}"
57 @@ -42,8 +50,15 @@ FSFGCC=gcc-${TOOLCHAIN_GCC_PV}
58
59 pkg_setup() {
60 toolchain_pkg_setup
61 +
62 + if use amd64; then
63 + BTSTRP=${BTSTRP_AMD64}
64 + else
65 + BTSTRP=${BTSTRP_X86}
66 + fi
67 +
68 if use bootstrap; then
69 - GCC="${WORKDIR}"/gnat-gpl-2014-x86_64-linux-bin/bin/gcc
70 + GCC="${WORKDIR}"/${BTSTRP}/bin/gcc
71 else
72 GCC=${ADA:-$(tc-getCC)}
73 fi
74 @@ -70,12 +85,12 @@ src_unpack() {
75 ${MYP}.tar.gz
76 gcc-interface-${REL}-gpl-${PV}-src.tar.gz"
77 if use bootstrap; then
78 - GCC_A_FAKEIT="${GCC_A_FAKEIT} gnat-gpl-2014-x86_64-linux-bin.tar.gz"
79 + GCC_A_FAKEIT="${GCC_A_FAKEIT} ${BTSTRP}.tar.gz"
80 fi
81
82 toolchain_src_unpack
83 if use bootstrap; then
84 - rm gnat-gpl-2014-x86_64-linux-bin/libexec/gcc/x86_64-pc-linux-gnu/4.7.4/ld || die
85 + rm ${BTSTRP}/libexec/gcc/${CHOST}/4.7.4/ld || die
86 fi
87 }
88
89 @@ -102,7 +117,7 @@ src_prepare() {
90 echo ${TOOLCHAIN_GCC_PV} > gcc/BASE-VER
91
92 cd ..
93 - mv gnat-gpl-${PV}-src/src/ada ${MYP}/gcc/ || die
94 + mv ${P}-src/src/ada ${MYP}/gcc/ || die
95 mv gcc-interface-${REL}-gpl-${PV}-src ${MYP}/gcc/ada/gcc-interface || die
96 epatch "${FILESDIR}"/${P}-gentoo.patch
97 cd -
98 @@ -129,7 +144,7 @@ src_compile() {
99 toolchain_src_compile
100 gcc_do_make "-C gcc gnatlib-shared"
101 ln -s gcc ../build/prev-gcc || die
102 - ln -s x86_64-pc-linux-gnu ../build/prev-x86_64-pc-linux-gnu || die
103 + ln -s ${CHOST} ../build/prev-${CHOST} || die
104 gcc_do_make "-C gcc gnattools"
105 }
106
107 @@ -167,8 +182,7 @@ src_install() {
108 pkg_postinst () {
109 toolchain_pkg_postinst
110 einfo "This provide the GNAT compiler with gcc for ada/c/c++ and more"
111 - einfo "Set the ADA variables to ${CTARGET}-gcc-${TOOLCHAIN_GCC_PV} in"
112 - einfo "your make.conf"
113 + einfo "The compiler binary is ${CTARGET}-gcc-${TOOLCHAIN_GCC_PV}"
114 einfo "Even if the c/c++ compilers are using almost the same patched"
115 einfo "source as the sys-devel/gcc package its use is not extensively"
116 einfo "tested, and not supported for updating your system, except for ada"