commit:     5210fe86600b6a29542ac4fa9bf708f27fc4c8dd
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun May 30 13:49:26 2021 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun May 30 13:49:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5210fe86

ada.eclass: SLOT has changed for gcc-10 and so for gnat-gpl-2021

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 eclass/ada.eclass | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/eclass/ada.eclass b/eclass/ada.eclass
index 0c658368b52..1876a963496 100644
--- a/eclass/ada.eclass
+++ b/eclass/ada.eclass
@@ -198,27 +198,35 @@ ada_export() {
        debug-print "${FUNCNAME}: implementation: ${impl}"
 
        local gcc_pv
+       local slot
        case "${impl}" in
                gnat_2016)
                        gcc_pv=4.9.4
+                       slot=4.9.4
                        ;;
                gnat_2017)
                        gcc_pv=6.3.0
+                       slot=6.3.0
                        ;;
                gnat_2018)
                        gcc_pv=7.3.1
+                       slot=7.3.1
                        ;;
                gnat_2019)
                        gcc_pv=8.3.1
+                       slot=8.3.1
                        ;;
                gnat_2020)
                        gcc_pv=9.3.1
+                       slot=9.3.1
                        ;;
                gnat_2021)
                        gcc_pv=10.3.1
+                       slot=10
                        ;;
                *)
                        gcc_pv="9.9.9"
+                       slot=9.9.9
                        ;;
        esac
 
@@ -261,7 +269,7 @@ ada_export() {
                                debug-print "${FUNCNAME}: GNATCHOP = 
${GNATCHOP}"
                                ;;
                        ADA_PKG_DEP)
-                               ADA_PKG_DEP="dev-lang/gnat-gpl:${gcc_pv}"
+                               ADA_PKG_DEP="dev-lang/gnat-gpl:${slot}"
 
                                # use-dep
                                if [[ ${ADA_REQ_USE} ]]; then

Reply via email to