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: Fri, 13 Sep 2019 19:51:32
Message-Id: 1568404228.8dd9f87799a9268dba04301ce07ead2fbe37d266.tupone@gentoo
1 commit: 8dd9f87799a9268dba04301ce07ead2fbe37d266
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 13 19:50:28 2019 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 13 19:50:28 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dd9f877
7
8 eclass/ada.eclass: Adding gnatprep launcher
9
10 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
11
12 eclass/ada.eclass | 13 +++++++++++--
13 1 file changed, 11 insertions(+), 2 deletions(-)
14
15 diff --git a/eclass/ada.eclass b/eclass/ada.eclass
16 index 338b73bab86..e5463e15b30 100644
17 --- a/eclass/ada.eclass
18 +++ b/eclass/ada.eclass
19 @@ -233,6 +233,10 @@ ada_export() {
20 export GNATLS=${EPREFIX}/usr/bin/gnatls-${gcc_pv}
21 debug-print "${FUNCNAME}: GNATLS = ${GNATLS}"
22 ;;
23 + GNATPREP)
24 + export GNATPREP=${EPREFIX}/usr/bin/gnatprep-${gcc_pv}
25 + debug-print "${FUNCNAME}: GNATPREP = ${GNATPREP}"
26 + ;;
27 ADA_PKG_DEP)
28 ADA_PKG_DEP="dev-lang/gnat-gpl:${gcc_pv}"
29
30 @@ -341,8 +345,8 @@ ada_wrapper_setup() {
31 if [[ ! -x ${workdir}/bin/gnatmake ]]; then
32 mkdir -p "${workdir}"/bin || die
33
34 - local GCC GNATMAKE GNATLS GNATBIND
35 - ada_export "${impl}" GCC GNATMAKE GNATLS GNATBIND
36 + local GCC GNATMAKE GNATLS GNATBIND GNATPREP
37 + ada_export "${impl}" GCC GNATMAKE GNATLS GNATBIND GNATPREP
38
39 # Ada compiler
40 cat > "${workdir}/bin/gcc" <<-_EOF_ || die
41 @@ -365,6 +369,11 @@ ada_wrapper_setup() {
42 exec "${GNATBIND}" "\${@}"
43 _EOF_
44 chmod a+x "${workdir}/bin/gnatbind"
45 + cat > "${workdir}/bin/gnatprep" <<-_EOF_ || die
46 + #!/bin/sh
47 + exec "${GNATPREP}" "\${@}"
48 + _EOF_
49 + chmod a+x "${workdir}/bin/gnatprep"
50 fi
51
52 # Now, set the environment.