Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 17 Sep 2019 07:34:33
Message-Id: 1568705637.9ed226fa5c2394948ac9b3c6518a470f43c42814.tupone@gentoo
1 commit: 9ed226fa5c2394948ac9b3c6518a470f43c42814
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 17 07:33:57 2019 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 17 07:33:57 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ed226fa
7
8 ada.eclass: add export of GNAT
9
10 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
11
12 eclass/ada.eclass | 8 ++++++--
13 1 file changed, 6 insertions(+), 2 deletions(-)
14
15 diff --git a/eclass/ada.eclass b/eclass/ada.eclass
16 index aae30562074..763ce92056e 100644
17 --- a/eclass/ada.eclass
18 +++ b/eclass/ada.eclass
19 @@ -222,6 +222,10 @@ ada_export() {
20 export GCC_PV=${gcc_pv}
21 debug-print "${FUNCNAME}: GCC_PV = ${GCC_PV}"
22 ;;
23 + GNAT)
24 + export GNAT=${EPREFIX}/usr/bin/gnat-${gcc_pv}
25 + debug-print "${FUNCNAME}: GNAT = ${GNAT}"
26 + ;;
27 GNATBIND)
28 export GNATBIND=${EPREFIX}/usr/bin/gnatbind-${gcc_pv}
29 debug-print "${FUNCNAME}: GNATBIND = ${GNATBIND}"
30 @@ -407,7 +411,7 @@ ada_setup() {
31 if [[ ${#_ADA_SUPPORTED_IMPLS[@]} -eq 1 ]]; then
32 if use "ada_target_${_ADA_SUPPORTED_IMPLS[0]}"; then
33 # Only one supported implementation, enable it explicitly
34 - ada_export "${_ADA_SUPPORTED_IMPLS[0]}" EADA GCC_PV
35 + ada_export "${_ADA_SUPPORTED_IMPLS[0]}" EADA GCC_PV GNAT
36 ada_wrapper_setup
37 fi
38 else
39 @@ -423,7 +427,7 @@ ada_setup() {
40 die "More than one implementation in ADA_TARGET."
41 fi
42
43 - ada_export "${impl}" EADA GCC GCC_PV GNATMAKE
44 + ada_export "${impl}" EADA GCC_PV GNAT
45 ada_wrapper_setup
46 fi
47 done