summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2021-05-30 15:49:26 +0200
committerAlfredo Tupone <tupone@gentoo.org>2021-05-30 15:49:26 +0200
commit5210fe86600b6a29542ac4fa9bf708f27fc4c8dd (patch)
treedbbc94fc18475b48657df222db27e7cdcb7fb079
parentdev-lang/gnat-gpl: Change uri for bootstrap (diff)
downloadgentoo-5210fe86600b6a29542ac4fa9bf708f27fc4c8dd.tar.gz
gentoo-5210fe86600b6a29542ac4fa9bf708f27fc4c8dd.tar.bz2
gentoo-5210fe86600b6a29542ac4fa9bf708f27fc4c8dd.zip
ada.eclass: SLOT has changed for gcc-10 and so for gnat-gpl-2021
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
-rw-r--r--eclass/ada.eclass10
1 files changed, 9 insertions, 1 deletions
diff --git a/eclass/ada.eclass b/eclass/ada.eclass
index 0c658368b529..1876a963496e 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