diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2023-11-06 07:27:30 +0100 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2023-11-06 07:29:57 +0100 |
commit | ccb03cfb965f037c1a2d45ad2978bfac21fd78e2 (patch) | |
tree | 78de004aa0ec13644d2e7374c5b5ff33bd94c56b /eclass/ada.eclass | |
parent | dev-python/pydantic-core: Enable pypy3 (diff) | |
download | gentoo-ccb03cfb965f037c1a2d45ad2978bfac21fd78e2.tar.gz gentoo-ccb03cfb965f037c1a2d45ad2978bfac21fd78e2.tar.bz2 gentoo-ccb03cfb965f037c1a2d45ad2978bfac21fd78e2.zip |
add gcc:13 support for ada packages
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'eclass/ada.eclass')
-rw-r--r-- | eclass/ada.eclass | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/eclass/ada.eclass b/eclass/ada.eclass index a5cb9b297ee5..e5b62951917a 100644 --- a/eclass/ada.eclass +++ b/eclass/ada.eclass @@ -57,7 +57,7 @@ _ADA_ECLASS=1 # @DESCRIPTION: # All supported Ada implementations, most preferred last. _ADA_ALL_IMPLS=( - gnat_2021 gcc_12 + gnat_2021 gcc_12 gcc_13 ) readonly _ADA_ALL_IMPLS @@ -119,10 +119,7 @@ _ada_impl_supported() { # keep in sync with _ADA_ALL_IMPLS! # (not using that list because inline patterns shall be faster) case "${impl}" in - gnat_2021) - return 0 - ;; - gcc_12) + gnat_2021|gcc_12|gcc_13) return 0 ;; *) @@ -216,11 +213,7 @@ ada_export() { local impl var case "${1}" in - gnat_2021) - impl=${1} - shift - ;; - gcc_12) + gnat_2021|gcc_12|gcc_13) impl=${1} shift ;; @@ -244,6 +237,10 @@ ada_export() { gcc_pv=12 slot=12 ;; + gcc_13) + gcc_pv=13 + slot=13 + ;; *) gcc_pv="9.9.9" slot=9.9.9 @@ -293,7 +290,7 @@ ada_export() { gnat_2021) ADA_PKG_DEP="dev-lang/gnat-gpl:${slot}[ada]" ;; - gcc_12) + gcc_12|gcc_13) ADA_PKG_DEP="sys-devel/gcc:${slot}[ada]" ;; *) |